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

helm: finer control over what is going to be deployed #818

Merged
merged 1 commit into from
Jan 3, 2022
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
2 changes: 2 additions & 0 deletions chart/k8gb/templates/coredns-cm.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.coredns.deployment.enabled }}
kind: ConfigMap
metadata:
labels:
Expand All @@ -19,3 +20,4 @@ data:
negttl {{ .Values.k8gb.dnsZoneNegTTL }}
}
}
{{- end }}
2 changes: 2 additions & 0 deletions chart/k8gb/templates/coredns/rbac.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if and .Values.coredns.deployment.enabled .Values.coredns.rbac.create }}
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
Expand Down Expand Up @@ -31,3 +32,4 @@ subjects:
- kind: ServiceAccount
name: coredns
namespace: {{ .Release.Namespace }}
{{- end }}
2 changes: 2 additions & 0 deletions chart/k8gb/templates/crds/dns-endpoint-crd-manifest.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.k8gb.deployCrds }}
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
Expand Down Expand Up @@ -91,3 +92,4 @@ status:
plural: ""
conditions: []
storedVersions: []
{{- end }}
3 changes: 2 additions & 1 deletion chart/k8gb/templates/crds/k8gb.absa.oss_gslbs.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

{{- if .Values.k8gb.deployCrds }}
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
Expand Down Expand Up @@ -320,3 +320,4 @@ status:
plural: ""
conditions: []
storedVersions: []
{{- end }}
2 changes: 2 additions & 0 deletions chart/k8gb/templates/role.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.k8gb.deployRbac }}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
Expand Down Expand Up @@ -53,3 +54,4 @@ rules:
verbs:
- update
{{- end }}
{{- end }}
2 changes: 2 additions & 0 deletions chart/k8gb/templates/role_binding.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.k8gb.deployRbac }}
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
Expand All @@ -10,3 +11,4 @@ roleRef:
kind: ClusterRole
name: k8gb
apiGroup: rbac.authorization.k8s.io
{{- end }}
2 changes: 2 additions & 0 deletions chart/k8gb/templates/service_account.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{{- if .Values.k8gb.deployRbac }}
apiVersion: v1
kind: ServiceAccount
metadata:
name: k8gb
namespace: {{ .Release.Namespace }}
imagePullSecrets: {{ toYaml .Values.global.imagePullSecrets | nindent 2 }}
{{- end }}
6 changes: 5 additions & 1 deletion chart/k8gb/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ k8gb:
imageRepo: "absaoss/k8gb"
# -- ( string ) image tag defaults to Chart.AppVersion, see Chart.yaml, but can be overrided with imageTag key
imageTag:
# -- whether it should also deploy the gslb and dnsendpoints CRDs
deployCrds: true
# -- whether it should also deploy the service account, cluster role and cluster role binding
deployRbac: true
# -- dnsZone controlled by gslb
dnsZone: "cloud.example.com"
# -- Negative TTL for SOA record
Expand All @@ -19,7 +23,7 @@ k8gb:
edgeDNSServers:
# -- use this DNS server as a main resolver to enable cross k8gb DNS based communication
- "1.1.1.1"
# -- used for places where we need to distinguish between differnet Gslb instances
# -- used for places where we need to distinguish between different Gslb instances
clusterGeoTag: "eu"
# -- comma-separated list of external gslb geo tags to pair with
extGslbClustersGeoTags: "us"
Expand Down