• Kubernetes Submit Queue's avatar
    Merge pull request #60636 from PhilipGough/keys-from-cm-patch · 420071d8
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
    
    Allow env from resource with keys & updated tests
    
    **What this PR does / why we need it**:
    This change allows users to pull environment from specific keys in secrets and configmaps using the `kubectl set env` command. User can provide a list of comma-separated keys with the `--keys` flag.
    
    This can be useful when a number of applications want to share a configuration object but don't want to pollute a resource with unused environment
    
    Improves test coverage of set env command
    
    **Release note**:
    
    ```
    Allow kubectl set env to specify which keys to import from a resource
    ```
    420071d8
Name
Last commit
Last update
..
BUILD Loading commit data...
helper.go Loading commit data...
set.go Loading commit data...
set_env.go Loading commit data...
set_env_test.go Loading commit data...
set_image.go Loading commit data...
set_image_test.go Loading commit data...
set_resources.go Loading commit data...
set_resources_test.go Loading commit data...
set_selector.go Loading commit data...
set_selector_test.go Loading commit data...
set_serviceaccount.go Loading commit data...
set_serviceaccount_test.go Loading commit data...
set_subject.go Loading commit data...
set_subject_test.go Loading commit data...
set_test.go Loading commit data...