Skip to content

Commit

Permalink
[CI] Publish truefoundry to version (#758)
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 1, 2024
1 parent 1fb19c0 commit 494406e
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 11 deletions.
6 changes: 3 additions & 3 deletions charts/truefoundry/Chart.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
dependencies:
- name: tfy-configs
repository: https://truefoundry.github.io/infra-charts
version: 0.1.4
version: 0.1.5
- name: nats
repository: https://nats-io.github.io/k8s/helm/charts/
version: 0.19.1
Expand All @@ -11,5 +11,5 @@ dependencies:
- name: tfy-buildkitd-service
repository: https://truefoundry.github.io/infra-charts/
version: 0.2.0
digest: sha256:3a0f891df728b8b9b2d3294b8590e96d3052358a058bc7ccabd2f948232e1484
generated: "2024-10-25T11:17:43.076265+05:30"
digest: sha256:568b049593765e6583cb046e218904cd5e04371283739d280da511dc2f4b6dd3
generated: "2024-11-01T14:15:58.388967+05:30"
4 changes: 2 additions & 2 deletions charts/truefoundry/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
apiVersion: v2
name: truefoundry
version: 0.8.4
version: 0.8.5
description: "TrueFoundry Control Plane Components"
maintainers:
- name: truefoundry
dependencies:
- condition: servicefoundryServer.enabled
name: tfy-configs
repository: https://truefoundry.github.io/infra-charts
version: 0.1.4
version: 0.1.5
- condition: nats.enabled
name: nats
repository: https://nats-io.github.io/k8s/helm/charts/
Expand Down
8 changes: 5 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.8.4` |
| `global.controlPlaneChartVersion` | Version of control-plane chart | `0.8.5` |
| `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.8.2` |
| `servicefoundryServer.image.tag` | Image tag for the servicefoundry server | `v0.8.4` |
| `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 @@ -160,7 +160,9 @@ truefoundry is an applications that gets deployed on the kubernetes cluster to s
| `servicefoundryServer.imagePullSecrets` | Image pull credentials for servicefoundry server | `[]` |
| `servicefoundryServer.rbac.enabled` | Enable RBAC for the servicefoundry server | `true` |
| `servicefoundryServer.configs.cicdTemplates` | CICD Template for servicefoundry server | `{{ .Release.Name }}-cicd-templates-cm` |
| `servicefoundryServer.configs.workbenchImages` | Workbench Images for servicefoundry server | `{{ .Release.Name }}-workbench-images-cm` |
| `servicefoundryServer.configs.workbenchImages` | Workbench Images for workbench deployments | `{{ .Release.Name }}-workbench-images-cm` |
| `servicefoundryServer.configs.imageMutationPolicy` | Image Mutations policy for workloads | `{{ .Release.Name }}-image-mutation-policy-cm` |
| `servicefoundryServer.configs.k8sManifestValidationPolicy` | K8s Manifest Validation policy for workloads | `{{ .Release.Name }}-k8s-manifest-validation-policy-cm` |

### tfyK8sController Truefoundry tfy k8s controller values

Expand Down
20 changes: 20 additions & 0 deletions charts/truefoundry/templates/servicefoundry-server/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,14 @@ GLOBAL_BUILDERS_BUILDKIT_URLS: {{ $urls | trimPrefix "," }}
- name: WORKBENCH_IMAGES_CONFIG_PATH
value: /opt/truefoundry/configs/workbench-images/workbench-images.yaml
{{- end }}
{{- if (tpl .Values.servicefoundryServer.configs.imageMutationPolicy .) }}
- name: IMAGE_MUTATION_POLICY_CONFIG_PATH
value: /opt/truefoundry/configs/image-mutation-policy/image-mutation-policy.yaml
{{- end }}
{{- if (tpl .Values.servicefoundryServer.configs.k8sManifestValidationPolicy .) }}
- name: K8S_MANIFEST_VALIDATION_POLICY_CONFIG_PATH
value: /opt/truefoundry/configs/k8s-manifest-validation-policy/k8s-manifest-validation-policy.yaml
{{- end }}
{{- end }}

{{- define "servicefoundry-server.volumes" -}}
Expand All @@ -159,6 +167,12 @@ GLOBAL_BUILDERS_BUILDKIT_URLS: {{ $urls | trimPrefix "," }}
{{- if (tpl .Values.servicefoundryServer.configs.workbenchImages .) }}
{{- $volumes = append $volumes (dict "name" "configs-workbench-images" "configMap" (dict "name" (tpl .Values.servicefoundryServer.configs.workbenchImages .))) }}
{{- end }}
{{- if (tpl .Values.servicefoundryServer.configs.imageMutationPolicy .) }}
{{- $volumes = append $volumes (dict "name" "configs-image-mutation-policy" "configMap" (dict "name" (tpl .Values.servicefoundryServer.configs.imageMutationPolicy .))) }}
{{- end }}
{{- if (tpl .Values.servicefoundryServer.configs.k8sManifestValidationPolicy .) }}
{{- $volumes = append $volumes (dict "name" "configs-k8s-manifest-validation-policy" "configMap" (dict "name" (tpl .Values.servicefoundryServer.configs.k8sManifestValidationPolicy .))) }}
{{- end }}

{{- $volumes | toYaml -}}
{{- end -}}
Expand All @@ -177,6 +191,12 @@ GLOBAL_BUILDERS_BUILDKIT_URLS: {{ $urls | trimPrefix "," }}
{{- if (tpl .Values.servicefoundryServer.configs.workbenchImages .) }}
{{- $volumeMounts = append $volumeMounts (dict "name" "configs-workbench-images" "mountPath" "/opt/truefoundry/configs/workbench-images") }}
{{- end }}
{{- if (tpl .Values.servicefoundryServer.configs.imageMutationPolicy .) }}
{{- $volumeMounts = append $volumeMounts (dict "name" "configs-image-mutation-policy" "mountPath" "/opt/truefoundry/configs/image-mutation-policy") }}
{{- end }}
{{- if (tpl .Values.servicefoundryServer.configs.k8sManifestValidationPolicy .) }}
{{- $volumeMounts = append $volumeMounts (dict "name" "configs-k8s-manifest-validation-policy" "mountPath" "/opt/truefoundry/configs/k8s-manifest-validation-policy") }}
{{- end }}
{{- $volumeMounts | toYaml -}}
{{- end -}}

Expand Down
10 changes: 7 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.8.4
controlPlaneChartVersion: 0.8.5
# 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 @@ -382,7 +382,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.8.2"
tag: "v0.8.4"
## @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 @@ -517,8 +517,12 @@ servicefoundryServer:
configs:
## @param servicefoundryServer.configs.cicdTemplates CICD Template for servicefoundry server
cicdTemplates: '{{ .Release.Name }}-cicd-templates-cm'
## @param servicefoundryServer.configs.workbenchImages Workbench Images for servicefoundry server
## @param servicefoundryServer.configs.workbenchImages Workbench Images for workbench deployments
workbenchImages: '{{ .Release.Name }}-workbench-images-cm'
## @param servicefoundryServer.configs.imageMutationPolicy Image Mutations policy for workloads
imageMutationPolicy: '{{ .Release.Name }}-image-mutation-policy-cm'
## @param servicefoundryServer.configs.k8sManifestValidationPolicy K8s Manifest Validation policy for workloads
k8sManifestValidationPolicy: '{{ .Release.Name }}-k8s-manifest-validation-policy-cm'
###################################################################################################################
####################################### Tfy K8s Controller #######################################################
###################################################################################################################
Expand Down

0 comments on commit 494406e

Please sign in to comment.