Skip to content

Commit

Permalink
Sync private repo with public (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
rajendraindukuri authored Feb 23, 2022
1 parent 19348c8 commit f2cd6e4
Show file tree
Hide file tree
Showing 82 changed files with 3,467 additions and 2,104 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/actions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ jobs:
uses: dell/common-github-actions/go-code-tester@main
with:
threshold: 60
test-folder: "."
skip-list: "test/integration-tests"
malware_security_scan:
name: Malware Scanner
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ COPY pkg/ pkg/

RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -a -o manager main.go

FROM registry.access.redhat.com/ubi8/ubi-minimal:latest
FROM registry.access.redhat.com/ubi8/ubi-minimal@sha256:3aa3f379a81013bd3264faa0af87d201cdaa5981050d78c567b48fdfd5b38bb8

RUN microdnf install yum \
&& yum -y update-minimal --security --sec-severity=Important --sec-severity=Critical \
Expand Down
18 changes: 18 additions & 0 deletions PROJECT
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ resources:
kind: CSIPowerMax
path: github.com/dell/dell-csi-operator/api/v1
version: v1
webhooks:
defaulting: true
webhookVersion: v1
- api:
crdVersion: v1
namespaced: true
Expand All @@ -25,6 +28,9 @@ resources:
kind: CSIPowerMaxRevProxy
path: github.com/dell/dell-csi-operator/api/v1
version: v1
webhooks:
defaulting: true
webhookVersion: v1
- api:
crdVersion: v1
namespaced: true
Expand All @@ -34,6 +40,9 @@ resources:
kind: CSIIsilon
path: github.com/dell/dell-csi-operator/api/v1
version: v1
webhooks:
defaulting: true
webhookVersion: v1
- api:
crdVersion: v1
namespaced: true
Expand All @@ -43,6 +52,9 @@ resources:
kind: CSIUnity
path: github.com/dell/dell-csi-operator/api/v1
version: v1
webhooks:
defaulting: true
webhookVersion: v1
- api:
crdVersion: v1
namespaced: true
Expand All @@ -52,6 +64,9 @@ resources:
kind: CSIVXFlexOS
path: github.com/dell/dell-csi-operator/api/v1
version: v1
webhooks:
defaulting: true
webhookVersion: v1
- api:
crdVersion: v1
namespaced: true
Expand All @@ -61,5 +76,8 @@ resources:
kind: CSIPowerStore
path: github.com/dell/dell-csi-operator/api/v1
version: v1
webhooks:
defaulting: true
webhookVersion: v1
version: "3"

Original file line number Diff line number Diff line change
Expand Up @@ -1673,19 +1673,31 @@ spec:
- snapshot.storage.k8s.io
resources:
- volumesnapshotclasses
verbs:
- create
- delete
- get
- list
- update
- watch
- apiGroups:
- snapshot.storage.k8s.io
resources:
- volumesnapshotcontents
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- snapshot.storage.k8s.io
resources:
- volumesnapshotcontents/status
verbs:
- patch
- update
- apiGroups:
- snapshot.storage.k8s.io
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1672,19 +1672,31 @@ spec:
- snapshot.storage.k8s.io
resources:
- volumesnapshotclasses
verbs:
- create
- delete
- get
- list
- update
- watch
- apiGroups:
- snapshot.storage.k8s.io
resources:
- volumesnapshotcontents
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- snapshot.storage.k8s.io
resources:
- volumesnapshotcontents/status
verbs:
- patch
- update
- apiGroups:
- snapshot.storage.k8s.io
Expand Down
12 changes: 12 additions & 0 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -150,19 +150,31 @@ rules:
- snapshot.storage.k8s.io
resources:
- volumesnapshotclasses
verbs:
- create
- delete
- get
- list
- update
- watch
- apiGroups:
- snapshot.storage.k8s.io
resources:
- volumesnapshotcontents
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- snapshot.storage.k8s.io
resources:
- volumesnapshotcontents/status
verbs:
- patch
- update
- apiGroups:
- snapshot.storage.k8s.io
Expand Down
8 changes: 8 additions & 0 deletions config/samples/storage_v1_csiisilon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,14 @@ spec:
- name: X_CSI_ISI_SKIP_CERTIFICATE_VALIDATION
value: "true"

# X_CSI_ISI_AUTH_TYPE: Indicates whether the authentication will be session-based or basic.
# Allowed values:
# 0: enables basic Authentication
# 1: enables session-based Authentication
# Default value: 0
- name: X_CSI_ISI_AUTH_TYPE
value: "0"

# X_CSI_CUSTOM_TOPOLOGY_ENABLED: Specify if custom topology label <provisionerName>.dellemc.com/<powerscalefqdnorip>:<provisionerName>
# has to be used for making connection to backend PowerScale Array.
# If X_CSI_CUSTOM_TOPOLOGY_ENABLED is set to true, then do not specify allowedTopologies in storage class.
Expand Down
9 changes: 5 additions & 4 deletions config/samples/storage_v1_csipowermax.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ metadata:
namespace: test-powermax
spec:
driver:
# Config version for CSI PowerMax v2.1.0 driver
configVersion: v2.1.0
# Config version for CSI PowerMax v2.2.0 driver
configVersion: v2.2.0
# replica: Define the number of PowerMax controller nodes
# to deploy to the Kubernetes release
# Allowed values: n, where n > 0
Expand All @@ -15,8 +15,8 @@ spec:
dnsPolicy: ClusterFirstWithHostNet
forceUpdate: false
common:
# Image for CSI PowerMax driver v2.1.0
image: dellemc/csi-powermax:v2.1.0
# Image for CSI PowerMax driver v2.2.0
image: dellemc/csi-powermax:v2.2.0
# imagePullPolicy: Policy to determine if the image should be pulled prior to starting the container.
# Allowed values:
# Always: Always pull the image.
Expand Down Expand Up @@ -73,6 +73,7 @@ spec:
# default values: None
- name: "X_CSI_GRPC_MAX_THREADS"
value: "4"

node:
envs:
# X_CSI_POWERMAX_ISCSI_ENABLE_CHAP: Determine if the driver is going to configure
Expand Down
5 changes: 3 additions & 2 deletions controllers/csiisilon_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@ type CSIIsilonReconciler struct {
// +kubebuilder:rbac:groups="storage.k8s.io",resources=storageclasses,verbs=get;list;watch;create;update;delete
// +kubebuilder:rbac:groups="storage.k8s.io",resources=volumeattachments,verbs=get;list;watch;create;update;patch
// +kubebuilder:rbac:groups="storage.k8s.io",resources=csinodes,verbs=get;list;watch;create;update
// +kubebuilder:rbac:groups="snapshot.storage.k8s.io",resources=volumesnapshotclasses;volumesnapshotcontents,verbs=get;list;watch;create;update;delete
// +kubebuilder:rbac:groups="snapshot.storage.k8s.io",resources=volumesnapshotcontents/status,verbs=update
// +kubebuilder:rbac:groups="snapshot.storage.k8s.io",resources=volumesnapshotclasses,verbs=get;list;watch;create;update;delete
// +kubebuilder:rbac:groups="snapshot.storage.k8s.io",resources=volumesnapshotcontents,verbs=get;list;watch;create;update;delete;patch
// +kubebuilder:rbac:groups="snapshot.storage.k8s.io",resources=volumesnapshotcontents/status,verbs=update;patch
// +kubebuilder:rbac:groups="snapshot.storage.k8s.io",resources=volumesnapshots;volumesnapshots/status,verbs=get;list;watch;update
// +kubebuilder:rbac:groups="apiextensions.k8s.io",resources=customresourcedefinitions,verbs=create;list;watch;delete
// +kubebuilder:rbac:groups="storage.k8s.io",resources=volumeattachments/status,verbs=patch
Expand Down
5 changes: 3 additions & 2 deletions controllers/csipowermax_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,9 @@ type CSIPowerMaxReconciler struct {
// +kubebuilder:rbac:groups="storage.k8s.io",resources=storageclasses,verbs=get;list;watch;create;update;delete
// +kubebuilder:rbac:groups="storage.k8s.io",resources=volumeattachments,verbs=get;list;watch;create;update;patch
// +kubebuilder:rbac:groups="storage.k8s.io",resources=csinodes,verbs=get;list;watch;create;update
// +kubebuilder:rbac:groups="snapshot.storage.k8s.io",resources=volumesnapshotclasses;volumesnapshotcontents,verbs=get;list;watch;create;update;delete
// +kubebuilder:rbac:groups="snapshot.storage.k8s.io",resources=volumesnapshotcontents/status,verbs=update
// +kubebuilder:rbac:groups="snapshot.storage.k8s.io",resources=volumesnapshotclasses,verbs=get;list;watch;create;update;delete
// +kubebuilder:rbac:groups="snapshot.storage.k8s.io",resources=volumesnapshotcontents,verbs=get;list;watch;create;update;delete;patch
// +kubebuilder:rbac:groups="snapshot.storage.k8s.io",resources=volumesnapshotcontents/status,verbs=update;patch
// +kubebuilder:rbac:groups="snapshot.storage.k8s.io",resources=volumesnapshots;volumesnapshots/status,verbs=get;list;watch;update
// +kubebuilder:rbac:groups="apiextensions.k8s.io",resources=customresourcedefinitions,verbs=create;list;watch;delete
// +kubebuilder:rbac:groups="storage.k8s.io",resources=volumeattachments/status,verbs=patch
Expand Down
5 changes: 3 additions & 2 deletions controllers/csipowerstore_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@ type CSIPowerStoreReconciler struct {
// +kubebuilder:rbac:groups="storage.k8s.io",resources=storageclasses,verbs=get;list;watch;create;update;delete
// +kubebuilder:rbac:groups="storage.k8s.io",resources=volumeattachments,verbs=get;list;watch;create;update;patch
// +kubebuilder:rbac:groups="storage.k8s.io",resources=csinodes,verbs=get;list;watch;create;update
// +kubebuilder:rbac:groups="snapshot.storage.k8s.io",resources=volumesnapshotclasses;volumesnapshotcontents,verbs=get;list;watch;create;update;delete
// +kubebuilder:rbac:groups="snapshot.storage.k8s.io",resources=volumesnapshotcontents/status,verbs=update
// +kubebuilder:rbac:groups="snapshot.storage.k8s.io",resources=volumesnapshotclasses,verbs=get;list;watch;create;update;delete
// +kubebuilder:rbac:groups="snapshot.storage.k8s.io",resources=volumesnapshotcontents,verbs=get;list;watch;create;update;delete;patch
// +kubebuilder:rbac:groups="snapshot.storage.k8s.io",resources=volumesnapshotcontents/status,verbs=update;patch
// +kubebuilder:rbac:groups="snapshot.storage.k8s.io",resources=volumesnapshots;volumesnapshots/status,verbs=get;list;watch;update
// +kubebuilder:rbac:groups="apiextensions.k8s.io",resources=customresourcedefinitions,verbs=create;list;watch;delete
// +kubebuilder:rbac:groups="storage.k8s.io",resources=volumeattachments/status,verbs=patch
Expand Down
5 changes: 3 additions & 2 deletions controllers/csiunity_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,9 @@ type CSIUnityReconciler struct {
// +kubebuilder:rbac:groups="storage.k8s.io",resources=storageclasses,verbs=get;list;watch;create;update;delete
// +kubebuilder:rbac:groups="storage.k8s.io",resources=volumeattachments,verbs=get;list;watch;create;update;patch
// +kubebuilder:rbac:groups="storage.k8s.io",resources=csinodes,verbs=get;list;watch;create;update
// +kubebuilder:rbac:groups="snapshot.storage.k8s.io",resources=volumesnapshotclasses;volumesnapshotcontents,verbs=get;list;watch;create;update;delete
// +kubebuilder:rbac:groups="snapshot.storage.k8s.io",resources=volumesnapshotcontents/status,verbs=update
// +kubebuilder:rbac:groups="snapshot.storage.k8s.io",resources=volumesnapshotclasses,verbs=get;list;watch;create;update;delete
// +kubebuilder:rbac:groups="snapshot.storage.k8s.io",resources=volumesnapshotcontents,verbs=get;list;watch;create;update;delete;patch
// +kubebuilder:rbac:groups="snapshot.storage.k8s.io",resources=volumesnapshotcontents/status,verbs=update;patch
// +kubebuilder:rbac:groups="snapshot.storage.k8s.io",resources=volumesnapshots;volumesnapshots/status,verbs=get;list;watch;update
// +kubebuilder:rbac:groups="apiextensions.k8s.io",resources=customresourcedefinitions,verbs=create;list;watch;delete
// +kubebuilder:rbac:groups="storage.k8s.io",resources=volumeattachments/status,verbs=patch
Expand Down
7 changes: 4 additions & 3 deletions controllers/csivxflexos_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,9 @@ type CSIVXFlexOSReconciler struct {
// +kubebuilder:rbac:groups="storage.k8s.io",resources=storageclasses,verbs=get;list;watch;create;update;delete
// +kubebuilder:rbac:groups="storage.k8s.io",resources=volumeattachments,verbs=get;list;watch;create;update;patch
// +kubebuilder:rbac:groups="storage.k8s.io",resources=csinodes,verbs=get;list;watch;create;update
// +kubebuilder:rbac:groups="snapshot.storage.k8s.io",resources=volumesnapshotclasses;volumesnapshotcontents,verbs=get;list;watch;create;update;delete
// +kubebuilder:rbac:groups="snapshot.storage.k8s.io",resources=volumesnapshotcontents/status,verbs=update
// +kubebuilder:rbac:groups="snapshot.storage.k8s.io",resources=volumesnapshotclasses,verbs=get;list;watch;create;update;delete
// +kubebuilder:rbac:groups="snapshot.storage.k8s.io",resources=volumesnapshotcontents,verbs=get;list;watch;create;update;delete;patch
// +kubebuilder:rbac:groups="snapshot.storage.k8s.io",resources=volumesnapshotcontents/status,verbs=update;patch
// +kubebuilder:rbac:groups="snapshot.storage.k8s.io",resources=volumesnapshots;volumesnapshots/status,verbs=get;list;watch;update
// +kubebuilder:rbac:groups="apiextensions.k8s.io",resources=customresourcedefinitions,verbs=create;list;watch;delete
// +kubebuilder:rbac:groups="storage.k8s.io",resources=volumeattachments/status,verbs=patch
Expand Down Expand Up @@ -131,7 +132,7 @@ func (r *CSIVXFlexOSReconciler) InitializeDriverSpec(instance storagev1.CSIDrive
isDriverupdate := false
driver := instance.GetDriver()
ctx := context.Background()
if driver.ConfigVersion == "v5" {
if driver.ConfigVersion == "v2.1.0" {
var newmdm corev1.EnvVar
mdmVar, err := r.GetMDMFromSecret(ctx, instance, reqLogger)
if err != nil {
Expand Down
12 changes: 12 additions & 0 deletions deploy/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -190,19 +190,31 @@ rules:
- snapshot.storage.k8s.io
resources:
- volumesnapshotclasses
verbs:
- create
- delete
- get
- list
- update
- watch
- apiGroups:
- snapshot.storage.k8s.io
resources:
- volumesnapshotcontents
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- snapshot.storage.k8s.io
resources:
- volumesnapshotcontents/status
verbs:
- patch
- update
- apiGroups:
- snapshot.storage.k8s.io
Expand Down
Loading

0 comments on commit f2cd6e4

Please sign in to comment.