Skip to content

Commit

Permalink
castai#506 Added API_URL variable
Browse files Browse the repository at this point in the history
  • Loading branch information
johannges authored Sep 14, 2024
1 parent 981a3c5 commit bf1010b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
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 bf1010b

Please sign in to comment.