Skip to content

Commit

Permalink
[castai-hibernate] #506 Added API_URL variable (#507)
Browse files Browse the repository at this point in the history
* #506 Added API_URL variable

* bump version number from 0.2.7 to 0.2.8

* Update Chart.yaml

* chore: remove trailing whitespace

* docs: Executed gen-docs

---------

Co-authored-by: Elijah Abdulrahman <[email protected]>
  • Loading branch information
johannges and eliAbdulrahman authored Sep 17, 2024
1 parent c89e01f commit 5bc29c5
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 4 deletions.
4 changes: 2 additions & 2 deletions charts/castai-hibernate/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: castai-hibernate
description: CAST AI hibernate CronJobs used to pause and resume Kubernetes cluster on a defined schedule.
type: application
version: 0.2.8
appVersion: "v0.11"
version: 0.2.9
appVersion: "v0.12"
1 change: 1 addition & 0 deletions charts/castai-hibernate/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ CAST AI hibernate CronJobs used to pause and resume Kubernetes cluster on a defi
| agentNamespace | string | `"castai-agent"` | |
| apiKey | string | `""` | API token with Full Access permissions and encode base64 |
| apiKeySecretRef | string | `""` | Name of secret with Token to be used for authorizing evictor access to the API apiKey and apiKeySecretRef are mutually exclusive The referenced secret must provide the token in .data["API_KEY"]. |
| apiUrl | for Europe use https://api.eu.cast.ai | `"https://api.cast.ai"` | |
| backoffLimit | int | `0` | |
| cloud | string | `""` | Set CronJobs "Cloud" env variable to [EKS|GKE|AKS] |
| clusterRoleBindingAdminName | string | `"hibernate-admin"` | |
Expand Down
4 changes: 3 additions & 1 deletion charts/castai-hibernate/templates/pause-cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ spec:
valueFrom:
configMapKeyRef:
name: {{ .Values.configMapName }}
key: CLUSTER_ID
key: CLUSTER_ID
- name: API_URL
value: {{ .Values.apiUrl }}
restartPolicy: {{ .Values.restartPolicy }}
backoffLimit: {{ .Values.backoffLimit }}
4 changes: 3 additions & 1 deletion charts/castai-hibernate/templates/resume-cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ spec:
valueFrom:
configMapKeyRef:
name: {{ .Values.configMapName }}
key: CLUSTER_ID
key: CLUSTER_ID
- name: API_URL
value: {{ .Values.apiUrl }}
restartPolicy: {{ .Values.restartPolicy }}
backoffLimit: {{ .Values.backoffLimit }}
6 changes: 6 additions & 0 deletions charts/castai-hibernate/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

# CAST AI API URL configuration.
# -- API Url to be used.
# -- Default: https://api.cast.ai
# -- (for Europe use https://api.eu.cast.ai)
apiUrl: "https://api.cast.ai"

# CAST AI API Key configuration.
# -- API token with Full Access permissions and encode base64
apiKey: ""
Expand Down

0 comments on commit 5bc29c5

Please sign in to comment.