Skip to content

Commit

Permalink
chore(teuto-portal-k8s-worker): use teutonet common chart (#855)
Browse files Browse the repository at this point in the history
  • Loading branch information
cwrau authored Apr 12, 2024
1 parent a35b63c commit b7a73c5
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 13 deletions.
8 changes: 4 additions & 4 deletions charts/teuto-portal-k8s-worker/Chart.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dependencies:
- name: common
repository: https://charts.bitnami.com/bitnami
version: 2.19.1
digest: sha256:4f539b1fbde383dd5bc020d77d70655108ed4c188b7329c1639df3f1e65de2e0
generated: "2024-03-27T15:42:53.974530507Z"
repository: oci://ghcr.io/teutonet/teutonet-helm-charts
version: 1.0.0
digest: sha256:acfa022eb3ff1b32622813ee173a127c23c729abb6fe8235795b668bb496ed2e
generated: "2024-04-12T13:36:04.851156918+02:00"
4 changes: 2 additions & 2 deletions charts/teuto-portal-k8s-worker/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ maintainers:
email: [email protected]
dependencies:
- name: common
version: 2.19.1
repository: https://charts.bitnami.com/bitnami
version: 1.0.0
repository: oci://ghcr.io/teutonet/teutonet-helm-charts
annotations:
artifacthub.io/images: |
- image: registry-gitlab.teuto.net/4teuto/dev/teuto-portal/teuto-portal-k8s-worker/teuto-portal-k8s-worker:2.0.0 # default/Deployment/teuto-portal-k8s-worker.yaml
2 changes: 1 addition & 1 deletion charts/teuto-portal-k8s-worker/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ spec:
httpGet:
path: /-/healthy
port: metrics
resources: {{- toYaml .Values.worker.resources | nindent 12 }}
resources: {{- include "common.resources" .Values.worker.resources | nindent 12 }}
volumeMounts:
- mountPath: /kubeconfig
name: clusterconfig
Expand Down
6 changes: 6 additions & 0 deletions charts/teuto-portal-k8s-worker/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,9 @@
},
"additionalProperties": false
},
"resourcesPreset": {
"$ref": "#/$defs/resourcesPreset"
},
"resources": {
"$ref": "#/$defs/resourceRequirements"
}
Expand All @@ -218,6 +221,9 @@
"$defs": {
"resourceRequirements": {
"$ref": "https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/master-standalone-strict/_definitions.json#/definitions/io.k8s.api.core.v1.ResourceRequirements"
},
"resourcesPreset": {
"$ref": "https://raw.githubusercontent.com/teutonet/teutonet-helm-charts/main/charts/common/values.schema.json#/$defs/resourcesPreset"
}
}
}
8 changes: 2 additions & 6 deletions charts/teuto-portal-k8s-worker/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,5 @@ worker:
kubeconfig:
secret:
name: ""
resources:
limits:
cpu: 500m
memory: 1Gi
requests:
memory: 256Mi
resourcesPreset: micro
resources: {}

0 comments on commit b7a73c5

Please sign in to comment.