Skip to content

Commit

Permalink
add comment for ObjectID
Browse files Browse the repository at this point in the history
  • Loading branch information
frodopwns committed Jul 8, 2020
1 parent df48da7 commit 1ea5aed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion api/v1alpha1/keyvault_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

// KeyVaultSpec defines the desired state of KeyVault
type KeyVaultSpec struct {
Location string `json:"location"`
Location string `json:"location"`
// +kubebuilder:validation:Pattern=^[-\w\._\(\)]+$
// +kubebuilder:validation:MinLength:1
// +kubebuilder:validation:Required
Expand All @@ -36,6 +36,8 @@ type AccessPolicyEntry struct {
TenantID string `json:"tenantID,omitempty"`
// ClientID - The client ID of a user, service principal or security group in the Azure Active Directory tenant for the vault. The client ID must be unique for the list of access policies.
ClientID string `json:"clientID,omitempty"`
// ObjectID is the value to use if the access policy is for a user other than the user creating the Key Vault when the creating user does not have access to the Application API which is used to translate ClientID to Object ID
// To get around this, use az-cli or the Azure portal to source the ObjectID from your Service Principal
ObjectID string `json:"objectID,omitempty"`
// ApplicationID - Application ID of the client making request on behalf of a principal
ApplicationID string `json:"applicationID,omitempty"`
Expand Down

0 comments on commit 1ea5aed

Please sign in to comment.