From 8a85695dc5271bda6b849b99fc401251477669a7 Mon Sep 17 00:00:00 2001 From: Daniel Hougaard <62331820+DanielHougaard@users.noreply.github.com> Date: Tue, 16 Jul 2024 04:43:38 +0200 Subject: [PATCH] Custom azure resource --- helm-charts/secrets-operator/templates/infisicalsecret-crd.yaml | 2 ++ k8-operator/api/v1alpha1/infisicalsecret_types.go | 2 ++ 2 files changed, 4 insertions(+) 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"`