Skip to content

Commit

Permalink
[CI] Publish truefoundry to version (#773)
Browse files Browse the repository at this point in the history
* [CI] Publish Truefoundry chart version

* Update README.md with readme-generator-for-helm

Signed-off-by: innoavator <[email protected]>

---------

Signed-off-by: innoavator <[email protected]>
Co-authored-by: akashg3627 <[email protected]>
Co-authored-by: innoavator <[email protected]>
  • Loading branch information
3 people authored Nov 8, 2024
1 parent e982204 commit f395960
Show file tree
Hide file tree
Showing 16 changed files with 112 additions and 63 deletions.
2 changes: 1 addition & 1 deletion charts/truefoundry/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: truefoundry
version: 0.9.0
version: 0.9.1
description: "TrueFoundry Control Plane Components"
maintainers:
- name: truefoundry
Expand Down
6 changes: 3 additions & 3 deletions charts/truefoundry/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ truefoundry is an applications that gets deployed on the kubernetes cluster to s
| `global.truefoundryImagePullConfigJSON` | JSON config for image pull secret | `""` |
| `global.tenantName` | Name of the tenant | `""` |
| `global.controlPlaneURL` | URL of the control plane | `http://truefoundry-truefoundry-frontend-app.truefoundry.svc.cluster.local:5000` |
| `global.controlPlaneChartVersion` | Version of control-plane chart | `0.9.0` |
| `global.controlPlaneChartVersion` | Version of control-plane chart | `0.9.1` |
| `global.existingTruefoundryCredsSecret` | Name of the existing truefoundry creds secret | `""` |
| `global.database.host` | Control plane database hostname when dev mode is not enabled | `""` |
| `global.database.name` | Control plane database name when dev mode is not enabled | `""` |
Expand Down Expand Up @@ -132,7 +132,7 @@ truefoundry is an applications that gets deployed on the kubernetes cluster to s
| `servicefoundryServer.replicaCount` | Number of replicas for the servicefoundry server | `1` |
| `servicefoundryServer.global` | Global values for the servicefoundry server | `{}` |
| `servicefoundryServer.image.repository` | Image repository for the servicefoundry server | `tfy.jfrog.io/tfy-private-images/servicefoundry-server` |
| `servicefoundryServer.image.tag` | Image tag for the servicefoundry server | `v0.9.0` |
| `servicefoundryServer.image.tag` | Image tag for the servicefoundry server | `v0.9.1` |
| `servicefoundryServer.environmentName` | Environment name for the servicefoundry server | `default` |
| `servicefoundryServer.envSecretName` | Secret name for the servicefoundry server environment variables | `servicefoundry-server-env-secret` |
| `servicefoundryServer.imagePullPolicy` | Image pull policy for the servicefoundry server | `IfNotPresent` |
Expand Down Expand Up @@ -208,7 +208,7 @@ truefoundry is an applications that gets deployed on the kubernetes cluster to s
| `sfyManifestService.tolerations` | Tolerations specific to the sfy manifest service | `{}` |
| `sfyManifestService.global` | Global values for the sfy manifest service | `{}` |
| `sfyManifestService.image.repository` | Image repository for the sfy manifest service | `tfy.jfrog.io/tfy-private-images/sfy-manifest-service` |
| `sfyManifestService.image.tag` | Image tag for the sfy manifest service | `v0.6.0-rc.1` |
| `sfyManifestService.image.tag` | Image tag for the sfy manifest service | `v0.6.0` |
| `sfyManifestService.replicaCount` | Number of replicas for the sfy manifest service | `1` |
| `sfyManifestService.environmentName` | Environment name for the sfy manifest service | `default` |
| `sfyManifestService.envSecretName` | Secret name for the sfy manifest service environment variables | `sfy-manifest-service-env-secret` |
Expand Down
21 changes: 14 additions & 7 deletions charts/truefoundry/templates/mlfoundry-server/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,25 @@ Expand the name of the chart.
{{- end }}

{{/*
Common labels
Pod Labels
*/}}
{{- define "mlfoundry-server.labels" -}}
helm.sh/chart: {{ include "mlfoundry-server.chart" . }}
{{- define "mlfoundry-server.podLabels" -}}
{{ include "mlfoundry-server.selectorLabels" . }}
{{- if .Values.mlfoundryServer.image.tag }}
app.kubernetes.io/version: {{ .Values.mlfoundryServer.image.tag | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- range $name, $value := .Values.mlfoundryServer.commonLabels }}
{{ $name }}: {{ tpl $value $ | quote }}
{{- end }}
{{ include "mlfoundry-server.selectorLabels" . }}
{{- if .Values.mlfoundryServer.imageTag }}
app.kubernetes.io/version: {{ .Values.mlfoundryServer.imageTag | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}

{{/*
Common labels
*/}}
{{- define "mlfoundry-server.labels" -}}
helm.sh/chart: {{ include "mlfoundry-server.chart" . }}
{{ include "mlfoundry-server.podLabels" . }}
{{- end }}

{{/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- include "mlfoundry-server.labels" . | nindent 8 }}
{{- include "mlfoundry-server.podLabels" . | nindent 8 }}
spec:
serviceAccountName: {{ include "mlfoundry-server.serviceAccountName" . }}
{{- with .Values.mlfoundryServer.podSecurityContext }}
Expand Down
21 changes: 14 additions & 7 deletions charts/truefoundry/templates/servicefoundry-server/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,25 @@ Expand the name of the chart.
{{- end }}

{{/*
Common labels
Pod Labels
*/}}
{{- define "servicefoundry-server.labels" -}}
helm.sh/chart: {{ include "servicefoundry-server.chart" . }}
{{- define "servicefoundry-server.podLabels" -}}
{{ include "servicefoundry-server.selectorLabels" . }}
{{- if .Values.servicefoundryServer.image.tag }}
app.kubernetes.io/version: {{ .Values.servicefoundryServer.image.tag | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- range $name, $value := .Values.servicefoundryServer.commonLabels }}
{{ $name }}: {{ tpl $value $ | quote }}
{{- end }}
{{ include "servicefoundry-server.selectorLabels" . }}
{{- if .Values.servicefoundryServer.imageTag }}
app.kubernetes.io/version: {{ .Values.servicefoundryServer.imageTag | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}

{{/*
Common labels
*/}}
{{- define "servicefoundry-server.labels" -}}
helm.sh/chart: {{ include "servicefoundry-server.chart" . }}
{{ include "servicefoundry-server.podLabels" . }}
{{- end }}

{{/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- include "servicefoundry-server.labels" . | nindent 8 }}
{{- include "servicefoundry-server.podLabels" . | nindent 8 }}
spec:
serviceAccountName: {{ include "servicefoundry-server.serviceAccountName" . }}
{{- with .Values.servicefoundryServer.podSecurityContext }}
Expand Down
21 changes: 14 additions & 7 deletions charts/truefoundry/templates/sfy-manifest-service/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,25 @@ Expand the name of the chart.
{{- end }}

{{/*
Common labels
Pod Labels
*/}}
{{- define "sfy-manifest-service.labels" -}}
helm.sh/chart: {{ include "sfy-manifest-service.chart" . }}
{{- define "sfy-manifest-service.podLabels" -}}
{{ include "sfy-manifest-service.selectorLabels" . }}
{{- if .Values.sfyManifestService.image.tag }}
app.kubernetes.io/version: {{ .Values.sfyManifestService.image.tag | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- range $name, $value := .Values.sfyManifestService.commonLabels }}
{{ $name }}: {{ tpl $value $ | quote }}
{{- end }}
{{ include "sfy-manifest-service.selectorLabels" . }}
{{- if .Values.sfyManifestService.imageTag }}
app.kubernetes.io/version: {{ .Values.sfyManifestService.imageTag | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}

{{/*
Common labels
*/}}
{{- define "sfy-manifest-service.labels" -}}
helm.sh/chart: {{ include "sfy-manifest-service.chart" . }}
{{ include "sfy-manifest-service.podLabels" . }}
{{- end }}

{{/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- include "sfy-manifest-service.labels" . | nindent 8 }}
{{- include "sfy-manifest-service.podLabels" . | nindent 8 }}
spec:
serviceAccountName: {{ include "sfy-manifest-service.serviceAccountName" . }}
{{- with .Values.sfyManifestService.podSecurityContext }}
Expand Down
21 changes: 14 additions & 7 deletions charts/truefoundry/templates/tfy-controller/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,25 @@ Expand the name of the chart.
{{- end }}

{{/*
Common labels
Pod Labels
*/}}
{{- define "tfy-controller.labels" -}}
helm.sh/chart: {{ include "tfy-controller.chart" . }}
{{- define "tfy-controller.podLabels" -}}
{{ include "tfy-controller.selectorLabels" . }}
{{- if .Values.tfyController.image.tag }}
app.kubernetes.io/version: {{ .Values.tfyController.image.tag | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- range $name, $value := .Values.tfyController.commonLabels }}
{{ $name }}: {{ tpl $value $ | quote }}
{{- end }}
{{ include "tfy-controller.selectorLabels" . }}
{{- if .Values.tfyController.imageTag }}
app.kubernetes.io/version: {{ .Values.tfyController.imageTag | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}

{{/*
Common labels
*/}}
{{- define "tfy-controller.labels" -}}
helm.sh/chart: {{ include "tfy-controller.chart" . }}
{{ include "tfy-controller.podLabels" . }}
{{- end }}

{{/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- include "tfy-controller.labels" . | nindent 8 }}
{{- include "tfy-controller.podLabels" . | nindent 8 }}
spec:
serviceAccountName: {{ include "tfy-controller.serviceAccountName" . }}
{{- with .Values.tfyController.podSecurityContext }}
Expand Down
21 changes: 14 additions & 7 deletions charts/truefoundry/templates/tfy-k8s-controller/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,25 @@ Expand the name of the chart.
{{- end }}

{{/*
Common labels
Pod Labels
*/}}
{{- define "tfy-k8s-controller.labels" -}}
helm.sh/chart: {{ include "tfy-k8s-controller.chart" . }}
{{- define "tfy-k8s-controller.podLabels" -}}
{{ include "tfy-k8s-controller.selectorLabels" . }}
{{- if .Values.tfyK8sController.image.tag }}
app.kubernetes.io/version: {{ .Values.tfyK8sController.image.tag | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- range $name, $value := .Values.tfyK8sController.commonLabels }}
{{ $name }}: {{ tpl $value $ | quote }}
{{- end }}
{{ include "tfy-k8s-controller.selectorLabels" . }}
{{- if .Values.tfyK8sController.imageTag }}
app.kubernetes.io/version: {{ .Values.tfyK8sController.imageTag | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}

{{/*
Common labels
*/}}
{{- define "tfy-k8s-controller.labels" -}}
helm.sh/chart: {{ include "tfy-k8s-controller.chart" . }}
{{ include "tfy-k8s-controller.podLabels" . }}
{{- end }}

{{/*
Expand Down
23 changes: 15 additions & 8 deletions charts/truefoundry/templates/tfy-workflow-admin/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,26 @@ Expand the name of the chart.
{{- end }}

{{/*
Common labels
Pod Labels
*/}}
{{- define "tfy-workflow-admin.labels" -}}
helm.sh/chart: {{ include "tfy-workflow-admin.chart" . }}
{{- range $name, $value := .Values.tfyWorkflowAdmin.commonLabels }}
{{ $name }}: {{ tpl $value $ | quote }}
{{- end }}
{{- define "tfy-workflow-admin.podLabels" -}}
{{ include "tfy-workflow-admin.selectorLabels" . }}
{{- if .Values.tfyWorkflowAdmin.imageTag }}
app.kubernetes.io/version: {{ .Values.tfyWorkflowAdmin.imageTag | quote }}
{{- if .Values.tfyWorkflowAdmin.image.tag }}
app.kubernetes.io/version: {{ .Values.tfyWorkflowAdmin.image.tag | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end }}
{{- range $name, $value := .Values.tfyWorkflowAdmin.commonLabels }}
{{ $name }}: {{ tpl $value $ | quote }}
{{- end }}

{{/*
Common labels
*/}}
{{- define "tfy-workflow-admin.labels" -}}
helm.sh/chart: {{ include "tfy-workflow-admin.chart" . }}
{{ include "tfy-workflow-admin.podLabels" . }}
{{- end }}

{{/*
Selector labels
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- include "tfy-workflow-admin.labels" . | nindent 8 }}
{{- include "tfy-workflow-admin.podLabels" . | nindent 8 }}
app.kubernetes.io/workflow-component: server
spec:
serviceAccountName: {{ include "tfy-workflow-admin.serviceAccountName" . }}
Expand Down
21 changes: 14 additions & 7 deletions charts/truefoundry/templates/truefoundry-frontend-app/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,25 @@ Expand the name of the chart.
{{- end }}

{{/*
Common labels
Pod Labels
*/}}
{{- define "truefoundry-frontend-app.labels" -}}
helm.sh/chart: {{ include "truefoundry-frontend-app.chart" . }}
{{- define "truefoundry-frontend-app.podLabels" -}}
{{ include "truefoundry-frontend-app.selectorLabels" . }}
{{- if .Values.truefoundryFrontendApp.image.tag }}
app.kubernetes.io/version: {{ .Values.truefoundryFrontendApp.image.tag | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- range $name, $value := .Values.truefoundryFrontendApp.commonLabels }}
{{ $name }}: {{ tpl $value $ | quote }}
{{- end }}
{{ include "truefoundry-frontend-app.selectorLabels" . }}
{{- if .Values.truefoundryFrontendApp.imageTag }}
app.kubernetes.io/version: {{ .Values.truefoundryFrontendApp.imageTag | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}

{{/*
Common labels
*/}}
{{- define "truefoundry-frontend-app.labels" -}}
helm.sh/chart: {{ include "truefoundry-frontend-app.chart" . }}
{{ include "truefoundry-frontend-app.podLabels" . }}
{{- end }}

{{/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- include "truefoundry-frontend-app.labels" . | nindent 8 }}
{{- include "truefoundry-frontend-app.podLabels" . | nindent 8 }}
spec:
serviceAccountName: {{ include "truefoundry-frontend-app.serviceAccountName" . }}
{{- with .Values.truefoundryFrontendApp.podSecurityContext }}
Expand Down
6 changes: 3 additions & 3 deletions charts/truefoundry/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ global:
## @param global.controlPlaneURL URL of the control plane
controlPlaneURL: "http://truefoundry-truefoundry-frontend-app.truefoundry.svc.cluster.local:5000"
## @param global.controlPlaneChartVersion Version of control-plane chart
controlPlaneChartVersion: 0.9.0
controlPlaneChartVersion: 0.9.1
# If you have an existing truefoundry-creds secret, provide the name here.
# This will ignore `.global.database` and `.global.tfyApiKey` values.
## @param global.existingTruefoundryCredsSecret Name of the existing truefoundry creds secret
Expand Down Expand Up @@ -384,7 +384,7 @@ servicefoundryServer:
## @param servicefoundryServer.image.repository Image repository for the servicefoundry server
repository: "tfy.jfrog.io/tfy-private-images/servicefoundry-server"
## @param servicefoundryServer.image.tag Image tag for the servicefoundry server
tag: "v0.9.0"
tag: "v0.9.1"
## @param servicefoundryServer.environmentName Environment name for the servicefoundry server
environmentName: default
## @param servicefoundryServer.envSecretName Secret name for the servicefoundry server environment variables
Expand Down Expand Up @@ -635,7 +635,7 @@ sfyManifestService:
## @param sfyManifestService.image.repository Image repository for the sfy manifest service
repository: "tfy.jfrog.io/tfy-private-images/sfy-manifest-service"
## @param sfyManifestService.image.tag Image tag for the sfy manifest service
tag: "v0.6.0-rc.1"
tag: "v0.6.0"
## @param sfyManifestService.replicaCount Number of replicas for the sfy manifest service
replicaCount: 1
## @param sfyManifestService.environmentName Environment name for the sfy manifest service
Expand Down

0 comments on commit f395960

Please sign in to comment.