Skip to content
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 stable/ckan/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: ckan
apiVersion: v2
type: application
version: 0.0.34
version: 0.0.35
appVersion: 2.9.5
description: CKAN Helm Chart for Kubernetes.
keywords:
Expand Down
4 changes: 4 additions & 0 deletions stable/ckan/templates/deploy/ckan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,10 @@ spec:
env:
- name: DEBUG
value: {{ .Values.ckan.debug | quote }}
- name: DATASET_PREFIX
value: {{ default "" .Values.ckan.dataset_prefix }}
- name: ORG_PREFIX
value: {{ default "" .Values.ckan.organization_prefix }}
- name: MAINTENANCE_MODE
value: {{ .Values.ckan.maintenanceMode | quote }}
- name: CKAN_DEBUG
Expand Down
33 changes: 26 additions & 7 deletions stable/fdi-dotstatsuite-keycloak/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,31 @@
apiVersion: v2
appVersion: 16.1.0
name: fdi-dotstatsuite-keycloak
description: fdi-dotstatsuite-keycloak

# A chart can be either an 'application' or a 'library' chart.
#
# Application charts are a collection of templates that can be packaged into versioned archives
# to be deployed.
#
# Library charts provide useful utilities or functions for the chart developer. They're included as
# a dependency of application charts to inject those utilities and functions into the rendering
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
type: application

# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.0.1

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
appVersion: 16.1.0

home: https://statcan.gc.ca
maintainers:
- email: Jianlong.qian@statcan.gc.ca
name: Jianlong.qian
name: fdi-dotstatsuite-keycloak
sources:
- https://gitlab.com/sis-cc/.stat-suite/dotstatsuite-kube-rp/
type: application
version: 1.0.0
maintainers:
- name: Jianlong.qian
email: Jianlong.qian@statcan.gc.ca
engine: gotpl
1 change: 0 additions & 1 deletion stable/fdi-dotstatsuite-sfs-solr-stateful
Submodule fdi-dotstatsuite-sfs-solr-stateful deleted from c1326e
23 changes: 23 additions & 0 deletions stable/fdi-dotstatsuite-sfs-solr-stateful/.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/
33 changes: 33 additions & 0 deletions stable/fdi-dotstatsuite-sfs-solr-stateful/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
apiVersion: v2
name: fdi-dotstatsuite-sfs-solr-stateful
description: fdi-dotstatsuite helm chart for the search service and solr


# A chart can be either an 'application' or a 'library' chart.
#
# Application charts are a collection of templates that can be packaged into versioned archives
# to be deployed.
#
# Library charts provide useful utilities or functions for the chart developer. They're included as
# a dependency of application charts to inject those utilities and functions into the rendering
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
type: application

# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.0.2

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
appVersion: v14.0.0

home: https://statcan.gc.ca
sources:
- https://gitlab.k8s.cloud.statcan.ca/analytics-platform/fdi-idf/metadata
- https://gitlab.com/sis-cc/.stat-suite/dotstatsuite-kube-rp/
maintainers:
- name: Jianlong Qian
email: Jianlong.qian@statcan.gc.ca
engine: gotpl
109 changes: 109 additions & 0 deletions stable/fdi-dotstatsuite-sfs-solr-stateful/templates/_helpers.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
{{/* vim: set filetype=mustache: */}}
{{/*
Expand the name of the chart.
*/}}
{{- define "dotstatsuite.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 "dotstatsuite.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 "dotstatsuite.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
{{- end }}

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

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


{{/*
Create the name of the service account to use
*/}}
{{- define "dotstatsuite.config.serviceAccountName" -}}
{{- if .Values.config.serviceAccount.create }}
{{- default (include "dotstatsuite.fullname" .) .Values.config.serviceAccount.name }}
{{- else }}
{{- default "default" .Values.config.serviceAccount.name }}
{{- end }}
{{- end }}


{{/*
Create the name of the service account to use
*/}}
{{- define "dotstatsuite.dlm.serviceAccountName" -}}
{{- if .Values.dlm.serviceAccount.create }}
{{- default (include "dotstatsuite.fullname" .) .Values.dlm.serviceAccount.name }}
{{- else }}
{{- default "default" .Values.dlm.serviceAccount.name }}
{{- end }}
{{- end }}

{{/*
Create the name of the service account to use
*/}}
{{- define "dotstatsuite.sfs.serviceAccountName" -}}
{{- if .Values.sfs.serviceAccount.create }}
{{- default (include "dotstatsuite.fullname" .) .Values.sfs.serviceAccount.name }}
{{- else }}
{{- default "default" .Values.sfs.serviceAccount.name }}
{{- end }}
{{- end }}

{{/*
Create the name of the service account to use
*/}}
{{- define "dotstatsuite.solr.serviceAccountName" -}}
{{- if .Values.solr.serviceAccount.create }}
{{- default (include "dotstatsuite.fullname" .) .Values.solr.serviceAccount.name }}
{{- else }}
{{- default "default" .Values.solr.serviceAccount.name }}
{{- end }}
{{- end }}

{{/*
Create the name of the service account to use
*/}}
{{- define "dotstatsuite.mongo.serviceAccountName" -}}
{{- if .Values.mongo.serviceAccount.create }}
{{- default (include "dotstatsuite.fullname" .) .Values.mongo.serviceAccount.name }}
{{- else }}
{{- default "default" .Values.mongo.serviceAccount.name }}
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{{- if .Values.mongo.enabled -}}
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "dotstatsuite.fullname" . }}-mongo
labels:
{{- include "dotstatsuite.labels" . | nindent 4 }}-mongo
spec:
{{- if not .Values.mongo.autoscaling.enabled }}
replicas: {{ .Values.mongo.replicaCount }}
{{- end }}
selector:
matchLabels:
{{- include "dotstatsuite.selectorLabels" . | nindent 6 }}-mongo
template:
metadata:
{{- with .Values.mongo.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- include "dotstatsuite.selectorLabels" . | nindent 8 }}-mongo
spec:
volumes:
- name: {{ include "dotstatsuite.fullname" . }}-mongo-pv-storage
persistentVolumeClaim:
claimName: {{ include "dotstatsuite.fullname" . }}-mongo-pv-claim
{{- with .Values.mongo.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ include "dotstatsuite.mongo.serviceAccountName" . }}-mongo
terminationGracePeriodSeconds: 10
securityContext:
{{- toYaml .Values.mongo.podSecurityContext | nindent 8 }}
containers:
- name: {{ .Chart.Name }}-mongo
securityContext:
{{- toYaml .Values.mongo.securityContext | nindent 12 }}
image: "{{ .Values.mongo.image.repository }}:{{ .Values.mongo.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.mongo.image.pullPolicy }}
volumeMounts:
- mountPath: /data/db
name: {{ include "dotstatsuite.fullname" . }}-mongo-pv-storage
ports:
- name: mongodb
containerPort: {{ .Values.mongo.service.port }}
{{- end -}}



Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{{- if .Values.sfs.enabled -}}
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "dotstatsuite.fullname" . }}-sfs
labels:
{{- include "dotstatsuite.labels" . | nindent 4 }}-sfs
spec:
{{- if not .Values.sfs.autoscaling.enabled }}
replicas: {{ .Values.sfs.replicaCount }}
{{- end }}
selector:
matchLabels:
{{- include "dotstatsuite.selectorLabels" . | nindent 6 }}-sfs
template:
metadata:
{{- with .Values.sfs.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- include "dotstatsuite.selectorLabels" . | nindent 8 }}-sfs
spec:
{{- with .Values.sfs.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ include "dotstatsuite.sfs.serviceAccountName" . }}-sfs
securityContext:
{{- toYaml .Values.sfs.podSecurityContext | nindent 8 }}
containers:
- name: {{ .Chart.Name }}-sfs
securityContext:
{{- toYaml .Values.sfs.securityContext | nindent 12 }}
image: "{{ .Values.sfs.image.repository }}:{{ .Values.sfs.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.sfs.image.pullPolicy }}
env:
- name: LOGGING_DRIVER
value: "file"
- name: LOGGING_PROJECT_ID
value: "{{ include "dotstatsuite.fullname" . }}-sfs"
- name: LOGGING_LOGNAME
value: "{{ include "dotstatsuite.fullname" . }}-sfs-app-log"
- name: LOGGING_LEVEL
value: "info"
- name: SOLR_HOST
value: "{{ .Values.sfs.solr.host }}"
- name: SOLR_PORT
value: "{{ .Values.sfs.solr.port }}"
- name: MONGODB_URL
value: "mongodb://{{ include "dotstatsuite.fullname" . }}-mongo:27017"
- name: MONGODB_DATABASE
value: "sfs"
- name: CONFIG_URL
value: "{{ .Values.sfs.config.host }}"
- name: API_KEY
valueFrom:
secretKeyRef:
name: {{ include "dotstatsuite.fullname" . }}-api-key-secret
key: api-key
ports:
- name: readiness-http
containerPort: 80
protocol: TCP
readinessProbe:
httpGet:
path: /healthcheck
port: readiness-http
{{- end -}}
Loading
Loading