Skip to content

Commit 2195234

Browse files
Merge pull request #46 from IBM/bha-priorityClass
Add priorityClassName to node pods
2 parents e51e8e4 + 940527f commit 2195234

File tree

5 files changed

+16
-5
lines changed

5 files changed

+16
-5
lines changed

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,18 @@ run: manifests generate fmt vet ## Run a controller from your host.
131131
docker-build: test ## Build docker image with the manager.
132132
docker build -t ${IMG} . --platform linux/amd64
133133

134+
.PHONY: podman-build
135+
podman-build: test ## Build docker image with the manager.
136+
podman build -t ${IMG} . --platform linux/amd64
137+
134138
.PHONY: docker-push
135139
docker-push: ## Push docker image with the manager.
136140
docker push ${IMG}
137141

142+
.PHONY: podman-push
143+
podman-push: ## Push docker image with the manager.
144+
podman push ${IMG}
145+
138146
# PLATFORMS defines the target platforms for the manager image be build to provide support to multiple
139147
# architectures. (i.e. make docker-buildx IMG=myregistry/mypoperator:0.0.1). To use this option you need to:
140148
# - able to use docker buildx . More info: https://docs.docker.com/build/buildx/

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# ibm-object-csi-driver-operator
2-
// TODO(user): Add simple overview of use/purpose
2+
A CSI based object storage plugin with dynamic bucket provisioning and plugable mounters, like rclone, s3fs and other. The plugin should seamlessly work in IBM, AWS and GCP platforms.
33

44
## Description
5-
// TODO(user): An in-depth paragraph about your project and overview of use
5+
ibm-object-csi-driver-operator is a user defined storage controller extending K8S capability to manage COS Buckets as PV/PVC resource.
6+
This is designed and developed as per CSI specification. It enables the application workloads to dynamically provision volumes backed by COS buckets as per PVC/PV framework. As of now it supports s3fs & rclone mounters to mount the bucket as a fuse FileSystem inside the POD.
67

78
## Getting Started
89
You’ll need a Kubernetes cluster to run against. You can use [KIND](https://sigs.k8s.io/kind) to get a local cluster for testing, or run against a remote cluster.
@@ -13,13 +14,13 @@ You’ll need a Kubernetes cluster to run against. You can use [KIND](https://si
1314
1. Build and push your image to the location specified by `IMG`:
1415

1516
```sh
16-
make docker-build docker-push IMG=<some-registry>/ibm-object-csi-driver-operator:tag
17+
make docker-build docker-push IMG=<image-registry>/ibm-object-csi-driver-operator:<image-tag>
1718
```
1819

1920
2. Deploy the controller to the cluster with the image specified by `IMG`:
2021

2122
```sh
22-
make deploy IMG=<some-registry>/ibm-object-csi-driver-operator:tag
23+
make deploy IMG=<image-registry>/ibm-object-csi-driver-operator:<image-tag>
2324
```
2425

2526
3. Install Instances of Custom Resources:

config/manager/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ kind: Kustomization
55
images:
66
- name: controller
77
newName: icr.io/ibm/ibm-object-csi-driver-operator
8-
newTag: v0.1.8
8+
newTag: v0.1.11
99
commonLabels:
1010
app.kubernetes.io/managed-by: kustomize
1111
app.kubernetes.io/part-of: ibm-object-csi-driver-operator

controllers/constants/constants.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ const (
7171
CSIControllerSCCClusterRoleBinding = "controller-scc-clusterrolebinding"
7272
CSINodeSCCClusterRole = "node-scc-clusterrole"
7373
CSINodeSCCClusterRoleBinding = "node-scc-clusterrolebinding"
74+
CSINodePriorityClassName = "system-node-critical"
7475

7576
ResourceReqLimitsConfigMap = "cos-csi-driver-configmap"
7677
ObjectCSIDriver = "ibm-object-csi"

controllers/syncer/csi_node.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ func (s *csiNodeSyncer) ensurePodSpec() corev1.PodSpec {
9595
RunAsUser: func(uid int64) *int64 { return &uid }(2121),
9696
},
9797
ServiceAccountName: constants.GetResourceName(constants.CSINodeServiceAccount),
98+
PriorityClassName: constants.CSINodePriorityClassName,
9899
}
99100
}
100101

0 commit comments

Comments
 (0)