diff --git a/helm-charts/secrets-operator/templates/infisicalsecret-crd.yaml b/helm-charts/secrets-operator/templates/infisicalsecret-crd.yaml index f1152c619..087698f1e 100644 --- a/helm-charts/secrets-operator/templates/infisicalsecret-crd.yaml +++ b/helm-charts/secrets-operator/templates/infisicalsecret-crd.yaml @@ -64,6 +64,8 @@ spec: properties: identityId: type: string + resource: + type: string secretsScope: properties: envSlug: diff --git a/k8-operator/api/v1alpha1/infisicalsecret_types.go b/k8-operator/api/v1alpha1/infisicalsecret_types.go index 6ea7e4c7b..a3f09b695 100644 --- a/k8-operator/api/v1alpha1/infisicalsecret_types.go +++ b/k8-operator/api/v1alpha1/infisicalsecret_types.go @@ -58,6 +58,8 @@ type AWSIamAuthDetails struct { type AzureAuthDetails struct { // +kubebuilder:validation:Required IdentityID string `json:"identityId"` + // +kubebuilder:validation:Optional + Resource string `json:"resource"` // +kubebuilder:validation:Required SecretsScope MachineIdentityScopeInWorkspace `json:"secretsScope"`