refactor: rename wsj-standup to wsj-drink (safe to do, this is a fork)
- forked - renamed the helm chart
This commit is contained in:
parent
bc197a9fd0
commit
a39cc7ff89
9 changed files with 22 additions and 22 deletions
|
|
@ -22,6 +22,6 @@ deploy:prod:
|
||||||
environment:
|
environment:
|
||||||
name: prod
|
name: prod
|
||||||
script:
|
script:
|
||||||
- helm upgrade --install wsj-standup ./deploy/charts/wsj-standup --namespace wsj --set image.tag=$IMAGE_TAG --set=app.WEBHOOK_URL=$DISCORD_WEBHOOK_URL --set app.SENTRY_DSN=$SENTRY_DSN --set image.pullSecretBase64=$REGISTRY_PULL_SECRET_BASE64
|
- helm upgrade --install wsj-drink ./deploy/charts/wsj-drink --namespace wsj --set image.tag=$IMAGE_TAG --set=app.WEBHOOK_URL=$DISCORD_WEBHOOK_URL --set app.SENTRY_DSN=$SENTRY_DSN --set image.pullSecretBase64=$REGISTRY_PULL_SECRET_BASE64
|
||||||
rules:
|
rules:
|
||||||
- if: '$CI_COMMIT_BRANCH == "main"'
|
- if: '$CI_COMMIT_BRANCH == "main"'
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
name: wsj-standup
|
name: wsj-drink
|
||||||
description: A Helm chart for Kubernetes
|
description: A Helm chart for Kubernetes
|
||||||
type: application
|
type: application
|
||||||
# SemVer
|
# SemVer
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{{/*
|
{{/*
|
||||||
Expand the name of the chart.
|
Expand the name of the chart.
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "wsj-standup.name" -}}
|
{{- define "wsj-drink.name" -}}
|
||||||
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
|
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
|
@ -10,7 +10,7 @@ Create a default fully qualified app name.
|
||||||
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
||||||
If release name contains chart name it will be used as a full name.
|
If release name contains chart name it will be used as a full name.
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "wsj-standup.fullname" -}}
|
{{- define "wsj-drink.fullname" -}}
|
||||||
{{- if .Values.fullnameOverride }}
|
{{- if .Values.fullnameOverride }}
|
||||||
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
|
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
|
|
@ -26,16 +26,16 @@ If release name contains chart name it will be used as a full name.
|
||||||
{{/*
|
{{/*
|
||||||
Create chart name and version as used by the chart label.
|
Create chart name and version as used by the chart label.
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "wsj-standup.chart" -}}
|
{{- define "wsj-drink.chart" -}}
|
||||||
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
|
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{/*
|
{{/*
|
||||||
Common labels
|
Common labels
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "wsj-standup.labels" -}}
|
{{- define "wsj-drink.labels" -}}
|
||||||
helm.sh/chart: {{ include "wsj-standup.chart" . }}
|
helm.sh/chart: {{ include "wsj-drink.chart" . }}
|
||||||
{{ include "wsj-standup.selectorLabels" . }}
|
{{ include "wsj-drink.selectorLabels" . }}
|
||||||
{{- if .Chart.AppVersion }}
|
{{- if .Chart.AppVersion }}
|
||||||
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
|
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
@ -45,17 +45,17 @@ app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
{{/*
|
{{/*
|
||||||
Selector labels
|
Selector labels
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "wsj-standup.selectorLabels" -}}
|
{{- define "wsj-drink.selectorLabels" -}}
|
||||||
app.kubernetes.io/name: {{ include "wsj-standup.name" . }}
|
app.kubernetes.io/name: {{ include "wsj-drink.name" . }}
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{/*
|
{{/*
|
||||||
Create the name of the service account to use
|
Create the name of the service account to use
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "wsj-standup.serviceAccountName" -}}
|
{{- define "wsj-drink.serviceAccountName" -}}
|
||||||
{{- if .Values.serviceAccount.create }}
|
{{- if .Values.serviceAccount.create }}
|
||||||
{{- default (include "wsj-standup.fullname" .) .Values.serviceAccount.name }}
|
{{- default (include "wsj-drink.fullname" .) .Values.serviceAccount.name }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
{{- default "default" .Values.serviceAccount.name }}
|
{{- default "default" .Values.serviceAccount.name }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "wsj-standup.fullname" . }}-config
|
name: {{ include "wsj-drink.fullname" . }}-config
|
||||||
data:
|
data:
|
||||||
WEBHOOK_URL: {{ .Values.app.WEBHOOK_URL }}
|
WEBHOOK_URL: {{ .Values.app.WEBHOOK_URL }}
|
||||||
SENTRY_DSN: {{ .Values.app.SENTRY_DSN }}
|
SENTRY_DSN: {{ .Values.app.SENTRY_DSN }}
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
apiVersion: batch/v1
|
apiVersion: batch/v1
|
||||||
kind: CronJob
|
kind: CronJob
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "wsj-standup.fullname" . }}-job
|
name: {{ include "wsj-drink.fullname" . }}-job
|
||||||
spec:
|
spec:
|
||||||
schedule: "0 8 * * 1"
|
schedule: "0 7-21 * * *"
|
||||||
jobTemplate:
|
jobTemplate:
|
||||||
spec:
|
spec:
|
||||||
backoffLimit: 4
|
backoffLimit: 4
|
||||||
|
|
@ -13,9 +13,9 @@ spec:
|
||||||
spec:
|
spec:
|
||||||
{{- if .Values.image.pullSecretBase64 }}
|
{{- if .Values.image.pullSecretBase64 }}
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: {{ include "wsj-standup.fullname" . }}-registry-credentials
|
- name: {{ include "wsj-drink.fullname" . }}-registry-credentials
|
||||||
{{- end }}
|
{{- end }}
|
||||||
serviceAccountName: {{ include "wsj-standup.serviceAccountName" . }}
|
serviceAccountName: {{ include "wsj-drink.serviceAccountName" . }}
|
||||||
containers:
|
containers:
|
||||||
- name: {{ .Chart.Name }}
|
- name: {{ .Chart.Name }}
|
||||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||||
|
|
@ -24,5 +24,5 @@ spec:
|
||||||
{{- toYaml .Values.resources | nindent 14 }}
|
{{- toYaml .Values.resources | nindent 14 }}
|
||||||
envFrom:
|
envFrom:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: {{ include "wsj-standup.fullname" . }}-config
|
name: {{ include "wsj-drink.fullname" . }}-config
|
||||||
restartPolicy: OnFailure
|
restartPolicy: OnFailure
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Secret
|
kind: Secret
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "wsj-standup.fullname" . }}-registry-credentials
|
name: {{ include "wsj-drink.fullname" . }}-registry-credentials
|
||||||
type: kubernetes.io/dockerconfigjson
|
type: kubernetes.io/dockerconfigjson
|
||||||
data:
|
data:
|
||||||
.dockerconfigjson: {{ .Values.image.pullSecretBase64 }}
|
.dockerconfigjson: {{ .Values.image.pullSecretBase64 }}
|
||||||
|
|
@ -2,9 +2,9 @@
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ServiceAccount
|
kind: ServiceAccount
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "wsj-standup.serviceAccountName" . }}
|
name: {{ include "wsj-drink.serviceAccountName" . }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "wsj-standup.labels" . | nindent 4 }}
|
{{- include "wsj-drink.labels" . | nindent 4 }}
|
||||||
{{- with .Values.serviceAccount.annotations }}
|
{{- with .Values.serviceAccount.annotations }}
|
||||||
annotations:
|
annotations:
|
||||||
{{- toYaml . | nindent 4 }}
|
{{- toYaml . | nindent 4 }}
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
image:
|
image:
|
||||||
repository: registry.mareshq.com/skaut/wsj/standup-discord-notification
|
repository: registry.mareshq.com/skaut/wsj/drink-notification
|
||||||
pullPolicy: Always
|
pullPolicy: Always
|
||||||
# Overrides the image tag whose default is the chart appVersion.
|
# Overrides the image tag whose default is the chart appVersion.
|
||||||
tag: ""
|
tag: ""
|
||||||
Reference in a new issue