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

Update Namespace and Name simultaneously #1379

Merged
merged 2 commits into from
Jul 23, 2019

Conversation

jbrette
Copy link
Contributor

@jbrette jbrette commented Jul 21, 2019

Update Namespace and Name simultaneously

  • Namespace, namesuffix and nameprefix transformation should be handled in same way.

  • Removed RoleBinding and Webhook specific code in the namespacetransformer.
    That code was attempting to perform the task of the namereference

  • Updated namereference transformer configuration to suppport the
    Webhooks.

  • Prevent the namereference from wiping out the namespace value if
    no referral candidate was selected

  • Added unit tests.

This PR is a fix for:

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jul 21, 2019
@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jul 21, 2019
@jbrette
Copy link
Contributor Author

jbrette commented Jul 21, 2019

/assign @Liujingfang1

@richardmarshall
Copy link
Contributor

Confirmed this fixes the issue described in #1377. Thanks for fixing this before I had a chance to look into what was going on. 😄

- Removed RoleBinding and Webhook specific code in the namespacetransformer.
  That code was attempting to perform the task of the namereference
- Updated namereference transformer configuration to suppport the
  Webhooks.
- Prevent the namereference from wiping out the namespace value if
  no referral candidate was selected
- Added unit tests.
Add tests combining prefixsuffix and namespace transformers.
@jbrette
Copy link
Contributor Author

jbrette commented Jul 23, 2019

@Liujingfang1 Gentle bump of the PR. I did update the code according to the review and rebased the PR.

@Liujingfang1
Copy link
Contributor

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 23, 2019
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jbrette, Liujingfang1

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 23, 2019
@k8s-ci-robot k8s-ci-robot merged commit c23039c into kubernetes-sigs:master Jul 23, 2019
@jbrette jbrette deleted the namespace branch July 23, 2019 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants