• 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
..
apps Loading commit data...
cmd Loading commit data...
metricsutil Loading commit data...
plugins Loading commit data...
proxy Loading commit data...
resource Loading commit data...
testing Loading commit data...
util Loading commit data...
validation Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...
apply.go Loading commit data...
autoscale.go Loading commit data...
bash_comp_utils.go Loading commit data...
cluster.go Loading commit data...
cluster_test.go Loading commit data...
clusterrolebinding.go Loading commit data...
configmap.go Loading commit data...
configmap_test.go Loading commit data...
delete.go Loading commit data...
delete_test.go Loading commit data...
deployment.go Loading commit data...
doc.go Loading commit data...
env_file.go Loading commit data...
env_file_test.go Loading commit data...
explain.go Loading commit data...
generate.go Loading commit data...
generate_test.go Loading commit data...
history.go Loading commit data...
interfaces.go Loading commit data...
kubectl.go Loading commit data...
kubectl_test.go Loading commit data...
namespace.go Loading commit data...
namespace_test.go Loading commit data...
pdb.go Loading commit data...
quota.go Loading commit data...
quota_test.go Loading commit data...
resource_filter.go Loading commit data...
resource_filter_test.go Loading commit data...
rolebinding.go Loading commit data...
rolebinding_test.go Loading commit data...
rollback.go Loading commit data...
rolling_updater.go Loading commit data...
rolling_updater_test.go Loading commit data...
rollout_status.go Loading commit data...
rollout_status_test.go Loading commit data...
run.go Loading commit data...
run_test.go Loading commit data...
scale.go Loading commit data...
scale_test.go Loading commit data...
secret.go Loading commit data...
secret_for_docker_registry.go Loading commit data...
secret_for_docker_registry_test.go Loading commit data...
secret_for_tls.go Loading commit data...
secret_for_tls_test.go Loading commit data...
secret_test.go Loading commit data...
service.go Loading commit data...
service_basic.go Loading commit data...
service_basic_test.go Loading commit data...
service_test.go Loading commit data...
serviceaccount.go Loading commit data...
serviceaccount_test.go Loading commit data...
sorting_printer.go Loading commit data...
sorting_printer_test.go Loading commit data...
versioned_client.go Loading commit data...