From 1e0261bcc57feab43d9d584a459c59337a893558 Mon Sep 17 00:00:00 2001 From: Mitanshu Dodia Date: Wed, 27 Nov 2024 10:30:45 +0530 Subject: [PATCH 1/8] Added enabled field for storage in tfy buildkit service helm chart --- charts/tfy-buildkitd-service/templates/statefulset.yaml | 4 ++++ charts/tfy-buildkitd-service/values.yaml | 2 ++ 2 files changed, 6 insertions(+) diff --git a/charts/tfy-buildkitd-service/templates/statefulset.yaml b/charts/tfy-buildkitd-service/templates/statefulset.yaml index ca281616..fe14e46e 100644 --- a/charts/tfy-buildkitd-service/templates/statefulset.yaml +++ b/charts/tfy-buildkitd-service/templates/statefulset.yaml @@ -100,8 +100,10 @@ spec: {{- toYaml .Values.resources | nindent 12 }} volumeMounts: + {{- if .Values.storage.enabled }} - name: buildkit-storage mountPath: /var/lib/buildkit + {{- end }} - name: buildkit-config mountPath: /etc/buildkit/buildkitd.toml subPath: buildkitd.toml @@ -141,6 +143,7 @@ spec: tolerations: {{- toYaml . | nindent 8 }} {{- end }} + {{- if .Values.storage.enabled }} volumeClaimTemplates: - metadata: name: buildkit-storage @@ -153,3 +156,4 @@ spec: requests: storage: {{ .Values.storage.size }} storageClassName: {{ .Values.storage.storageClassName }} + {{- end }} diff --git a/charts/tfy-buildkitd-service/values.yaml b/charts/tfy-buildkitd-service/values.yaml index e6a3cc11..ad4892bf 100644 --- a/charts/tfy-buildkitd-service/values.yaml +++ b/charts/tfy-buildkitd-service/values.yaml @@ -42,6 +42,8 @@ buildkitConfig: | ## Storage configuration for tfyBuildkitdService ## storage: + ## @param storage.enabled Bool to enable storage for tfyBuildkitdService + enabled: false ## @param storage.accessModes Access mode for tfyBuildkitdService accessModes: - ReadWriteOnce From 212801617ba5ee807527da580083b7ea5eceef58 Mon Sep 17 00:00:00 2001 From: mitanshudodia Date: Wed, 27 Nov 2024 05:02:17 +0000 Subject: [PATCH 2/8] Update README.md with readme-generator-for-helm Signed-off-by: mitanshudodia --- charts/tfy-buildkitd-service/README.md | 39 +++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/charts/tfy-buildkitd-service/README.md b/charts/tfy-buildkitd-service/README.md index 02c722c5..58095aa2 100644 --- a/charts/tfy-buildkitd-service/README.md +++ b/charts/tfy-buildkitd-service/README.md @@ -3,7 +3,44 @@ Tfy-buildkitd-service is a Helm chart provided by TrueFoundry that facilitates t ## Parameters -###### Parameters for tfyBuildkitdService +####### Parameters for tfyBuildkitdService + +| Name | Description | Value | +| -------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | --------------------------- | +| `replicaCount` | Number of replicas of Value kept for future use, kept 1 | `1` | +| `image.repository` | tfyBuildkitdService repository | `moby/buildkit` | +| `image.pullPolicy` | Pull policy for tfyBuildkitdService | `IfNotPresent` | +| `image.tag` | Image tag whose default is the chart appVersion. | `v0.16.0` | +| `storage.enabled` | Bool to enable storage for tfyBuildkitdService | `false` | +| `storage.accessModes` | Access mode for tfyBuildkitdService | `["ReadWriteOnce"]` | +| `storage.storageClassName` | Storage class name for tfyBuildkitdService | `""` | +| `storage.size` | Size of the storage for tfyBuildkitdService | `200Gi` | +| `imagePullSecrets` | Secrets to pull images | `[]` | +| `nameOverride` | String to override partial name passed in helm install command | `""` | +| `fullnameOverride` | String to override full name passed in helm install command | `""` | +| `serviceAccount.create` | Bool to enable serviceAccount creation | `true` | +| `serviceAccount.annotations` | Annotations to add to the serviceAccount | `{}` | +| `serviceAccount.name` | Name of the serviceAccount to use. If not set and create is true, a name is generated using the fullname template | `""` | +| `podAnnotations` | Annotations to be added to the pod | `{}` | +| `podSecurityContext` | Security context for the pod | `{}` | +| `securityContext.privileged` | Security Context for the tfyBuildkitdServiceProxy container | `true` | +| `service.type` | Type for tfyBuildkitdService Service | `ClusterIP` | +| `service.port` | Port for tfyBuildkitdService service | `1234` | +| `resources.limits.cpu` | CPU resource limits for tfyBuildkitdService container. | `2500m` | +| `resources.limits.memory` | Memory Resource limits for tfyBuildkitdService container. | `8Gi` | +| `resources.limits.ephemeral-storage` | Ephemeral Storage limits for tfyBuildkitdService container. | `100Mi` | +| `resources.requests.cpu` | CPU resource requests for tfyBuildkitdService container. | `2500m` | +| `resources.requests.memory` | Memory Resource requests for tfyBuildkitdService container. | `8Gi` | +| `resources.requests.ephemeral-storage` | Ephemeral Storage requests for tfyBuildkitdService container. | `100Mi` | +| `extraVolumes` | List of Volumes to attach to tfyBuildkitdService container | `[]` | +| `extraVolumeMounts` | List of Volume Mounts to attach to tfyBuildkitdService container | `[]` | +| `extraEnvs` | List of Environment Variables to attach to tfyBuildkitdService container | `[]` | +| `nodeSelector` | Parameters to select for scheduling of pod on a node | `{}` | +| `tolerations` | Taints that pod can tolerate | `[]` | +| `affinity` | Affinity rules for pod scheduling on a node | `{}` | +| `tls.buildkitDaemonCertsSecretName` | Name of secret containing the buildkit daemon certs | `tfy-buildkit-daemon-certs` | +| `tls.buildkitClientCertsSecretName` | Name of secret containing the buildkit client certs | `tfy-buildkit-client-certs` | +| `tls.enabled` | Enable TLS for buildkitd | `false` | | Name | Description | Value | | -------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | --------------------------- | From 2f6755e286b88b410ce999c2ce24431882db5e83 Mon Sep 17 00:00:00 2001 From: Mitanshu Dodia Date: Wed, 27 Nov 2024 10:32:36 +0530 Subject: [PATCH 3/8] changed default value for storage enabled to true --- charts/tfy-buildkitd-service/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/tfy-buildkitd-service/values.yaml b/charts/tfy-buildkitd-service/values.yaml index ad4892bf..ebff79f6 100644 --- a/charts/tfy-buildkitd-service/values.yaml +++ b/charts/tfy-buildkitd-service/values.yaml @@ -43,7 +43,7 @@ buildkitConfig: | ## storage: ## @param storage.enabled Bool to enable storage for tfyBuildkitdService - enabled: false + enabled: true ## @param storage.accessModes Access mode for tfyBuildkitdService accessModes: - ReadWriteOnce From 626f396db619b67181d412952d571319574b6784 Mon Sep 17 00:00:00 2001 From: mitanshudodia Date: Wed, 27 Nov 2024 05:03:06 +0000 Subject: [PATCH 4/8] Update README.md with readme-generator-for-helm Signed-off-by: mitanshudodia --- charts/tfy-buildkitd-service/README.md | 39 +++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/charts/tfy-buildkitd-service/README.md b/charts/tfy-buildkitd-service/README.md index 58095aa2..79e8f691 100644 --- a/charts/tfy-buildkitd-service/README.md +++ b/charts/tfy-buildkitd-service/README.md @@ -3,7 +3,44 @@ Tfy-buildkitd-service is a Helm chart provided by TrueFoundry that facilitates t ## Parameters -####### Parameters for tfyBuildkitdService +######## Parameters for tfyBuildkitdService + +| Name | Description | Value | +| -------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | --------------------------- | +| `replicaCount` | Number of replicas of Value kept for future use, kept 1 | `1` | +| `image.repository` | tfyBuildkitdService repository | `moby/buildkit` | +| `image.pullPolicy` | Pull policy for tfyBuildkitdService | `IfNotPresent` | +| `image.tag` | Image tag whose default is the chart appVersion. | `v0.16.0` | +| `storage.enabled` | Bool to enable storage for tfyBuildkitdService | `true` | +| `storage.accessModes` | Access mode for tfyBuildkitdService | `["ReadWriteOnce"]` | +| `storage.storageClassName` | Storage class name for tfyBuildkitdService | `""` | +| `storage.size` | Size of the storage for tfyBuildkitdService | `200Gi` | +| `imagePullSecrets` | Secrets to pull images | `[]` | +| `nameOverride` | String to override partial name passed in helm install command | `""` | +| `fullnameOverride` | String to override full name passed in helm install command | `""` | +| `serviceAccount.create` | Bool to enable serviceAccount creation | `true` | +| `serviceAccount.annotations` | Annotations to add to the serviceAccount | `{}` | +| `serviceAccount.name` | Name of the serviceAccount to use. If not set and create is true, a name is generated using the fullname template | `""` | +| `podAnnotations` | Annotations to be added to the pod | `{}` | +| `podSecurityContext` | Security context for the pod | `{}` | +| `securityContext.privileged` | Security Context for the tfyBuildkitdServiceProxy container | `true` | +| `service.type` | Type for tfyBuildkitdService Service | `ClusterIP` | +| `service.port` | Port for tfyBuildkitdService service | `1234` | +| `resources.limits.cpu` | CPU resource limits for tfyBuildkitdService container. | `2500m` | +| `resources.limits.memory` | Memory Resource limits for tfyBuildkitdService container. | `8Gi` | +| `resources.limits.ephemeral-storage` | Ephemeral Storage limits for tfyBuildkitdService container. | `100Mi` | +| `resources.requests.cpu` | CPU resource requests for tfyBuildkitdService container. | `2500m` | +| `resources.requests.memory` | Memory Resource requests for tfyBuildkitdService container. | `8Gi` | +| `resources.requests.ephemeral-storage` | Ephemeral Storage requests for tfyBuildkitdService container. | `100Mi` | +| `extraVolumes` | List of Volumes to attach to tfyBuildkitdService container | `[]` | +| `extraVolumeMounts` | List of Volume Mounts to attach to tfyBuildkitdService container | `[]` | +| `extraEnvs` | List of Environment Variables to attach to tfyBuildkitdService container | `[]` | +| `nodeSelector` | Parameters to select for scheduling of pod on a node | `{}` | +| `tolerations` | Taints that pod can tolerate | `[]` | +| `affinity` | Affinity rules for pod scheduling on a node | `{}` | +| `tls.buildkitDaemonCertsSecretName` | Name of secret containing the buildkit daemon certs | `tfy-buildkit-daemon-certs` | +| `tls.buildkitClientCertsSecretName` | Name of secret containing the buildkit client certs | `tfy-buildkit-client-certs` | +| `tls.enabled` | Enable TLS for buildkitd | `false` | | Name | Description | Value | | -------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | --------------------------- | From a73696129d82ebb76998f0c90fa98d9d9c2aa9a2 Mon Sep 17 00:00:00 2001 From: Mitanshu Dodia Date: Wed, 27 Nov 2024 10:52:48 +0530 Subject: [PATCH 5/8] updated version --- charts/tfy-buildkitd-service/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/tfy-buildkitd-service/Chart.yaml b/charts/tfy-buildkitd-service/Chart.yaml index b06c0ef3..5ac61a24 100644 --- a/charts/tfy-buildkitd-service/Chart.yaml +++ b/charts/tfy-buildkitd-service/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: tfy-buildkitd-service description: Buildkitd service chart type: application -version: 0.2.1 +version: 0.2.2 appVersion: "0.16.0" maintainers: - name: truefoundry From 022ed87bc80869a5ea0896ec962328bec401b439 Mon Sep 17 00:00:00 2001 From: mitanshudodia Date: Wed, 27 Nov 2024 05:23:13 +0000 Subject: [PATCH 6/8] Update README.md with readme-generator-for-helm Signed-off-by: mitanshudodia --- charts/tfy-buildkitd-service/README.md | 39 +++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/charts/tfy-buildkitd-service/README.md b/charts/tfy-buildkitd-service/README.md index 79e8f691..8a57a5aa 100644 --- a/charts/tfy-buildkitd-service/README.md +++ b/charts/tfy-buildkitd-service/README.md @@ -3,7 +3,44 @@ Tfy-buildkitd-service is a Helm chart provided by TrueFoundry that facilitates t ## Parameters -######## Parameters for tfyBuildkitdService +######### Parameters for tfyBuildkitdService + +| Name | Description | Value | +| -------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | --------------------------- | +| `replicaCount` | Number of replicas of Value kept for future use, kept 1 | `1` | +| `image.repository` | tfyBuildkitdService repository | `moby/buildkit` | +| `image.pullPolicy` | Pull policy for tfyBuildkitdService | `IfNotPresent` | +| `image.tag` | Image tag whose default is the chart appVersion. | `v0.16.0` | +| `storage.enabled` | Bool to enable storage for tfyBuildkitdService | `true` | +| `storage.accessModes` | Access mode for tfyBuildkitdService | `["ReadWriteOnce"]` | +| `storage.storageClassName` | Storage class name for tfyBuildkitdService | `""` | +| `storage.size` | Size of the storage for tfyBuildkitdService | `200Gi` | +| `imagePullSecrets` | Secrets to pull images | `[]` | +| `nameOverride` | String to override partial name passed in helm install command | `""` | +| `fullnameOverride` | String to override full name passed in helm install command | `""` | +| `serviceAccount.create` | Bool to enable serviceAccount creation | `true` | +| `serviceAccount.annotations` | Annotations to add to the serviceAccount | `{}` | +| `serviceAccount.name` | Name of the serviceAccount to use. If not set and create is true, a name is generated using the fullname template | `""` | +| `podAnnotations` | Annotations to be added to the pod | `{}` | +| `podSecurityContext` | Security context for the pod | `{}` | +| `securityContext.privileged` | Security Context for the tfyBuildkitdServiceProxy container | `true` | +| `service.type` | Type for tfyBuildkitdService Service | `ClusterIP` | +| `service.port` | Port for tfyBuildkitdService service | `1234` | +| `resources.limits.cpu` | CPU resource limits for tfyBuildkitdService container. | `2500m` | +| `resources.limits.memory` | Memory Resource limits for tfyBuildkitdService container. | `8Gi` | +| `resources.limits.ephemeral-storage` | Ephemeral Storage limits for tfyBuildkitdService container. | `100Mi` | +| `resources.requests.cpu` | CPU resource requests for tfyBuildkitdService container. | `2500m` | +| `resources.requests.memory` | Memory Resource requests for tfyBuildkitdService container. | `8Gi` | +| `resources.requests.ephemeral-storage` | Ephemeral Storage requests for tfyBuildkitdService container. | `100Mi` | +| `extraVolumes` | List of Volumes to attach to tfyBuildkitdService container | `[]` | +| `extraVolumeMounts` | List of Volume Mounts to attach to tfyBuildkitdService container | `[]` | +| `extraEnvs` | List of Environment Variables to attach to tfyBuildkitdService container | `[]` | +| `nodeSelector` | Parameters to select for scheduling of pod on a node | `{}` | +| `tolerations` | Taints that pod can tolerate | `[]` | +| `affinity` | Affinity rules for pod scheduling on a node | `{}` | +| `tls.buildkitDaemonCertsSecretName` | Name of secret containing the buildkit daemon certs | `tfy-buildkit-daemon-certs` | +| `tls.buildkitClientCertsSecretName` | Name of secret containing the buildkit client certs | `tfy-buildkit-client-certs` | +| `tls.enabled` | Enable TLS for buildkitd | `false` | | Name | Description | Value | | -------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | --------------------------- | From 21a0fec951f4cc6030473f707dbef9ab1baa7db0 Mon Sep 17 00:00:00 2001 From: Mitanshu Dodia Date: Wed, 27 Nov 2024 10:54:21 +0530 Subject: [PATCH 7/8] updated version to rc release --- charts/tfy-buildkitd-service/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/tfy-buildkitd-service/Chart.yaml b/charts/tfy-buildkitd-service/Chart.yaml index 5ac61a24..424dcf48 100644 --- a/charts/tfy-buildkitd-service/Chart.yaml +++ b/charts/tfy-buildkitd-service/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: tfy-buildkitd-service description: Buildkitd service chart type: application -version: 0.2.2 +version: 0.2.2-rc.1 appVersion: "0.16.0" maintainers: - name: truefoundry From 9a6e45d4d2ad840b6751f2a5a1dc4aa3a550af50 Mon Sep 17 00:00:00 2001 From: mitanshudodia Date: Wed, 27 Nov 2024 05:24:53 +0000 Subject: [PATCH 8/8] Update README.md with readme-generator-for-helm Signed-off-by: mitanshudodia --- charts/tfy-buildkitd-service/README.md | 39 +++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/charts/tfy-buildkitd-service/README.md b/charts/tfy-buildkitd-service/README.md index 8a57a5aa..354549e8 100644 --- a/charts/tfy-buildkitd-service/README.md +++ b/charts/tfy-buildkitd-service/README.md @@ -3,7 +3,44 @@ Tfy-buildkitd-service is a Helm chart provided by TrueFoundry that facilitates t ## Parameters -######### Parameters for tfyBuildkitdService +########## Parameters for tfyBuildkitdService + +| Name | Description | Value | +| -------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | --------------------------- | +| `replicaCount` | Number of replicas of Value kept for future use, kept 1 | `1` | +| `image.repository` | tfyBuildkitdService repository | `moby/buildkit` | +| `image.pullPolicy` | Pull policy for tfyBuildkitdService | `IfNotPresent` | +| `image.tag` | Image tag whose default is the chart appVersion. | `v0.16.0` | +| `storage.enabled` | Bool to enable storage for tfyBuildkitdService | `true` | +| `storage.accessModes` | Access mode for tfyBuildkitdService | `["ReadWriteOnce"]` | +| `storage.storageClassName` | Storage class name for tfyBuildkitdService | `""` | +| `storage.size` | Size of the storage for tfyBuildkitdService | `200Gi` | +| `imagePullSecrets` | Secrets to pull images | `[]` | +| `nameOverride` | String to override partial name passed in helm install command | `""` | +| `fullnameOverride` | String to override full name passed in helm install command | `""` | +| `serviceAccount.create` | Bool to enable serviceAccount creation | `true` | +| `serviceAccount.annotations` | Annotations to add to the serviceAccount | `{}` | +| `serviceAccount.name` | Name of the serviceAccount to use. If not set and create is true, a name is generated using the fullname template | `""` | +| `podAnnotations` | Annotations to be added to the pod | `{}` | +| `podSecurityContext` | Security context for the pod | `{}` | +| `securityContext.privileged` | Security Context for the tfyBuildkitdServiceProxy container | `true` | +| `service.type` | Type for tfyBuildkitdService Service | `ClusterIP` | +| `service.port` | Port for tfyBuildkitdService service | `1234` | +| `resources.limits.cpu` | CPU resource limits for tfyBuildkitdService container. | `2500m` | +| `resources.limits.memory` | Memory Resource limits for tfyBuildkitdService container. | `8Gi` | +| `resources.limits.ephemeral-storage` | Ephemeral Storage limits for tfyBuildkitdService container. | `100Mi` | +| `resources.requests.cpu` | CPU resource requests for tfyBuildkitdService container. | `2500m` | +| `resources.requests.memory` | Memory Resource requests for tfyBuildkitdService container. | `8Gi` | +| `resources.requests.ephemeral-storage` | Ephemeral Storage requests for tfyBuildkitdService container. | `100Mi` | +| `extraVolumes` | List of Volumes to attach to tfyBuildkitdService container | `[]` | +| `extraVolumeMounts` | List of Volume Mounts to attach to tfyBuildkitdService container | `[]` | +| `extraEnvs` | List of Environment Variables to attach to tfyBuildkitdService container | `[]` | +| `nodeSelector` | Parameters to select for scheduling of pod on a node | `{}` | +| `tolerations` | Taints that pod can tolerate | `[]` | +| `affinity` | Affinity rules for pod scheduling on a node | `{}` | +| `tls.buildkitDaemonCertsSecretName` | Name of secret containing the buildkit daemon certs | `tfy-buildkit-daemon-certs` | +| `tls.buildkitClientCertsSecretName` | Name of secret containing the buildkit client certs | `tfy-buildkit-client-certs` | +| `tls.enabled` | Enable TLS for buildkitd | `false` | | Name | Description | Value | | -------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | --------------------------- |