Skip to content

Commit

Permalink
Mismatch in ext secret fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Shifna12Zarnaz committed Apr 3, 2024
1 parent fba4af2 commit d7ed269
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion capten/common-pkg/k8s/external_secret.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func (k *K8SClient) CreateOrUpdateSecretStore(ctx context.Context, secretStoreNa
func (k *K8SClient) CreateOrUpdateExternalSecret(ctx context.Context, externalSecretName, namespace,
secretStoreRefName, secretName, secretType string, vaultKeyPathdata map[string]string) (err error) {
secretKeysData := []ExternalSecretData{}
for path, key := range vaultKeyPathdata {
for key, path := range vaultKeyPathdata {
secretKeyData := ExternalSecretData{
SecretKey: key,
RemoteRef: ExternalSecretDataRemoteRef{
Expand Down
4 changes: 2 additions & 2 deletions charts/kad/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.2.19
version: 0.2.20

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.28.1"
appVersion: "1.28.2"
17 changes: 9 additions & 8 deletions charts/kad/crossplane_plugin_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"secretName": "vault-nats-secret",
"vaultSecrets": [
{
"secretKey": "generic/nats/auth-token",
"secretPath": "nats"
"secretKey": "token",
"secretPath": "generic/nats/auth-token"
}
]
},
Expand All @@ -29,19 +29,20 @@
"secretName": "vault-cosign-secret",
"vaultSecrets": [
{
"secretKey": "generic/cosign/signer",
"secretPath": "cosign.pub"
"secretKey": "cosign.pub",
"secretPath": "generic/cosign/signer"
}
]
},

{
"namespace": "ml-server",
"secretName": "regcred-ghcr",
"secretType": "kubernetes.io/dockerconfigjson",
"vaultSecrets": [
{
"secretKey": "generic/container-registry/docker-config",
"secretPath": ".dockerconfigjson"
"secretKey": ".dockerconfigjson",
"secretPath": "generic/container-registry/docker-config"
}
]
},
Expand All @@ -50,8 +51,8 @@
"secretName": "vault-cosign-secret",
"vaultSecrets": [
{
"secretKey": "generic/cosign/signer",
"secretPath": "cosign.pub"
"secretKey": "cosign.pub",
"secretPath": "generic/cosign/signer"
}
]
}
Expand Down

0 comments on commit d7ed269

Please sign in to comment.