Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Fix verification of initContainer releases #1351

Merged
merged 3 commits into from
Sep 11, 2018
Merged

Conversation

squaremo
Copy link
Member

There was a mistake in spec.SetContainer, a method which is used only when verifying releases; it meant that any update to an initContainer would fail verification.

I've fixed that and added a couple of tests to cover updating (just changing a manifest) and releasing (updating and verifying and so on) workloads that have initContainers.

Fixes #1345.

Almost all of the tests for the releaser have one (or a small number)
of particular results they are looking for, with all the other
workloads getting the same skipped or ignored result. By representing
this situation directly in the fixture, it's easier to read and update
the tests.
@squaremo squaremo requested a review from rndstr September 10, 2018 16:46
@stefanprodan
Copy link
Member

stefanprodan commented Sep 10, 2018

I've tried to test this but I'm running into:

ts=2018-09-10T18:37:23.489027538Z caller=memcached.go:69 component=memcached err="Error setting memcache servers to 'flux-memcached': lookup flux-memcached on 10.31.240.10:53: cannot unmarshal DNS message"

Inside Flux container:

kubectl -n flux exec -it flux-7545f7d96d-7clnq sh

/home/flux # nc -v flux-memcached 11211
flux-memcached (10.28.12.18:11211) open

/home/flux # nslookup flux-memcached
Name:      flux-memcached
Address 1: 10.28.12.18

If I revert back to Flux 1.6.0 it works... I didn't find the root cause for this yet.

@stefanprodan
Copy link
Member

It's go 1.11 golang/go#27546

Copy link
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

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

Tested on GKE with init containers, works ok

@squaremo
Copy link
Member Author

It's go 1.11 golang/go#27546

Wooooow that's not good ...

@squaremo squaremo merged commit f949465 into master Sep 11, 2018
@squaremo squaremo deleted the issue/1345-init-containers branch September 11, 2018 09:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

initContainers not working
2 participants