Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Addon] fix azure-keyvault-csi trait #755

Merged
merged 1 commit into from
May 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading