From b0d6737db81e2ba658514ea2ab19d043caa0b43f Mon Sep 17 00:00:00 2001 From: ShyamsundarR Date: Wed, 13 Mar 2019 09:58:34 -0400 Subject: [PATCH] Removed duplicate patch template Signed-off-by: ShyamsundarR --- .../rbd/template-csi-rbdplugin-patch.yaml | 5 +++- ...plate-csi-rbdplugin-provisioner-patch.yaml | 30 ------------------- 2 files changed, 4 insertions(+), 31 deletions(-) delete mode 100644 examples/rbd/template-csi-rbdplugin-provisioner-patch.yaml diff --git a/examples/rbd/template-csi-rbdplugin-patch.yaml b/examples/rbd/template-csi-rbdplugin-patch.yaml index d89afbe8e..77570ae96 100644 --- a/examples/rbd/template-csi-rbdplugin-patch.yaml +++ b/examples/rbd/template-csi-rbdplugin-patch.yaml @@ -10,10 +10,13 @@ # volume, instead of the Ceph CSI plugin actively fetching and using kubernetes # secrets. # -# NOTE: Update csi-rbdplugin-provisioner StatefulSet as well with similar patch # Post substituting the in all places execute, # `kubectl patch daemonset csi-rbdplugin --patch\ # "$(cat template-csi-rbdplugin-patch.yaml)"` +# to patch the daemonset deployment. +# +# `kubectl patch statefulset csi-rbdplugin-provisioner --patch\ +# "$(cat template-csi-rbdplugin-patch.yaml)"` # to patch the statefulset deployment. spec: template: diff --git a/examples/rbd/template-csi-rbdplugin-provisioner-patch.yaml b/examples/rbd/template-csi-rbdplugin-provisioner-patch.yaml deleted file mode 100644 index 68a36fcdf..000000000 --- a/examples/rbd/template-csi-rbdplugin-provisioner-patch.yaml +++ /dev/null @@ -1,30 +0,0 @@ ---- -# This is a patch to the existing statefulset deployment of CSI rbdplugin. -# -# This is to be used when using `clusterID` instead of monitors or -# monValueFromSecret in the StorageClass to specify the Ceph cluster to -# provision storage from, AND when the value of `--configroot` option to the -# CSI pods is NOT "k8s_objects". -# -# This patch file, patches in the specified secret for the 'clusterID' as a -# volume, instead of the Ceph CSI plugin actively fetching and using kubernetes -# secrets. -# -# NOTE: Update csi-rbdplugin DaemonSet as well with similar patch -# Post substituting the in all places execute, -# `kubectl patch statefulset csi-rbdplugin-provisioner --patch\ -# "$(cat template-csi-rbdplugin-provisioner-patch.yaml)"` -# to patch the statefulset deployment. -spec: - template: - spec: - containers: - - name: csi-rbdplugin - volumeMounts: - - name: ceph-cluster- - mountPath: "/etc/csi-config/ceph-cluster-" - readOnly: true - volumes: - - name: ceph-cluster- - secret: - secretName: ceph-cluster-