-
Notifications
You must be signed in to change notification settings - Fork 28
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
Making powervc-certificate optional #86
base: main
Are you sure you want to change the base?
Making powervc-certificate optional #86
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: irapandey The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Welcome @irapandey! It looks like this is your first PR to ocp-power-automation/ocp4-playbooks-extras 🎉 |
Signed-off-by: ira-pandey1 <[email protected]>
bd85cfb
to
41c3eac
Compare
/lgtm |
/hold |
msg: "PowerVC certificate secret is not present!" | ||
when: powervc_certificate.resources | length == 0 | ||
|
||
- fail: | ||
- name: If powervc-certificate is empty |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This task will fail if the above condition is true.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I ran it on a cluster - it just gives a message
TASK [ocp-csi-driver : Check if the PowerVC certificate's secret is exists] *************************************************************************************************************************************************************************
ok: [localhost]
TASK [ocp-csi-driver : If the powervc-certificate does not exists in default namespace] *************************************************************************************************************************************************************
ok: [localhost] => {
"msg": "PowerVC certificate secret is not present!"
}
TASK [ocp-csi-driver : If powervc-certificate is empty] *********************************************************************************************************************************************************************************************
ok: [localhost] => {
"msg": "PowerVC certificate is empty! Please check the certificate's secret."
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have removed the name parameters and replaces fail with debug
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TASK [ocp-csi-driver : Check if the PowerVC certificate's secret is exists] *************************************************************************************************************************************************************************
ok: [localhost]
TASK [ocp-csi-driver : If the powervc-certificate does not exists in default namespace] *************************************************************************************************************************************************************
ok: [localhost] => {
"msg": "PowerVC certificate secret is not present!"
}
TASK [ocp-csi-driver : debug] ***********************************************************************************************************************************************************************************************************************
ok: [localhost] => {
"msg": "PowerVC certificate is empty! Please check the certificate's secret."
}
TASK [ocp-csi-driver : Create namespace for CSI driver validation] **********************************************************************************************************************************************************************************
ok: [localhost]
New changes are detected. LGTM label has been removed. |
58e8be6
to
e0743c8
Compare
@varad-ahirwadkar - can you take a look? |
msg: "PowerVC certificate secret is not present!" | ||
when: powervc_certificate.resources | length == 0 | ||
|
||
- fail: | ||
- debug: | ||
msg: "PowerVC certificate is empty! Please check the certificate's secret." | ||
when: > | ||
(powervc_certificate.resources[0].data.certificate is not defined) or |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add one more condition to validate only if the certificate is exists powervc_certificate.resources | length != 0
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
made the changes - can you review and let me know if that looks good
e0743c8
to
caf33f2
Compare
Signed-off-by: ira-pandey1 <[email protected]>
caf33f2
to
2cc1088
Compare
This PR is resolving issue #85
Made changes in documentation as well as powervc-certificate is optional