• Kubernetes Submit Queue's avatar
    Merge pull request #34020 from juanvallejo/jvallejo/allow-empty-annotation-values · d4088fc4
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue
    
    Allow empty annotation values
    
    Related downstream issue: https://github.com/openshift/origin/issues/11175
    
    **Release note**:
    ```release-note
    release-note-none
    ```
    
    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]
    ```
    
    @fabianofranz @liggitt
    d4088fc4
Name
Last commit
Last update
..
helpers Loading commit data...
build.sh Loading commit data...
cross.sh Loading commit data...
test-cmd.sh Loading commit data...
test-e2e-node.sh Loading commit data...
test-integration.sh Loading commit data...
test.sh Loading commit data...
verify.sh Loading commit data...
vet.sh Loading commit data...