Skip to content

Commit

Permalink
Zipkin charts adding namespaces (#10)
Browse files Browse the repository at this point in the history
Change chart version

Co-authored-by: mfordjody <[email protected]>
  • Loading branch information
mfordjody and mfordjody authored Jan 16, 2024
1 parent 475ebd8 commit f8c216b
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/zipkin/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ appVersion: 3.0.2
name: zipkin
description: A Zipkin helm chart for kubernetes
type: application
version: 0.1.1
version: 0.1.2
maintainers:
- name: openzipkin
email: [email protected]
7 changes: 7 additions & 0 deletions charts/zipkin/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ Create chart name and version as used by the chart label.
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
{{- end }}

{{/*
Create chart namespaces.
*/}}
{{- define "zipkin.namespace" -}}
{{- default .Release.Namespace .Values.namespaceOverride | trunc 63 | trimSuffix "-" }}
{{- end }}

{{/*
Common labels
*/}}
Expand Down
1 change: 1 addition & 0 deletions charts/zipkin/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "zipkin.fullname" . }}
namespace: {{ include "zipkin.namespace" . }}
labels:
{{- include "zipkin.labels" . | nindent 4 }}
spec:
Expand Down
1 change: 1 addition & 0 deletions charts/zipkin/templates/hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: {{ include "zipkin.fullname" . }}
namespace: {{ include "zipkin.namespace" . }}
labels:
{{- include "zipkin.labels" . | nindent 4 }}
spec:
Expand Down
1 change: 1 addition & 0 deletions charts/zipkin/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: {{ $fullName }}
namespace: {{ include "zipkin.namespace" . }}
labels:
{{- include "zipkin.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }}
Expand Down
1 change: 1 addition & 0 deletions charts/zipkin/templates/psp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ metadata:
labels:
{{- include "zipkin.labels" . | nindent 4 }}
name: {{ include "zipkin.fullname" . }}
namespace: {{ include "zipkin.namespace" . }}
annotations:
seccomp.security.alpha.kubernetes.io/allowedProfileNames: 'docker/default,runtime/default'
apparmor.security.beta.kubernetes.io/allowedProfileNames: 'runtime/default'
Expand Down
1 change: 1 addition & 0 deletions charts/zipkin/templates/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: {{ include "zipkin.fullname" . }}
namespace: {{ include "zipkin.namespace" . }}
labels:
{{- include "zipkin.labels" . | nindent 4 }}
rules:
Expand Down
1 change: 1 addition & 0 deletions charts/zipkin/templates/rolebinding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: {{ include "zipkin.serviceAccountName" . }}
namespace: {{ include "zipkin.namespace" . }}
labels:
{{- include "zipkin.labels" . | nindent 4 }}
roleRef:
Expand Down
1 change: 1 addition & 0 deletions charts/zipkin/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ apiVersion: v1
kind: Service
metadata:
name: {{ include "zipkin.fullname" . }}
namespace: {{ include "zipkin.namespace" . }}
labels:
{{- include "zipkin.labels" . | nindent 4 }}
spec:
Expand Down
1 change: 1 addition & 0 deletions charts/zipkin/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "zipkin.serviceAccountName" . }}
namespace: {{ include "zipkin.namespace" . }}
labels:
{{- include "zipkin.labels" . | nindent 4 }}
{{- with .Values.serviceAccount.annotations }}
Expand Down
1 change: 1 addition & 0 deletions charts/zipkin/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ image:
imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""
namespaceOverride: ""

serviceAccount:
# Specifies whether a service account should be created
Expand Down

0 comments on commit f8c216b

Please sign in to comment.