Skip to content

MCAD deployment in custom namespace #656

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion deployment/mcad-controller/templates/configmap.yaml
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@ apiVersion: v1
kind: ConfigMap
metadata:
name: {{ .Values.configMap.name }}
namespace: kube-system
namespace: {{ .Values.namespace }}
data:
QUOTA_ENABLED: {{ .Values.configMap.quotaEnabled }}
DISPATCHER_MODE: {{ .Values.configMap.dispatcherMode }}
14 changes: 7 additions & 7 deletions deployment/mcad-controller/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@ apiVersion: v1
kind: Service
metadata:
name: custom-metrics-apiserver
namespace: kube-system
namespace: {{ .Values.namespace }}
spec:
ports:
- name: https
@@ -40,7 +40,7 @@ metadata:
spec:
service:
name: custom-metrics-apiserver
namespace: kube-system
namespace: {{ .Values.namespace }}
group: external.metrics.k8s.io
version: v1beta1
insecureSkipTLSVerify: true
@@ -135,7 +135,7 @@ metadata:
labels:
wdc.ibm.com/ownership: admin
name: {{ .Values.serviceAccount }}
namespace: kube-system
namespace: {{ .Values.namespace }}
#{{ end }}
---
#{{ if .Values.serviceAccount }}
@@ -154,7 +154,7 @@ roleRef:
subjects:
- kind: ServiceAccount
name: {{ .Values.serviceAccount }}
namespace: kube-system
namespace: {{ .Values.namespace }}
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
@@ -171,7 +171,7 @@ roleRef:
subjects:
- kind: ServiceAccount
name: {{ .Values.serviceAccount }}
namespace: kube-system
namespace: {{ .Values.namespace }}
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
@@ -188,14 +188,14 @@ roleRef:
subjects:
- kind: ServiceAccount
name: {{ .Values.serviceAccount }}
namespace: kube-system
namespace: {{ .Values.namespace }}
#{{ end }}
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Values.deploymentName }}
namespace: kube-system
namespace: {{ .Values.namespace }}
labels:
chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
app: custom-metrics-apiserver
2 changes: 1 addition & 1 deletion deployment/mcad-controller/templates/imageSecret.yaml
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@ apiVersion: v1
kind: Secret
metadata:
name: {{ .Values.imagePullSecret.name }}
namespace: kube-system
namespace: {{ .Values.namespace }}
type: kubernetes.io/dockerconfigjson
data:
.dockerconfigjson: {{ template "imagePullSecret" . }}