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

Multiple certbot-managed=true labels causes problem with uniq. #13

Closed
marklise opened this issue Jul 20, 2021 · 1 comment
Closed

Multiple certbot-managed=true labels causes problem with uniq. #13

marklise opened this issue Jul 20, 2021 · 1 comment

Comments

@marklise
Copy link

oc get route -l certbot-managed=true -o json | jq '.items[].spec.host' -r | sort -f | uniq -iu > /tmp/certbot-hosts.txt

Here if you have multiple routes with different paths but the same domain causes the uniq -iu command to return nothing. Tested on Openshift 4.x and Ubuntu 20.04 WSL.

Workaround: Label one route, run the certbot routine, and manually copy the certs into the other route yamls.

@jujaga
Copy link
Member

jujaga commented Apr 21, 2022

Addressed in 6a0ac87

@jujaga jujaga closed this as completed Apr 21, 2022
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

No branches or pull requests

2 participants