Skip to content

Use right CCNP validation#12106

Merged
aanm merged 2 commits intocilium:masterfrom
aanm:pr/fix-ccnp-validation
Jun 17, 2020
Merged

Use right CCNP validation#12106
aanm merged 2 commits intocilium:masterfrom
aanm:pr/fix-ccnp-validation

Conversation

@aanm
Copy link
Copy Markdown
Member

@aanm aanm commented Jun 16, 2020

Use right schema when validating CCNP in pre-flight upgrade step

Note for backporters, ping me if this does not apply cleanly for 1.6 branch

aanm added 2 commits June 16, 2020 17:41
Having a init function to initialize all structures does not initialize
the different fields of 'CNPCRV' in case this variable is accessed
outside the 'v2/client' package. Replacing the 'init' function with
dedicated functions that initialize those fields allows 'CNPCRV' to have
the fields rightfully initialized.

Signed-off-by: André Martins <andre@cilium.io>
The CCNP validation is different from the CNP validation so we need to
validate the CCNP with the right schema validation.

Fixes: 9b0ae85 ("k8s: Fix CCNP for host policies")
Signed-off-by: André Martins <andre@cilium.io>
@aanm aanm added needs-backport/1.6 release-note/misc This PR makes changes that have no direct user impact. labels Jun 16, 2020
@aanm aanm requested a review from a team as a code owner June 16, 2020 15:45
@aanm aanm requested a review from a team June 16, 2020 15:45
@aanm
Copy link
Copy Markdown
Member Author

aanm commented Jun 16, 2020

test-me-please

@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.01%) to 37.081% when pulling eb8ec18 on aanm:pr/fix-ccnp-validation into 331aab4 on cilium:master.

Copy link
Copy Markdown
Member

@christarazi christarazi left a comment

Choose a reason for hiding this comment

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

LGTM

@aanm
Copy link
Copy Markdown
Member Author

aanm commented Jun 16, 2020

test-me-please

@aanm
Copy link
Copy Markdown
Member Author

aanm commented Jun 16, 2020

k8s 4.19 hit #12120

@joestringer
Copy link
Copy Markdown
Member

@aanm what's the v1.6 aspect of this? CCNP didn't land until v1.7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-note/misc This PR makes changes that have no direct user impact.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants