Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add empty password for ocp4_workload_shared_cluster_access #8799

Open
wants to merge 1 commit into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@
ocp4_workload_shared_cluster_username | length == 0
or ocp4_workload_shared_cluster_username | regex_search('[@.]') is not none

- name: set ocp4_workload_shared_cluster_password
- name: Set effective value for ocp4_workload_shared_cluster_password
# Use __ocp4_workload_shared_cluster_password so that the extra var may be set
# to empty string to indicate password generation is desired.
ansible.builtin.set_fact:
ocp4_workload_shared_cluster_password: >-
__ocp4_workload_shared_cluster_password: >-
{{
ocp4_workload_shared_cluster_password
| ternary(ocp4_workload_shared_cluster_password, lookup('password', '/dev/null length=8 chars=ascii_letters'))
Expand Down Expand Up @@ -36,4 +38,4 @@
data:
# yamllint disable rule:line-length
ocp4_shared_username: "{{ ocp4_workload_shared_cluster_username }}"
ocp4_shared_password: "{{ ocp4_workload_shared_cluster_password }}"
ocp4_shared_password: "{{ __ocp4_workload_shared_cluster_password }}"
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ spec:
username: {{ ocp4_workload_shared_cluster_username }}
credentials:
- type: password
value: {{ ocp4_workload_shared_cluster_password }}
value: {{ __ocp4_workload_shared_cluster_password | to_json }}
email: {{ ocp4_workload_shared_cluster_email }}
emailVerified: true
enabled: true
Loading