Parameterize kubelet path for s3-csi manifests (#900)
This commit is contained in:
parent
7b692b6def
commit
9adc788bb4
|
|
@ -3289,4 +3289,4 @@ webhooks:
|
|||
namespace: tekton-pipelines
|
||||
failurePolicy: Fail
|
||||
name: validation.webhook.pipelineloop.custom.tekton.dev
|
||||
sideEffects: None
|
||||
sideEffects: None
|
||||
|
|
@ -375,7 +375,7 @@ spec:
|
|||
args:
|
||||
- --v=5
|
||||
- --csi-address=/csi/csi.sock
|
||||
- --kubelet-registration-path=/var/data/kubelet/plugins/kfp-csi-s3/csi.sock
|
||||
- --kubelet-registration-path=$(kubelet-path)/kubelet/plugins/kfp-csi-s3/csi.sock
|
||||
securityContext:
|
||||
# This is necessary only for systems with SELinux, where
|
||||
# non-privileged sidecar containers cannot access unix domain socket
|
||||
|
|
@ -414,22 +414,22 @@ spec:
|
|||
volumeMounts:
|
||||
- mountPath: /csi
|
||||
name: socket-dir
|
||||
- mountPath: /var/data/kubelet/pods
|
||||
- mountPath: $(kubelet-path)/kubelet/pods
|
||||
mountPropagation: Bidirectional
|
||||
name: mountpoint-dir
|
||||
- mountPath: /dev
|
||||
name: dev-dir
|
||||
volumes:
|
||||
- hostPath:
|
||||
path: /var/data/kubelet/plugins/kfp-csi-s3
|
||||
path: $(kubelet-path)/kubelet/plugins/kfp-csi-s3
|
||||
type: DirectoryOrCreate
|
||||
name: socket-dir
|
||||
- hostPath:
|
||||
path: /var/data/kubelet/pods
|
||||
path: $(kubelet-path)/kubelet/pods
|
||||
type: DirectoryOrCreate
|
||||
name: mountpoint-dir
|
||||
- hostPath:
|
||||
path: /var/data/kubelet/plugins_registry
|
||||
path: $(kubelet-path)/kubelet/plugins_registry
|
||||
type: Directory
|
||||
name: registration-dir
|
||||
- hostPath:
|
||||
|
|
@ -475,7 +475,7 @@ spec:
|
|||
name: socket-dir
|
||||
volumes:
|
||||
- hostPath:
|
||||
path: /var/data/kubelet/plugins/kfp-csi-s3
|
||||
path: $(kubelet-path)/kubelet/plugins/kfp-csi-s3
|
||||
type: DirectoryOrCreate
|
||||
name: socket-dir
|
||||
---
|
||||
|
|
@ -517,7 +517,7 @@ spec:
|
|||
name: socket-dir
|
||||
volumes:
|
||||
- hostPath:
|
||||
path: /var/data/kubelet/plugins/kfp-csi-s3
|
||||
path: $(kubelet-path)/kubelet/plugins/kfp-csi-s3
|
||||
type: DirectoryOrCreate
|
||||
name: socket-dir
|
||||
---
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ configMapGenerator:
|
|||
- bucket-base64=bWxwaXBlbGluZQ==
|
||||
- accessKeyID-base64=bWluaW8=
|
||||
- secretAccessKey-bas64=bWluaW8xMjM=
|
||||
- kubelet-path=/var/data
|
||||
generatorOptions:
|
||||
disableNameSuffixHash: true
|
||||
vars:
|
||||
|
|
@ -46,6 +47,13 @@ vars:
|
|||
apiVersion: v1
|
||||
fieldref:
|
||||
fieldpath: data.secretAccessKey-bas64
|
||||
- name: kubelet-path
|
||||
objref:
|
||||
kind: ConfigMap
|
||||
name: csi-s3-parameters
|
||||
apiVersion: v1
|
||||
fieldref:
|
||||
fieldpath: data.kubelet-path
|
||||
|
||||
configurations:
|
||||
- params.yaml
|
||||
|
|
|
|||
|
|
@ -1,3 +1,11 @@
|
|||
varReference:
|
||||
- path: data
|
||||
kind: Secret
|
||||
- path: spec/template/spec/volumes/hostPath/path
|
||||
kind: StatefulSet
|
||||
- path: spec/template/spec/containers/*/args/2
|
||||
kind: DaemonSet
|
||||
- path: spec/template/spec/containers/*/volumeMounts/*/mountPath
|
||||
kind: DaemonSet
|
||||
- path: spec/template/spec/volumes/hostPath/path
|
||||
kind: DaemonSet
|
||||
Loading…
Reference in New Issue