Browse Source

Updating path reference for kubernetes auth provider

Signed-off-by: Gustavo Carvalho <gustavo.carvalho@container-solutions.com>
Gustavo Carvalho 4 năm trước cách đây
mục cha
commit
4000b8f89c

+ 1 - 1
apis/externalsecrets/v1alpha1/secretstore_vault_types.go

@@ -164,7 +164,7 @@ type VaultKubernetesAuth struct {
 	// Path where the Kubernetes authentication backend is mounted in Vault, e.g:
 	// "kubernetes"
 	// +kubebuilder:default=kubernetes
-	Path string `json:"mountPath"`
+	Path string `json:"path"`
 
 	// Optional service account field containing the name of a kubernetes ServiceAccount.
 	// If the service account is specified, the service account secret token JWT will be used

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

@@ -746,7 +746,7 @@ spec:
                               the ServiceAccount token stored in the named Secret
                               resource to the Vault server.
                             properties:
-                              mountPath:
+                              path:
                                 default: kubernetes
                                 description: 'Path where the Kubernetes authentication
                                   backend is mounted in Vault, e.g: "kubernetes"'
@@ -802,7 +802,7 @@ spec:
                                 - name
                                 type: object
                             required:
-                            - mountPath
+                            - path
                             - role
                             type: object
                           ldap:

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

@@ -746,7 +746,7 @@ spec:
                               the ServiceAccount token stored in the named Secret
                               resource to the Vault server.
                             properties:
-                              mountPath:
+                              path:
                                 default: kubernetes
                                 description: 'Path where the Kubernetes authentication
                                   backend is mounted in Vault, e.g: "kubernetes"'
@@ -802,7 +802,7 @@ spec:
                                 - name
                                 type: object
                             required:
-                            - mountPath
+                            - path
                             - role
                             type: object
                           ldap:

+ 1 - 1
docs/snippets/vault-kubernetes-store.yaml

@@ -15,7 +15,7 @@ spec:
         # https://www.vaultproject.io/docs/auth/kubernetes
         kubernetes:
           # Path where the Kubernetes authentication backend is mounted in Vault
-          mountPath: "kubernetes"
+          path: "kubernetes"
           # A required field containing the Vault Role to assume.
           role: "demo"
           # Optional service account field containing the name