Skip to content

Commit

Permalink
Make it possible to enable/disable specific CRD imports (#90)
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Berendt <[email protected]>
  • Loading branch information
berendt authored Sep 5, 2024
1 parent 08efa4f commit e39cb83
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions roles/crds/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
---
crds_cert_manager: false
crds_cert_manager_helm_chart_ref: /charts/cert-manager-crds
crds_cert_manager_helm_release_name: cert-manager-crds
crds_cert_manager_helm_release_namespace: crds
crds_cert_manager_helm_values: {}

crds_prometheus_operator: true
crds_prometheus_operator_helm_chart_ref: /charts/prometheus-operator-crds
crds_prometheus_operator_helm_release_name: prometheus-operator-crds
crds_prometheus_operator_helm_release_namespace: crds
crds_prometheus_operator_helm_values: {}

crds_yaook_operators: true
crds_yaook_operators_helm_chart_ref: /charts/crds
crds_yaook_operators_helm_release_name: yaook-operators-crds
crds_yaook_operators_helm_release_namespace: crds
Expand Down
3 changes: 3 additions & 0 deletions roles/crds/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
kubeconfig: /share/kubeconfig
wait: true
values: "{{ _crds_cert_manager_helm_values | combine(crds_cert_manager_helm_values, recursive=True) }}"
when: crds_cert_manager | bool

- name: Deploy prometheus operator crds
kubernetes.core.helm:
Expand All @@ -18,6 +19,7 @@
kubeconfig: /share/kubeconfig
wait: true
values: "{{ _crds_prometheus_operator_helm_values | combine(crds_prometheus_operator_helm_values, recursive=True) }}"
when: crds_prometheus_operator | bool

- name: Deploy yaook operators crds
kubernetes.core.helm:
Expand All @@ -28,3 +30,4 @@
kubeconfig: /share/kubeconfig
wait: true
values: "{{ _crds_yaook_operators_helm_values | combine(crds_yaook_operators_helm_values, recursive=True) }}"
when: crds_yaook_operators | bool

0 comments on commit e39cb83

Please sign in to comment.