Add calico-pull-secret#9868
Conversation
|
Can one of the admins verify this patch?
|
|
/ok-to-test |
| -f {{ mktemp.stdout }}/calico-pull-secret.yml | ||
| --config={{ openshift.common.config_base }}/master/admin.kubeconfig | ||
| register: calico_pull_secret_create_output | ||
| failed_when: "calico_pull_secret_create_output.rc != 0" |
There was a problem hiding this comment.
This should exclude cases where stdout has Already exists - so that the playbook could be rerun several times and work properly on multi-master setup
There was a problem hiding this comment.
I might be misunderstanding, but I thought the apply command has an exit code of 0 when it modifies a resource, creates a resource, or leaves a resource unchanged?
Here are the results of testing it in my own environment:
$ oc apply -f test-ps.yaml
secret "test-calico-pull-secret" created
$ echo $?
0
$ oc apply -f test-ps.yaml
secret "test-calico-pull-secret" unchanged
$ echo $?
0
$ vim test-ps.yaml
$ oc apply -f test-ps.yaml
secret "test-calico-pull-secret" configured
$ echo $?
0
Am I looking at the right values?
There was a problem hiding this comment.
Ah, right, we're using apply here, it would error only when create is used
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mgleung, vrutkovs The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
4 similar comments
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
7 similar comments
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
Adds the use of image credentials for Calico images in case the Calico image is hosted in an image registry that requires credentials to access.
This is a copy of #9867 against the
release-3.10branch.