Skip to content

Commit

Permalink
always create cm
Browse files Browse the repository at this point in the history
  • Loading branch information
jmazzitelli committed Oct 29, 2024
1 parent 374459e commit bcf574b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion roles/default/kiali-deploy/tasks/kubernetes/k8s-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
role_namespaces: "{{ [ kiali_vars.deployment.namespace ] }}"
process_resource_templates:
- "templates/kubernetes/serviceaccount.yaml"
- "{{ 'templates/kubernetes/configmap.yaml' if kiali_vars.deployment.remote_cluster_resources_only|bool == False else '' }}"
- "templates/kubernetes/configmap.yaml"
- "templates/kubernetes/{{ 'role-viewer' if ((kiali_vars.deployment.view_only_mode|bool == True) or (kiali_vars.auth.strategy != 'anonymous')) else 'role' }}.yaml"
- "templates/kubernetes/rolebinding.yaml"
- "{{ 'templates/kubernetes/deployment.yaml' if kiali_vars.deployment.remote_cluster_resources_only|bool == False else '' }}"
Expand Down
2 changes: 1 addition & 1 deletion roles/default/kiali-deploy/tasks/openshift/os-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
role_namespaces: "{{ [ kiali_vars.deployment.namespace ] }}"
process_resource_templates:
- "templates/openshift/serviceaccount.yaml"
- "{{ 'templates/openshift/configmap.yaml' if kiali_vars.deployment.remote_cluster_resources_only|bool == False else '' }}"
- "templates/openshift/configmap.yaml"
- "{{ 'templates/openshift/cabundle.yaml' if kiali_vars.deployment.remote_cluster_resources_only|bool == False else '' }}"
- "templates/openshift/{{ 'role-viewer' if ((kiali_vars.deployment.view_only_mode|bool == True) or (kiali_vars.auth.strategy != 'anonymous')) else 'role' }}.yaml"
- "templates/openshift/rolebinding.yaml"
Expand Down

0 comments on commit bcf574b

Please sign in to comment.