Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,6 @@ endif
crdsync: generate manifests
cp config/crd/bases/intel.com_clusterpolicies.yaml charts/gpu-base-operator/crds/clusterpolicies.yaml
cp config/crd/bases/intel.com_gpufirmwareupdates.yaml charts/gpu-base-operator/crds/gpufirmwareupdates.yaml
cp config/rbac/role.yaml charts/gpu-base-operator/templates/role.yaml

.PHONY: check-generated-files
check-generated-files: crdsync
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ roleRef:
name: leader-election-role
subjects:
- kind: ServiceAccount
name: controller-manager
name: {{ .Release.Name }}-controller-manager
namespace: {{ .Release.Namespace }}
10 changes: 5 additions & 5 deletions charts/gpu-base-operator/templates/manager.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: controller-manager
name: {{ .Release.Name }}-controller-manager
labels:
control-plane: controller-manager
control-plane: {{ .Release.Name }}-controller-manager
app.kubernetes.io/name: intel-gpu-base-operator
app.kubernetes.io/managed-by: kustomize
spec:
selector:
matchLabels:
control-plane: controller-manager
control-plane: {{ .Release.Name }}-controller-manager
app.kubernetes.io/name: intel-gpu-base-operator
replicas: 1
template:
metadata:
annotations:
kubectl.kubernetes.io/default-container: manager
labels:
control-plane: controller-manager
control-plane: {{ .Release.Name }}-controller-manager
app.kubernetes.io/name: intel-gpu-base-operator
spec:
# TODO(user): Uncomment the following code to configure the nodeAffinity expression
Expand Down Expand Up @@ -105,7 +105,7 @@ spec:
requests:
cpu: {{ .Values.operator.resources.requests.cpu | default "10m" }}
memory: {{ .Values.operator.resources.requests.memory | default "64Mi" }}
serviceAccountName: controller-manager
serviceAccountName: {{ .Release.Name }}-controller-manager
terminationGracePeriodSeconds: 10
volumes:
- name: webhook-certs
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: metrics-auth-role
name: {{ .Release.Name }}-metrics-auth-role
rules:
- apiGroups:
- authentication.k8s.io
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: metrics-auth-rolebinding
name: {{ .Release.Name }}-metrics-auth-rolebinding
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: metrics-auth-role
name: {{ .Release.Name }}-metrics-auth-role
subjects:
- kind: ServiceAccount
name: controller-manager
name: {{ .Release.Name }}-controller-manager
namespace: {{ .Release.Namespace }}
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ roleRef:
name: manager-namespaced-role
subjects:
- kind: ServiceAccount
name: controller-manager
name: {{ .Release.Name }}-controller-manager
namespace: {{ .Release.Namespace }}
2 changes: 1 addition & 1 deletion charts/gpu-base-operator/templates/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: manager-role
name: {{ .Release.Name }}-manager-role
rules:
- apiGroups:
- ""
Expand Down
6 changes: 3 additions & 3 deletions charts/gpu-base-operator/templates/role_binding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ metadata:
labels:
app.kubernetes.io/name: intel-gpu-base-operator
app.kubernetes.io/managed-by: kustomize
name: manager-rolebinding
name: {{ .Release.Name }}-manager-rolebinding
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: manager-role
name: {{ .Release.Name }}-manager-role
subjects:
- kind: ServiceAccount
name: controller-manager
name: {{ .Release.Name }}-controller-manager
namespace: {{.Release.Namespace }}
2 changes: 1 addition & 1 deletion charts/gpu-base-operator/templates/service_account.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ metadata:
labels:
app.kubernetes.io/name: intel-gpu-base-operator
app.kubernetes.io/managed-by: kustomize
name: controller-manager
name: {{ .Release.Name }}-controller-manager
namespace: {{ .Release.Namespace }}
2 changes: 1 addition & 1 deletion charts/gpu-base-operator/templates/webhook_service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ spec:
targetPort: 9443
selector:
app.kubernetes.io/name: intel-gpu-base-operator
control-plane: controller-manager
control-plane: {{ .Release.Name }}-controller-manager