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

🐛 Fix the keycloak pod name selector... #73

Merged
merged 1 commit into from
Apr 18, 2018

Conversation

david-martin
Copy link
Contributor

So it doesn't give the below error when there are other pods with more
than 1 container in the namespace

error executing jsonpath \"{.items[?(@.spec.containers[*].name==\\\"keycloak\\\")].metadata.name}\": can only compare one element at a time

This fix should be OK as long as the keycloak pod doesn't have more than 1 container.
If that changes, we'll have to rethink labelling or something like that to allow easier selecting of the right pod

ping @secondsun @maleck13

related to #48

So it doesn't give the below error when there are other pods with more
than 1 container in the namespace

```
error executing jsonpath \"{.items[?(@.spec.containers[*].name==\\\"keycloak\\\")].metadata.name}\": can only compare one element at a time
```
@david-martin
Copy link
Contributor Author

@pb82 or @matzew could I get an ack on this PR?

@pb82
Copy link
Contributor

pb82 commented Apr 18, 2018

👀

Copy link
Contributor

@pb82 pb82 left a comment

Choose a reason for hiding this comment

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

The change is fine, deploy and undeploy work. apb test fails but this is unrelated to this change: the apb is using the service instance id which is not defined during testing: https://github.com/aerogearcatalog/keycloak-apb/blob/master/roles/provision-keycloak-apb/templates/configmap.yml.j2#L9. Thats probably also the reason why it fails on Jenkins (which is also running apb test).

@secondsun
Copy link
Contributor

I was able to deploy and undeploy with this fix \0/!

@david-martin david-martin merged commit 174100a into master Apr 18, 2018
@david-martin david-martin deleted the fix-pod-name-selector branch April 18, 2018 14:31
@david-martin
Copy link
Contributor Author

@pb82 @psturc is there an issue for the failing tests already?

@pb82
Copy link
Contributor

pb82 commented Apr 18, 2018

@david-martin In the UPS apb we use a special secret for testing that doesn't have the service instance id: https://github.com/aerogearcatalog/unifiedpush-apb/blob/master/roles/provision-unifiedpush-apb/tasks/provision-ups.yml#L143

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