IBM / ibm-object-csi-driver

Object storage plugin for IBM satellite
Apache License 2.0
3 stars 8 forks source link

Add labels in all resources #113

Closed ashimagarg27 closed 5 months ago

ashimagarg27 commented 5 months ago

Describe your changes

Issue ticket number and link

Checklist before requesting a review

ashimagarg27 commented 5 months ago

Test Results

❯ kubectl apply -k deploy/ibmCloud/                                                                                               ✘ INT ⎈ ashima-sat/cp0u7tkd0gdarrvi9cbg/admin 10:11:16
storageclass.storage.k8s.io/cos-s3-csi-rclone-sc created
storageclass.storage.k8s.io/cos-s3-csi-s3fs-sc created
storageclass.storage.k8s.io/cos-s3-csi-sc created
serviceaccount/cos-s3-csi-controller created
serviceaccount/cos-s3-csi-driver created
clusterrole.rbac.authorization.k8s.io/cos-s3-csi-controller-role created
clusterrole.rbac.authorization.k8s.io/cos-s3-csi-driver-role created
clusterrolebinding.rbac.authorization.k8s.io/cos-s3-csi-controller-rolebind created
clusterrolebinding.rbac.authorization.k8s.io/cos-s3-csi-driver-rolebind created
deployment.apps/cos-s3-csi-controller created
daemonset.apps/cos-s3-csi-driver created
csidriver.storage.k8s.io/cos.s3.csi.ibm.io created

❯ oc get sc --show-labels                                                                                                               ⎈ ashima-sat/cp0u7tkd0gdarrvi9cbg/admin 10:11:39
NAME                   PROVISIONER         RECLAIMPOLICY   VOLUMEBINDINGMODE   ALLOWVOLUMEEXPANSION   AGE   LABELS
cos-s3-csi-rclone-sc   cos.s3.csi.ibm.io   Retain          Immediate           false                  23s   app.kubernetes.io/managed-by=kustomize,app.kubernetes.io/part-of=ibm-object-csi-driver
cos-s3-csi-s3fs-sc     cos.s3.csi.ibm.io   Retain          Immediate           false                  22s   app.kubernetes.io/managed-by=kustomize,app.kubernetes.io/part-of=ibm-object-csi-driver
cos-s3-csi-sc          cos.s3.csi.ibm.io   Delete          Immediate           false                  21s   app.kubernetes.io/managed-by=kustomize,app.kubernetes.io/part-of=ibm-object-csi-drive

❯ oc get sa -n kube-system --show-labels | grep s3                                                                                      ⎈ ashima-sat/cp0u7tkd0gdarrvi9cbg/admin 10:12:46
cos-s3-csi-controller                1         87s   app.kubernetes.io/managed-by=kustomize,app.kubernetes.io/part-of=ibm-object-csi-driver
cos-s3-csi-driver                    1         87s   app.kubernetes.io/managed-by=kustomize,app.kubernetes.io/part-of=ibm-object-csi-driver

❯ oc get clusterrole --show-labels | grep s3                                                                                            ⎈ ashima-sat/cp0u7tkd0gdarrvi9cbg/admin 10:13:14
cos-s3-csi-controller-role                                                  2024-05-14T04:41:27Z   app.kubernetes.io/managed-by=kustomize,app.kubernetes.io/part-of=ibm-object-csi-driver
cos-s3-csi-driver-role                                                      2024-05-14T04:41:28Z   app.kubernetes.io/managed-by=kustomize,app.kubernetes.io/part-of=ibm-object-csi-driver

❯ oc get clusterrolebinding --show-labels | grep s3                                                                                     ⎈ ashima-sat/cp0u7tkd0gdarrvi9cbg/admin 10:13:22
cos-s3-csi-controller-rolebind                                              ClusterRole/cos-s3-csi-controller-role                                                  119s   app.kubernetes.io/managed-by=kustomize,app.kubernetes.io/part-of=ibm-object-csi-driver
cos-s3-csi-driver-rolebind                                                  ClusterRole/cos-s3-csi-driver-role                                                      118s   app.kubernetes.io/managed-by=kustomize,app.kubernetes.io/part-of=ibm-object-csi-driver

❯ oc get deployment,daemonset,csidriver -n kube-system --show-labels | grep s3                                                   17s ⎈ ashima-sat/cp0u7tkd0gdarrvi9cbg/admin 10:17:41
deployment.apps/cos-s3-csi-controller       1/1     1            1           83s   app.kubernetes.io/managed-by=kustomize,app.kubernetes.io/part-of=ibm-object-csi-driver
daemonset.apps/cos-s3-csi-driver         3         3         3       3            3           <none>          81s   app.kubernetes.io/managed-by=kustomize,app.kubernetes.io/part-of=ibm-object-csi-driver
csidriver.storage.k8s.io/cos.s3.csi.ibm.io   false            true             false             <unset>         false               Persistent   81s   app.kubernetes.io/managed-by=kustomize,app.kubernetes.io/name=cos-s3-csi-driver,app.kubernetes.io/part-of=ibm-object-csi-driver
ashimagarg27 commented 5 months ago
❯ oc get pods -n kube-system -o wide | grep s3                                                                                   11s ⎈ ashima-sat/cp0u7tkd0gdarrvi9cbg/admin 10:19:36
cos-s3-csi-controller-6857c7dff9-5mbn2           3/3     Running   0          2m4s   172.30.169.197   ashima-loc-4360-host-3   <none>           <none>
cos-s3-csi-driver-bffxn                          3/3     Running   0          2m1s   172.30.169.234   ashima-loc-4360-host-3   <none>           <none>
cos-s3-csi-driver-mmzrx                          3/3     Running   0          2m1s   172.30.74.108    ashima-loc-4360-host-4   <none>           <none>
cos-s3-csi-driver-stkdb                          3/3     Running   0          2m1s   172.30.245.120   ashima-loc-4360-host-5   <none>           <none>