diff --git a/roles/crds/defaults/main.yml b/roles/crds/defaults/main.yml index cf34bab..6de6002 100644 --- a/roles/crds/defaults/main.yml +++ b/roles/crds/defaults/main.yml @@ -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 diff --git a/roles/crds/tasks/main.yml b/roles/crds/tasks/main.yml index b3d2904..9c304e2 100644 --- a/roles/crds/tasks/main.yml +++ b/roles/crds/tasks/main.yml @@ -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: @@ -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: @@ -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