Skip to content

Conversation

@michaelsauter
Copy link
Member

They are added only for legacy clients but cause some issues with
Tailor, especially because they might be added with a value of null
instead of an empty array.

Fixes #140.

They are added only for legacy clients but cause some issues with
Tailor, especially because they might be added with a value of `null`
instead of an empty array.

Fixes #140.
@michaelsauter michaelsauter self-assigned this Oct 18, 2019
@michaelsauter michaelsauter requested a review from henrjk October 18, 2019 08:09
name: jenkins
namespace: foo-cd
userNames:
- system:serviceaccount:foo-cd:jenkins
Copy link
Member

Choose a reason for hiding this comment

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

Should there a be or is there already a test where userNames/groupNames are:

  • not in the template
  • inconsistent with the subjects. This could prove they are ignored I guess

Copy link
Member Author

@michaelsauter michaelsauter Oct 18, 2019

Choose a reason for hiding this comment

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

Regarding "inconsistent with the subjects": That would need an end-to-end test. The test here does actually prove that they are removed - otherwise the golden diff would show it, and the JSON patches would look different.

Copy link
Member

@henrjk henrjk left a comment

Choose a reason for hiding this comment

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

I added a question but the code looks good to me.

@michaelsauter michaelsauter merged commit a2f4a38 into master Oct 18, 2019
@michaelsauter michaelsauter deleted the fix/omit-legacy-fields branch October 18, 2019 10:03
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.

'jsonpatch remove operation does not apply' when updating rolebinding

3 participants