Skip to content

Commit

Permalink
Add Namespaces to Resources (#17)
Browse files Browse the repository at this point in the history
* Correctly Namespace Resources

* Increase chart version

---------

Co-authored-by: Narekmat <[email protected]>
  • Loading branch information
daviddyball and Narekmat authored Sep 12, 2023
1 parent 3e50fa5 commit 6996eab
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/kafka-ui/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ apiVersion: v2
name: kafka-ui
description: A Helm chart for kafka-UI
type: application
version: 0.7.4
version: 0.7.5
appVersion: v0.7.1
icon: https://github.com/provectus/kafka-ui/raw/master/documentation/images/kafka-ui-logo.png
3 changes: 2 additions & 1 deletion charts/kafka-ui/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "kafka-ui.fullname" . }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "kafka-ui.labels" . | nindent 4 }}
data:
{{- toYaml .Values.envs.config | nindent 2 }}
{{- end -}}
{{- end -}}
3 changes: 2 additions & 1 deletion charts/kafka-ui/templates/configmap_fromValues.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "kafka-ui.fullname" . }}-fromvalues
namespace: {{ .Release.Namespace }}
labels:
{{- include "kafka-ui.labels" . | nindent 4 }}
data:
config.yml: |-
{{- toYaml .Values.yamlApplicationConfig | nindent 4}}
{{ end }}
{{ end }}
1 change: 1 addition & 0 deletions charts/kafka-ui/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "kafka-ui.fullname" . }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "kafka-ui.labels" . | nindent 4 }}
{{- with .Values.annotations }}
Expand Down
1 change: 1 addition & 0 deletions charts/kafka-ui/templates/hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ apiVersion: autoscaling/v2beta1
kind: HorizontalPodAutoscaler
metadata:
name: {{ include "kafka-ui.fullname" . }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "kafka-ui.labels" . | nindent 4 }}
spec:
Expand Down
1 change: 1 addition & 0 deletions charts/kafka-ui/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: {{ $fullName }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "kafka-ui.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }}
Expand Down
1 change: 1 addition & 0 deletions charts/kafka-ui/templates/networkpolicy-egress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: {{ printf "%s-egress" (include "kafka-ui.fullname" .) }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "kafka-ui.labels" . | nindent 4 }}
spec:
Expand Down
1 change: 1 addition & 0 deletions charts/kafka-ui/templates/networkpolicy-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: {{ printf "%s-ingress" (include "kafka-ui.fullname" .) }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "kafka-ui.labels" . | nindent 4 }}
spec:
Expand Down
3 changes: 2 additions & 1 deletion charts/kafka-ui/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ apiVersion: v1
kind: Secret
metadata:
name: {{ include "kafka-ui.fullname" . }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "kafka-ui.labels" . | nindent 4 }}
type: Opaque
data:
{{- range $key, $val := .Values.envs.secret }}
{{ $key }}: {{ $val | b64enc | quote }}
{{- end -}}
{{- end}}
{{- end}}
1 change: 1 addition & 0 deletions charts/kafka-ui/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: v1
kind: Service
metadata:
name: {{ include "kafka-ui.fullname" . }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "kafka-ui.labels" . | nindent 4 }}
{{- if .Values.service.annotations }}
Expand Down
1 change: 1 addition & 0 deletions charts/kafka-ui/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "kafka-ui.serviceAccountName" . }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "kafka-ui.labels" . | nindent 4 }}
{{- with .Values.serviceAccount.annotations }}
Expand Down

0 comments on commit 6996eab

Please sign in to comment.