Skip to content

Commit

Permalink
Merge branch 'main' into add-downgrade-support
Browse files Browse the repository at this point in the history
  • Loading branch information
abhi16394 authored Jun 3, 2024
2 parents d9cc731 + 9cfc181 commit 95ab502
Show file tree
Hide file tree
Showing 18 changed files with 4,689 additions and 25 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: connectivity-client-docker-k8s
namespace: <ExistingNameSpace>
rules:
- apiGroups: [""]
resources: ["secrets"]
verbs: ["list","get", "create", "update", "delete","watch"]
- apiGroups: ["storage.dell.com"]
resources: ["containerstoragemodules"]
verbs: ["create", "delete"]
- apiGroups: [""]
resources: ["configmaps"]
verbs: ["get", "create", "delete", "update"]
- apiGroups: ["mobility.storage.dell.com"]
resources: ["backups"]
verbs: ["create"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: connectivity-client-docker-k8s
namespace: <ExistingNameSpace>
subjects:
- kind: ServiceAccount
name: connectivity-client-docker-k8s
namespace: <ClientNameSpace>
roleRef:
kind: Role
name: connectivity-client-docker-k8s
apiGroup: rbac.authorization.k8s.io
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,13 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: connectivity-client-docker-k8s
namespace: <NAMESPACE>
rules:
- apiGroups: [""]
resources: ["pods"]
verbs: ["list", "watch"]
- apiGroups: [""]
resources: ["namespaces"]
verbs: ["get", "list", "watch", "create"]
verbs: ["get", "list", "watch"]
- apiGroups: [""]
resources: ["persistentvolumeclaims"]
verbs: ["list", "watch"]
Expand All @@ -58,36 +57,135 @@ rules:
- apiGroups: ["storage.k8s.io"]
resources: ["csidrivers"]
verbs: ["list", "watch", "get"]
- apiGroups: ["storage.dell.com"]
resources: ["containerstoragemodules"]
verbs: ["list", "get", "watch"]
- apiGroups: ["mobility.storage.dell.com"]
resources: ["backups"]
verbs: ["list", "get"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: connectivity-client-docker-k8s
namespace: <NAMESPACE>
subjects:
- kind: ServiceAccount
name: connectivity-client-docker-k8s
namespace: <NAMESPACE>
roleRef:
kind: ClusterRole
name: connectivity-client-docker-k8s
apiGroup: rbac.authorization.k8s.io
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: connectivity-client-docker-k8s
namespace: <NAMESPACE>
rules:
- apiGroups: [""]
resources: ["secrets"]
verbs: ["list","get", "create", "update", "delete"]
verbs: ["list","get", "create", "update", "delete", "watch"]
- apiGroups: [""]
resources: ["configmaps"]
verbs: ["get", "create", "delete", "update"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: connectivity-client-docker-k8s
namespace: <NAMESPACE>
subjects:
- kind: ServiceAccount
name: connectivity-client-docker-k8s
namespace: <NAMESPACE>
roleRef:
kind: Role
name: connectivity-client-docker-k8s
apiGroup: rbac.authorization.k8s.io
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: connectivity-client-docker-k8s
namespace: default
rules:
- apiGroups: [""]
resources: ["secrets"]
verbs: ["get", "create", "update", "delete", "watch", "list"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: connectivity-client-docker-k8s
namespace: default
subjects:
- kind: ServiceAccount
name: connectivity-client-docker-k8s
namespace: <NAMESPACE>
roleRef:
kind: Role
name: connectivity-client-docker-k8s
apiGroup: rbac.authorization.k8s.io
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: connectivity-client-docker-k8s
namespace: "karavi"
rules:
- apiGroups: [""]
resources: ["secrets"]
verbs: ["list","get", "create", "update", "delete", "watch"]
- apiGroups: [""]
resources: ["configmaps"]
verbs: ["get", "create", "delete", "update"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: connectivity-client-docker-k8s
namespace: "karavi"
subjects:
- kind: ServiceAccount
name: connectivity-client-docker-k8s
namespace: <NAMESPACE>
roleRef:
kind: Role
name: connectivity-client-docker-k8s
apiGroup: rbac.authorization.k8s.io
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: connectivity-client-docker-k8s
namespace: "dell-csm"
rules:
- apiGroups: [""]
resources: ["secrets"]
verbs: ["list","get", "create", "update", "delete","watch"]
- apiGroups: ["storage.dell.com"]
resources: ["containerstoragemodules"]
verbs: ["list", "create", "get", "delete", "watch"]
verbs: ["create", "delete"]
- apiGroups: [""]
resources: ["configmaps"]
verbs: ["get", "create", "delete", "update"]
- apiGroups: ["mobility.storage.dell.com"]
resources: ["backups"]
verbs: ["list", "create", "get"]
- apiGroups: ["cert-manager.io"]
resources: ["issuers"]
verbs: ["list", "get", "create", "delete"]
- apiGroups: ["cert-manager.io"]
resources: ["certificates"]
verbs: ["list", "get", "create", "delete"]
verbs: ["create"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
kind: RoleBinding
metadata:
name: connectivity-client-docker-k8s
namespace: <NAMESPACE>
namespace: "dell-csm"
subjects:
- kind: ServiceAccount
name: connectivity-client-docker-k8s
namespace: <NAMESPACE>
roleRef:
kind: ClusterRole
kind: Role
name: connectivity-client-docker-k8s
apiGroup: rbac.authorization.k8s.io
---
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
apiVersion: v1
kind: Service
metadata:
labels:
control-plane: controller-manager
name: application-mobility-controller-manager-metrics-service
namespace: <NAMESPACE>
spec:
ports:
- name: https
port: 8443
protocol: TCP
targetPort: https
selector:
control-plane: controller-manager
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: <NAMESPACE>-metrics-reader
rules:
- nonResourceURLs:
- /metrics
verbs:
- get
Loading

0 comments on commit 95ab502

Please sign in to comment.