Skip to content

Commit

Permalink
[Addon] fix azure-keyvault-csi trait
Browse files Browse the repository at this point in the history
Signed-off-by: kolossi <[email protected]>
  • Loading branch information
kolossi committed May 23, 2024
1 parent a1b01dd commit cf20ec2
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,26 +27,28 @@ template: {
kvObjectsString: "array:\n- |\n" + strings.Join(kvObjects,"\n- |\n")

let patchContent={
spec: {
// +patchKey=name
volumes: [{
name: "secrets-store",
csi: {
driver: "secrets-store.csi.k8s.io",
readOnly: true,
volumeAttributes: {
secretProviderClass: context.name
}
}
},]
containers: [{
// +patchKey=name
volumeMounts: [{
mountPath: "/mnt/secrets-store",
name: "secrets-store",
readOnly: true
},]
},]
template: {
spec: {
// +patchKey=name
volumes: [{
name: "secrets-store",
csi: {
driver: "secrets-store.csi.k8s.io",
readOnly: true,
volumeAttributes: {
secretProviderClass: context.name
}
}
},]
containers: [{
// +patchKey=name
volumeMounts: [{
mountPath: "/mnt/secrets-store",
name: "secrets-store",
readOnly: true
},]
},]
}
}
}

Expand All @@ -55,7 +57,7 @@ template: {
spec: patchContent
}
if context.output.spec.jobTemplate != _|_ {
spec: jobTemplate: spec: template: patchContent
spec: jobTemplate: spec: patchContent
}
}

Expand Down
2 changes: 1 addition & 1 deletion experimental/addons/azure-keyvault-csi/metadata.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: azure-keyvault-csi
version: 0.0.5
version: 0.0.6
system:
vela: ">=v1.6.0"
description: Trait providing access to Azure Keyvault values via csi driver
Expand Down

0 comments on commit cf20ec2

Please sign in to comment.