Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[castai-hibernate] #506 Added API_URL variable #507

Merged
merged 6 commits into from
Sep 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading