Skip to content

Commit

Permalink
Add cloud credits API to azimuth-ops
Browse files Browse the repository at this point in the history
  • Loading branch information
assumptionsandg committed Jul 8, 2024
1 parent 85eb578 commit 004850c
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
2 changes: 2 additions & 0 deletions playbooks/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
when: azimuth_apps_enabled
- role: stackhpc.azimuth_ops.zenith
when: azimuth_apps_enabled
- role: stackhpc.azimuth_ops.coral_credits
when: coral_credits_enabled
- role: stackhpc.azimuth_ops.azimuth_identity_operator
when: azimuth_apps_enabled
- role: stackhpc.azimuth_ops.azimuth_capi_operator
Expand Down
20 changes: 20 additions & 0 deletions roles/coral_credits/defaults/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---

coral_credits_chart_repo: https://stackhpc.github.io/coral-credits
coral_credits_chart_name: coral-credits
coral_credits_chart_version: 0.1.0

coral_credits_release_namespace: coral-credits
coral_credits_release_name: coral-credits

# The timeout to wait for coral credits API to become ready
coral_credits_wait_timeout: 10m

# The values for the release
coral_credits_release_defaults: {}
coral_credits_release_overrides: {}
coral_credits_release_values: >-
{{-
coral_credits_release_defaults |
combine(coral_credits_release_overrides, recursive = True)
}}
14 changes: 14 additions & 0 deletions roles/coral_credits/tasks/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---

- name: Install Coral Credits API on target Kubernetes cluster
kubernetes.core.helm:
chart_ref: "{{ coral_credits_chart_name }}"
chart_repo_url: "{{ coral_credits_chart_repo }}"
chart_version: "{{ coral_credits_chart_version }}"
release_namespace: "{{ coral_credits_release_namespace }}"
release_name: "{{ coral_credits_release_name }}"
release_values: "{{ coral_credits_release_values }}"
atomic: yes
create_namespace: yes
wait: yes
wait_timeout: "{{ coral_credits_wait_timeout }}"

0 comments on commit 004850c

Please sign in to comment.