• Kubernetes Submit Queue's avatar
    Merge pull request #49961 from mtaufen/kubectl-hash · 2cf5118a
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 49961, 50005, 50738, 51045, 49927)
    
    Add --append-hash flag to kubectl create configmap/secret
    
    **What this PR does / why we need it**:
    Specifying this new flag will automatically hash the configmap/secret
    contents with sha256 and append the first 40 hex-encoded bits of the
    hash to the name of the configmap/secret. This is especially useful for
    workflows that generate configmaps/secrets from files (e.g.
    --from-file).
    
    See this Google doc for more background:
    https://docs.google.com/document/d/1x1fJ3pGRx20ujR-Y89HUAw8glUL8-ygaztLkkmQeCdU/edit
    
    **Release note**:
    ```release-note
    Adds --append-hash flag to kubectl create configmap/secret, which will append a short hash of the configmap/secret contents to the name during creation.
    ```
    2cf5118a
Name
Last commit
Last update
..
api Loading commit data...
apimachinery/tests Loading commit data...
apis Loading commit data...
auth Loading commit data...
bootstrap/api Loading commit data...
capabilities Loading commit data...
client Loading commit data...
cloudprovider Loading commit data...
controller Loading commit data...
credentialprovider Loading commit data...
features Loading commit data...
fieldpath Loading commit data...
generated Loading commit data...
hyperkube Loading commit data...
kubeapiserver Loading commit data...
kubectl Loading commit data...
kubelet Loading commit data...
kubemark Loading commit data...
master Loading commit data...
printers Loading commit data...
probe Loading commit data...
proxy Loading commit data...
quota Loading commit data...
registry Loading commit data...
routes Loading commit data...
security Loading commit data...
securitycontext Loading commit data...
serviceaccount Loading commit data...
ssh Loading commit data...
util Loading commit data...
version Loading commit data...
volume Loading commit data...
watch Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...