Skip to content

Commit

Permalink
move under api and controllers
Browse files Browse the repository at this point in the history
  • Loading branch information
panevpla authored and danail-branekov committed May 30, 2024
1 parent 8ce15cc commit 24a5442
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 33 deletions.
6 changes: 4 additions & 2 deletions README.helm.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ Here are all the values that can be set for the chart:
- `lifecycle`: Default lifecycle for apps.
- `stack` (_String_): Stack.
- `type` (_String_): Lifecycle type (only `buildpack` accepted currently).
- `nodeSelector`: Node labels for korifi-api pod assignment.
- `replicas` (_Integer_): Number of replicas.
- `resources`: [`ResourceRequirements`](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.25/#resourcerequirements-v1-core) for the API.
- `limits`: Resource limits.
Expand All @@ -44,6 +45,7 @@ Here are all the values that can be set for the chart:
- `requests`: Resource requests.
- `cpu` (_String_): CPU request.
- `memory` (_String_): Memory request.
- `tolerations` (_Array_): Korifi-api pod tolerations for taints.
- `userCertificateExpirationWarningDuration` (_String_): Issue a warning if the user certificate provided for login has a long expiry. See [`time.ParseDuration`](https://pkg.go.dev/time#ParseDuration) for details on the format.
- `containerRegistrySecret` (_String_): Deprecated in favor of containerRegistrySecrets.
- `containerRegistrySecrets` (_Array_): List of `Secret` names to use when pushing or pulling from package, droplet and kpack builder repositories. Required if eksContainerRegistryRoleARN not set. Ignored if eksContainerRegistryRoleARN is set.
Expand All @@ -54,6 +56,7 @@ Here are all the values that can be set for the chart:
- `maxRetainedBuildsPerApp` (_Integer_): How many staged builds to keep, excluding the app's current droplet. Older staged builds will be deleted, along with their corresponding container images.
- `maxRetainedPackagesPerApp` (_Integer_): How many 'ready' packages to keep, excluding the package associated with the app's current droplet. Older 'ready' packages will be deleted, along with their corresponding container images.
- `namespaceLabels`: Key-value pairs that are going to be set as labels on the namespaces created by Korifi.
- `nodeSelector`: Node labels for korifi-controllers pod assignment.
- `processDefaults`:
- `diskQuotaMB` (_Integer_): Default disk quota for the `web` process.
- `memoryMB` (_Integer_): Default memory limit for the `web` process.
Expand All @@ -66,6 +69,7 @@ Here are all the values that can be set for the chart:
- `cpu` (_String_): CPU request.
- `memory` (_String_): Memory request.
- `taskTTL` (_String_): How long before the `CFTask` object is deleted after the task has completed. See [`time.ParseDuration`](https://pkg.go.dev/time#ParseDuration) for details on the format, an additional `d` suffix for days is supported.
- `tolerations` (_Array_): Korifi-controllers pod tolerations for taints.
- `workloadsTLSSecret` (_String_): TLS secret used when setting up an app routes.
- `debug` (_Boolean_): Enables remote debugging with [Delve](https://github.com/go-delve/delve).
- `defaultAppDomainName` (_String_): Base domain name for application URLs.
Expand Down Expand Up @@ -104,7 +108,6 @@ Here are all the values that can be set for the chart:
- `logLevel` (_String_): Sets level of logging for api and controllers components. Can be 'info' or 'debug'.
- `networking`: Networking configuration
- `gatewayClass` (_String_): The name of the GatewayClass Korifi Gateway references
- `nodeSelector`: Node labels for korifi-api and korifi-controllers pod assignment.
- `reconcilers`:
- `app` (_String_): ID of the workload runner to set on all `AppWorkload` objects. Defaults to `statefulset-runner`.
- `build` (_String_): ID of the image builder to set on all `BuildWorkload` objects. Defaults to `kpack-image-builder`.
Expand All @@ -125,4 +128,3 @@ Here are all the values that can be set for the chart:
- `memory` (_String_): Memory request.
- `temporarySetPodSeccompProfile` (_Boolean_): Sets the pod .spec.securityContext.seccompProfile to RuntimeDefault. Setting this flag to true will cause a restart of all previously running pods.
- `systemImagePullSecrets` (_Array_): List of `Secret` names to be used when pulling Korifi system images from private registries
- `tolerations` (_Array_): Pod tolerations for taints.
8 changes: 4 additions & 4 deletions helm/korifi/api/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ spec:
{{- end }}
{{- include "korifi.podSecurityContext" . | indent 6 }}
serviceAccountName: korifi-api-system-serviceaccount
{{- if .Values.nodeSelector }}
{{- if .Values.api.nodeSelector }}
nodeSelector:
{{ toYaml .Values.nodeSelector | indent 8 }}
{{ toYaml .Values.api.nodeSelector | indent 8 }}
{{- end }}
{{- if .Values.tolerations }}
{{- if .Values.api.tolerations }}
tolerations:
{{- toYaml .Values.tolerations | nindent 8 }}
{{- toYaml .Values.api.tolerations | nindent 8 }}
{{- end }}
volumes:
- configMap:
Expand Down
8 changes: 4 additions & 4 deletions helm/korifi/controllers/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,13 @@ spec:
readOnly: true
{{- include "korifi.podSecurityContext" . | indent 6 }}
serviceAccountName: korifi-controllers-controller-manager
{{- if .Values.nodeSelector }}
{{- if .Values.controllers.nodeSelector }}
nodeSelector:
{{ toYaml .Values.nodeSelector | indent 8 }}
{{ toYaml .Values.controllers.nodeSelector | indent 8 }}
{{- end }}
{{- if .Values.tolerations }}
{{- if .Values.controllers.tolerations }}
tolerations:
{{- toYaml .Values.tolerations | nindent 8 }}
{{- toYaml .Values.controllers.tolerations | nindent 8 }}
{{- end }}
terminationGracePeriodSeconds: 10
volumes:
Expand Down
57 changes: 38 additions & 19 deletions helm/korifi/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,31 +86,31 @@
},
"required": ["memoryMB", "diskMB", "buildCacheMB"]
},
"nodeSelector": {
"description": "Node labels for korifi-api and korifi-controllers pod assignment.",
"type": "object",
"properties": {}
},
"tolerations": {
"type": "array",
"items": {
"type": "object",
"properties": {
"key": { "type": "string" },
"operator": { "type": "string" },
"value": { "type": "string" },
"effect": { "type": "string" }
},
"required": ["key", "operator", "effect"]
},
"description": "Pod tolerations for taints."
},
"api": {
"properties": {
"include": {
"description": "Deploy the API component.",
"type": "boolean"
},
"nodeSelector": {
"description": "Node labels for korifi-api pod assignment.",
"type": "object",
"properties": {}
},
"tolerations": {
"type": "array",
"items": {
"type": "object",
"properties": {
"key": { "type": "string" },
"operator": { "type": "string" },
"value": { "type": "string" },
"effect": { "type": "string" }
},
"required": ["key", "operator", "effect"]
},
"description": "Korifi-api pod tolerations for taints."
},
"replicas": {
"description": "Number of replicas.",
"type": "integer"
Expand Down Expand Up @@ -276,6 +276,25 @@
"description": "Number of replicas.",
"type": "integer"
},
"nodeSelector": {
"description": "Node labels for korifi-controllers pod assignment.",
"type": "object",
"properties": {}
},
"tolerations": {
"type": "array",
"items": {
"type": "object",
"properties": {
"key": { "type": "string" },
"operator": { "type": "string" },
"value": { "type": "string" },
"effect": { "type": "string" }
},
"required": ["key", "operator", "effect"]
},
"description": "Korifi-controllers pod tolerations for taints."
},
"resources": {
"description": "[`ResourceRequirements`](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.25/#resourcerequirements-v1-core) for the API.",
"type": "object",
Expand Down
10 changes: 6 additions & 4 deletions helm/korifi/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ containerRegistrySecrets:
eksContainerRegistryRoleARN: ""
containerRegistryCACertSecret:
systemImagePullSecrets: []
tolerations: []
nodeSelector: {}

reconcilers:
build: kpack-image-builder
Expand All @@ -25,7 +23,9 @@ api:
include: true

image: cloudfoundry/korifi-api:latest


nodeSelector: {}
tolerations: []
replicas: 1
resources:
requests:
Expand Down Expand Up @@ -66,7 +66,9 @@ api:

controllers:
image: cloudfoundry/korifi-controllers:latest


nodeSelector: {}
tolerations: []
replicas: 1
resources:
limits:
Expand Down

0 comments on commit 24a5442

Please sign in to comment.