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 chart v0.1.1 for clients #7

Merged
merged 1 commit into from
Feb 13, 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
23 changes: 23 additions & 0 deletions clients/harbor-client/charts/.helmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
4 changes: 2 additions & 2 deletions clients/harbor-client/charts/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ name: snappcloud-harbor-client
description: A Helm chart for snappcloud-harbor-client

type: application
version: 0.1.0
appVersion: "0.0.1"
version: 0.1.1
appVersion: "0.0.2"
62 changes: 62 additions & 0 deletions clients/harbor-client/charts/templates/_helpers.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{{/*
Expand the name of the chart.
*/}}
{{- define "snappcloud-harbor-client.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
{{- end }}

{{/*
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).
If release name contains chart name it will be used as a full name.
*/}}
{{- define "snappcloud-harbor-client.fullname" -}}
{{- if .Values.fullnameOverride }}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- $name := default .Chart.Name .Values.nameOverride }}
{{- if contains $name .Release.Name }}
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
{{- end }}
{{- end }}
{{- end }}

{{/*
Create chart name and version as used by the chart label.
*/}}
{{- define "snappcloud-harbor-client.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
{{- end }}

{{/*
Common labels
*/}}
{{- define "snappcloud-harbor-client.labels" -}}
helm.sh/chart: {{ include "snappcloud-harbor-client.chart" . }}
{{ include "snappcloud-harbor-client.selectorLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end }}

{{/*
Selector labels
*/}}
{{- define "snappcloud-harbor-client.selectorLabels" -}}
app.kubernetes.io/name: {{ include "snappcloud-harbor-client.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}

{{/*
Create the name of the service account to use
*/}}
{{- define "snappcloud-harbor-client.serviceAccountName" -}}
{{- if .Values.serviceAccount.create }}
{{- default (include "snappcloud-harbor-client.fullname" .) .Values.serviceAccount.name }}
{{- else }}
{{- default "default" .Values.serviceAccount.name }}
{{- end }}
{{- end }}
33 changes: 15 additions & 18 deletions clients/harbor-client/charts/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,23 @@ spec:
{{- include "snappcloud-harbor-client.selectorLabels" . | nindent 6 }}
template:
metadata:
labels:
{{- include "snappcloud-harbor-client.selectorLabels" . | nindent 8 }}
{{- with .Values.podAnnotations }}
annotations:
{{- .Values.podAnnotations | toYaml | nindent 8 }}
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- include "snappcloud-harbor-client.labels" . | nindent 8 }}
{{- with .Values.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
serviceAccountName: {{ include "snappcloud-harbor-client.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- name: http
Expand All @@ -35,12 +39,5 @@ spec:
secretKeyRef:
name: {{ .Values.configSecretName }}
key: IMAGE_REFERENCE
{{ .Values.nodeSelector | toYaml | nindent 8 }}
tolerations:
{{- with .Values.tolerations }}
{{- toYaml . | nindent 8 }}
{{- end }}
affinity:
{{- with .Values.affinity }}
{{- toYaml . | nindent 8 }}
{{- end }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
10 changes: 3 additions & 7 deletions clients/harbor-client/charts/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,14 @@ replicaCount: 1
image:
repository: ghcr.io/snapp-incubator/snappcloud-status-backend/clients/harbor-client
pullPolicy: Always
tag: "0.0.1"
tag: "0.1.0"

imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""

serviceAccount:
create: false
automount: true
annotations: {}
name: ""
podAnnotations: {}
podLabels: {}

service:
type: ClusterIP
Expand All @@ -32,6 +29,5 @@ autoscaling:
minReplicas: 1
maxReplicas: 100
targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80

configSecretName: spcld-harbor-health-client
23 changes: 23 additions & 0 deletions clients/proxy-client/charts/.helmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
4 changes: 2 additions & 2 deletions clients/proxy-client/charts/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ name: snappcloud-proxy-client
description: A Helm chart for snappcloud-proxy-client

type: application
version: 0.1.0
appVersion: "0.0.1"
version: 0.1.1
appVersion: "0.0.2"
62 changes: 62 additions & 0 deletions clients/proxy-client/charts/templates/_helpers.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{{/*
Expand the name of the chart.
*/}}
{{- define "snappcloud-proxy-client.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
{{- end }}

{{/*
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).
If release name contains chart name it will be used as a full name.
*/}}
{{- define "snappcloud-proxy-client.fullname" -}}
{{- if .Values.fullnameOverride }}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- $name := default .Chart.Name .Values.nameOverride }}
{{- if contains $name .Release.Name }}
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
{{- end }}
{{- end }}
{{- end }}

{{/*
Create chart name and version as used by the chart label.
*/}}
{{- define "snappcloud-proxy-client.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
{{- end }}

{{/*
Common labels
*/}}
{{- define "snappcloud-proxy-client.labels" -}}
helm.sh/chart: {{ include "snappcloud-proxy-client.chart" . }}
{{ include "snappcloud-proxy-client.selectorLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end }}

{{/*
Selector labels
*/}}
{{- define "snappcloud-proxy-client.selectorLabels" -}}
app.kubernetes.io/name: {{ include "snappcloud-proxy-client.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}

{{/*
Create the name of the service account to use
*/}}
{{- define "snappcloud-proxy-client.serviceAccountName" -}}
{{- if .Values.serviceAccount.create }}
{{- default (include "snappcloud-proxy-client.fullname" .) .Values.serviceAccount.name }}
{{- else }}
{{- default "default" .Values.serviceAccount.name }}
{{- end }}
{{- end }}
33 changes: 15 additions & 18 deletions clients/proxy-client/charts/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,23 @@ spec:
{{- include "snappcloud-proxy-client.selectorLabels" . | nindent 6 }}
template:
metadata:
labels:
{{- include "snappcloud-proxy-client.selectorLabels" . | nindent 8 }}
{{- with .Values.podAnnotations }}
annotations:
{{- .Values.podAnnotations | toYaml | nindent 8 }}
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- include "snappcloud-proxy-client.labels" . | nindent 8 }}
{{- with .Values.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
serviceAccountName: {{ include "snappcloud-proxy-client.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- name: http
Expand All @@ -35,12 +39,5 @@ spec:
secretKeyRef:
name: {{ .Values.configSecretName }}
key: PROXY_URL
{{ .Values.nodeSelector | toYaml | nindent 8 }}
tolerations:
{{- with .Values.tolerations }}
{{- toYaml . | nindent 8 }}
{{- end }}
affinity:
{{- with .Values.affinity }}
{{- toYaml . | nindent 8 }}
{{- end }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
10 changes: 3 additions & 7 deletions clients/proxy-client/charts/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,14 @@ replicaCount: 1
image:
repository: ghcr.io/snapp-incubator/snappcloud-status-backend/clients/proxy-client
pullPolicy: Always
tag: "0.0.1"
tag: "0.1.0"

imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""

serviceAccount:
create: false
automount: true
annotations: {}
name: ""
podAnnotations: {}
podLabels: {}

service:
type: ClusterIP
Expand All @@ -32,6 +29,5 @@ autoscaling:
minReplicas: 1
maxReplicas: 100
targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80

configSecretName: spcld-proxy-health-client
7 changes: 0 additions & 7 deletions clients/proxy-client/deploy/Chart.yaml

This file was deleted.

46 changes: 0 additions & 46 deletions clients/proxy-client/deploy/templates/deployment.yaml

This file was deleted.

Loading
Loading