-
Notifications
You must be signed in to change notification settings - Fork 40.6k
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
Fix create secret docker-registry compatibility #72344
Conversation
/cc @soltysh |
@@ -73,7 +73,7 @@ func TestSecretForDockerRegistryGenerate(t *testing.T) { | |||
}, | |||
expected: &v1.Secret{ | |||
ObjectMeta: metav1.ObjectMeta{ | |||
Name: "foo-7566tc6mgc", | |||
Name: "foo-548cm7fgdh", |
There was a problem hiding this comment.
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
LGTM 👍 |
Just spectacular. I’ll add a test that verifies the actual content later. |
/lgtm |
[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 |
I added a stop-gap one to the test-cmd invocation |
…4-upstream-release-1.13 Automated cherry pick of #72344: Fix create secret docker-registry compatibility
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?:
/assign @smarterclayton
/sig cli