Skip to content

Fix create secret docker-registry compatibility #72344

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

Merged
merged 1 commit into from
Dec 26, 2018

Conversation

liggitt
Copy link
Member

@liggitt liggitt commented Dec 26, 2018

What type of PR is this?
/kind bug

What this PR does / why we need it:
Fixes the secrets produced by kubectl create secret docker-registry to restore auth segment and produce the correct case.

Which issue(s) this PR fixes:
Fixes kubernetes/kubectl#571

Special notes for your reviewer:

#68441 didn't preserve the json marshaling behavior of the original struct

Does this PR introduce a user-facing change?:

Fixes `kubectl create secret docker-registry` compatibility

/assign @smarterclayton
/sig cli

@k8s-ci-robot k8s-ci-robot added the release-note Denotes a PR that will be considered when it comes time to generate release notes. label Dec 26, 2018
@k8s-ci-robot k8s-ci-robot added kind/bug Categorizes issue or PR as related to a bug. sig/cli Categorizes an issue or PR as relevant to SIG CLI. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. labels Dec 26, 2018
@liggitt liggitt added the priority/critical-urgent Highest priority. Must be actively worked on as someone's top priority right now. label Dec 26, 2018
@k8s-ci-robot k8s-ci-robot removed the needs-priority Indicates a PR lacks a `priority/foo` label and requires one. label Dec 26, 2018
@k8s-ci-robot k8s-ci-robot added area/kubectl sig/testing Categorizes an issue or PR as relevant to SIG Testing. labels Dec 26, 2018
@liggitt
Copy link
Member Author

liggitt commented Dec 26, 2018

/cc @soltysh

@k8s-ci-robot k8s-ci-robot requested a review from soltysh December 26, 2018 16:17
@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 26, 2018
@@ -73,7 +73,7 @@ func TestSecretForDockerRegistryGenerate(t *testing.T) {
},
expected: &v1.Secret{
ObjectMeta: metav1.ObjectMeta{
Name: "foo-7566tc6mgc",
Name: "foo-548cm7fgdh",
Copy link
Member Author

@liggitt liggitt Dec 26, 2018

Choose a reason for hiding this comment

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

the breaking PR changed this, this is reverting to the original value

@liggitt liggitt added this to the v1.14 milestone Dec 26, 2018
@dims
Copy link
Member

dims commented Dec 26, 2018

LGTM 👍

@smarterclayton
Copy link
Contributor

Just spectacular. I’ll add a test that verifies the actual content later.

@smarterclayton
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 Dec 26, 2018
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: liggitt, smarterclayton

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

@liggitt
Copy link
Member Author

liggitt commented Dec 26, 2018

I’ll add a test that verifies the actual content later.

I added a stop-gap one to the test-cmd invocation

@k8s-ci-robot k8s-ci-robot merged commit ee00cd3 into kubernetes:master Dec 26, 2018
@liggitt liggitt deleted the fix-create-docker-registry branch December 30, 2018 02:29
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. area/kubectl cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/bug Categorizes issue or PR as related to a bug. lgtm "Looks good to me", indicates that a PR is ready to be merged. priority/critical-urgent Highest priority. Must be actively worked on as someone's top priority right now. release-note Denotes a PR that will be considered when it comes time to generate release notes. sig/cli Categorizes an issue or PR as relevant to SIG CLI. sig/testing Categorizes an issue or PR as relevant to SIG Testing. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

kubectl create secret docker-registry omits auth key in dockerconfigjson
4 participants