Browse Source

make auth key for GCPSM provider optional

Mouhsen Ibrahim 4 years ago
parent
commit
03f3622c2c

+ 2 - 1
apis/externalsecrets/v1alpha1/secretstore_gcpsm_types.go

@@ -31,7 +31,8 @@ type GCPSMAuthSecretRef struct {
 // GCPSMProvider Configures a store to sync secrets using the GCP Secret Manager provider.
 // GCPSMProvider Configures a store to sync secrets using the GCP Secret Manager provider.
 type GCPSMProvider struct {
 type GCPSMProvider struct {
 	// Auth defines the information necessary to authenticate against GCP
 	// Auth defines the information necessary to authenticate against GCP
-	Auth GCPSMAuth `json:"auth"`
+	// +optional
+	Auth GCPSMAuth `json:"auth,omitempty"`
 
 
 	// ProjectID project where secret is located
 	// ProjectID project where secret is located
 	ProjectID string `json:"projectID,omitempty"`
 	ProjectID string `json:"projectID,omitempty"`

+ 0 - 2
deploy/crds/external-secrets.io_clustersecretstores.yaml

@@ -249,8 +249,6 @@ spec:
                       projectID:
                       projectID:
                         description: ProjectID project where secret is located
                         description: ProjectID project where secret is located
                         type: string
                         type: string
-                    required:
-                    - auth
                     type: object
                     type: object
                   ibm:
                   ibm:
                     description: IBM configures this store to sync secrets using IBM
                     description: IBM configures this store to sync secrets using IBM

+ 0 - 2
deploy/crds/external-secrets.io_secretstores.yaml

@@ -249,8 +249,6 @@ spec:
                       projectID:
                       projectID:
                         description: ProjectID project where secret is located
                         description: ProjectID project where secret is located
                         type: string
                         type: string
-                    required:
-                    - auth
                     type: object
                     type: object
                   ibm:
                   ibm:
                     description: IBM configures this store to sync secrets using IBM
                     description: IBM configures this store to sync secrets using IBM