Skip to content
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

MCAD deployment in custom namespace #656

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion deployment/mcad-controller/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
14 changes: 7 additions & 7 deletions deployment/mcad-controller/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
kind: Service
metadata:
name: custom-metrics-apiserver
namespace: kube-system
namespace: {{ .Values.namespace }}
spec:
ports:
- name: https
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -135,7 +135,7 @@ metadata:
labels:
wdc.ibm.com/ownership: admin
name: {{ .Values.serviceAccount }}
namespace: kube-system
namespace: {{ .Values.namespace }}
#{{ end }}
---
#{{ if .Values.serviceAccount }}
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion deployment/mcad-controller/templates/imageSecret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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" . }}
Expand Down