Skip to content

Commit

Permalink
Merge pull request #16 from gabemontero/mv-deleted-driver-deploy-dir-…
Browse files Browse the repository at this point in the history
…here

BUILD-256: move driver PR #54, #60 asset changes here
  • Loading branch information
openshift-merge-robot committed Oct 29, 2021
2 parents 6dcce6c + 89533c5 commit 5a193e0
Show file tree
Hide file tree
Showing 5 changed files with 124 additions and 10 deletions.
13 changes: 13 additions & 0 deletions assets/metrics_service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
kind: Service
apiVersion: v1
metadata:
name: shared-resource-csi-driver-node-metrics
namespace: openshift-cluster-csi-drivers
labels:
app: shared-resource-csi-driver-node
spec:
selector:
app: shared-resource-csi-driver-node
ports:
- name: metrics
port: 6000
13 changes: 10 additions & 3 deletions assets/node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,11 @@ spec:
command:
- csi-driver-shared-resource
args:
- --config=/var/run/configmaps/config/config.yaml
- "--drivername=csi.sharedresource.openshift.io"
- "--v=4"
- "--endpoint=$(CSI_ENDPOINT)"
- "--nodeid=$(KUBE_NODE_NAME)"
env:
- name: CSI_ENDPOINT
value: unix:///csi/csi.sock
- name: KUBE_NODE_NAME
valueFrom:
fieldRef:
Expand All @@ -66,7 +64,12 @@ spec:
- containerPort: 9898
name: healthz
protocol: TCP
- containerPort: 6000
name: metrics
protocol: TCP
volumeMounts:
- mountPath: /var/run/configmaps/config
name: config
- mountPath: /csi
name: socket-dir
- mountPath: /var/lib/kubelet/pods
Expand All @@ -83,6 +86,10 @@ spec:
name: dev-dir

volumes:
- configMap:
optional: true
name: csi-driver-shared-resource-config
name: config
- hostPath:
path: /var/lib/kubelet/plugins/csi-hostpath
type: DirectoryOrCreate
Expand Down
16 changes: 16 additions & 0 deletions assets/servicemonitor.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: shared-resource-csi-driver-node
namespace: openshift-cluster-csi-drivers
annotations:
include.release.openshift.io/ibm-cloud-managed: "true"
include.release.openshift.io/self-managed-high-availability: "true"
include.release.openshift.io/single-node-developer: "true"
spec:
endpoints:
- port: metrics
selector:
matchLabels:
app: shared-resource-csi-driver-node
90 changes: 83 additions & 7 deletions pkg/generated/bindata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions pkg/operator/starter.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ func RunOperator(ctx context.Context, controllerConfig *controllercmd.Controller
"csidriver.yaml",
"node_sa.yaml",
"service.yaml",
"metrics_service.yaml",
"servicemonitor.yaml",
"rbac/privileged_role.yaml",
"rbac/node_role.yaml",
"rbac/node_privileged_binding.yaml",
Expand Down

0 comments on commit 5a193e0

Please sign in to comment.