-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
UPSTREAM: 34020: Allow empty annotation values #11210
UPSTREAM: 34020: Allow empty annotation values #11210
Conversation
needs upstream |
c242a8b
to
4faa06a
Compare
Annotations with empty values can be used, for example, in diagnostics logging. This patch removes the client-side check for empty values in an annotation key-value pair. **Before** ``` $ kubectl annotate pod zookeeper-1 node-selector="" --overwrite error: invalid annotation format: node-selector= ``` **After** ``` $ kubectl annotate pod zookeeper-1 node-selector="" --overwrite pod "zookeper-1" annotated ``` ``` $ kubectl get po/zookeeper-1 --template='{{.metadata.annotations}}' map[... node-selector: test-label:test] ```
d32a9d8
to
751d01c
Compare
Does this work without quotes?
|
Yeah, just checked both |
LGTM [merge] |
[Test]ing while waiting on the merge queue |
751d01c
to
94b23f9
Compare
94b23f9
to
cd48fb0
Compare
Evaluated for origin test up to cd48fb0 |
re[merge] |
continuous-integration/openshift-jenkins/test FAILURE (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/9841/) |
integration test flaked on #11240 |
flaked on #11240 re[merge] |
Evaluated for origin merge up to cd48fb0 |
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/10167/) (Base Commit: 3ed3b35) (Image: devenv-rhel7_5194) |
UPSTREAM: kubernetes/kubernetes#34020
Fixes:
#11175
Annotations with empty values can be used, for example, in oadm
diagnostics logging. This patch removes the client-side check for empty
values in an annotation key-value pair.
Before
After
@openshift/cli-review