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

Updates the check for the IBM CR pull secret #111

Merged
merged 2 commits into from
Apr 30, 2020

Conversation

seansund
Copy link
Contributor

  • Replaces check for specific default-icr-io name with a pattern match

Addresses #110

@seansund seansund requested a review from a team as a code owner April 22, 2020 16:48
@seansund seansund marked this pull request as draft April 22, 2020 17:09
- Replaces check for specific `default-icr-io` name with a pattern match

Addresses draios#110
@seansund seansund marked this pull request as ready for review April 22, 2020 18:25
SECRET_NAME=$(echo ${default_secret} | sed "s/default-/$NAMESPACE-/g")

echo "Processing ${default_secret} as ${SECRET_NAME}"
kubectl get secret ${default_secret} -n default -o yaml --export | sed "s/name: default-/name: $NAMESPACE-/g" | kubectl -n $NAMESPACE apply -f -
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the --export option is reporting that's been deprecated - can we use something else with this logic ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The --export can be removed; the previous code was doing the kubectl get secret ... | kubectl apply ... without the --export. However, I've seen "Mutating Webhook" issues on OpenShift 4.3 at times without it.

Copy link
Contributor

@bennythejudge bennythejudge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks good but I did not have time to test it on my own, I will assume it has been tested before submission.

@mbreitung mbreitung merged commit 321a92a into draios:master Apr 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants