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

Zipkin charts adding namespaces #10

Merged
merged 1 commit into from
Jan 16, 2024
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: 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