k3s/pkg/kubectl
Kubernetes Submit Queue 79dae5c092 Merge pull request #45810 from superbrothers/expand-env-vals
Automatic merge from submit-queue (batch tested with PRs 45247, 45810, 45034, 45898, 45899)

kubectl plugin: Expand environment variables in the command of plugin.yaml

**What this PR does / why we need it**:

This commit improves kubectl plugins to expand environment variables in the command of plugin.yaml.
I'd like to use environment variables in the command of plugin.yaml as follows:
```yaml
name: hello
shortDesc: "The hello plugin"
longDesc: >
  The hello plugin is a new
  plugin used by test-cmd
  to test multiple plugin locations.
command: $HOME/path/to/plugins/hello.sh
```

**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #

**Special notes for your reviewer**:

**Release note**:

```release-note
NONE
```
2017-05-16 19:01:57 -07:00
..
cmd Merge pull request #45389 from monopole/isolation1 2017-05-15 19:34:52 -07:00
metricsutil Merge pull request #45389 from monopole/isolation1 2017-05-15 19:34:52 -07:00
plugins kubectl plugin: Expand environment variables in the command of plugin.yaml 2017-05-15 15:54:47 +09:00
resource Introduce visibility rules to kubernetes code. 2017-05-15 12:50:56 -07:00
testing Introduce visibility rules to kubernetes code. 2017-05-15 12:50:56 -07:00
BUILD Introduce visibility rules to kubernetes code. 2017-05-15 12:50:56 -07:00
OWNERS
apply.go
autoscale.go
bash_comp_utils.go
cluster.go
cluster_test.go
clusterrolebinding.go add validate in create rolebinding 2017-05-08 15:52:44 +08:00
configmap.go configmap.go: add one initialization symbol 2017-04-24 21:26:32 +08:00
configmap_test.go create configmap from-env-file 2017-03-08 07:58:01 -08:00
deployment.go Introduce new generator for apps/v1beta1 deployments 2017-03-10 12:08:01 +01:00
deployment_test.go Introduce new generator for apps/v1beta1 deployments 2017-03-10 12:08:01 +01:00
doc.go
env_file.go create configmap from-env-file 2017-03-08 07:58:01 -08:00
explain.go Update go-restful dependency 2017-05-05 13:57:01 -07:00
generate.go
generate_test.go
history.go Clean up pre-ControllerRef compatibility logic 2017-04-07 14:09:23 +08:00
interfaces.go
kubectl.go Add short name "netpol" for networkpolicies 2017-03-01 14:40:56 +08:00
kubectl_test.go
namespace.go
namespace_test.go
pdb.go
proxy_server.go allow kubectl proxy to handle specified reject methods and default to allow all 2017-04-29 21:10:52 -05:00
proxy_server_test.go allow kubectl proxy to handle specified reject methods and default to allow all 2017-04-29 21:10:52 -05:00
quota.go
quota_test.go
resource_filter.go Refactor commands to use new factory method 2017-02-23 00:28:32 -05:00
rolebinding.go add validate in create rolebinding 2017-05-08 15:52:44 +08:00
rolebinding_test.go Supplement unit tests to `kubectl create rolebinding` command. 2017-03-29 16:36:22 +08:00
rollback.go Clean up pre-ControllerRef compatibility logic 2017-04-07 14:09:23 +08:00
rolling_updater.go move pkg/api/v1/ref.go and pkg/api/v1/resource.go to subpackages. move some functions in resource.go to pkg/api/v1/node and pkg/api/v1/pod 2017-04-17 11:38:11 -07:00
rolling_updater_test.go Merge pull request #44024 from zhangxiaoyu-zidif/egnew 2017-05-05 23:41:33 -07:00
rollout_status.go Revert respecting maxUnavailable for DaemonSets 2017-04-22 17:18:09 +02:00
rollout_status_test.go Revert respecting maxUnavailable for DaemonSets 2017-04-22 17:18:09 +02:00
run.go Assign label to pod when exec 'kubectl run' command with flags "--expose=true" and "--restart=Never" 2017-04-26 11:53:33 +08:00
run_test.go Assign label to pod when exec 'kubectl run' command with flags "--expose=true" and "--restart=Never" 2017-04-26 11:53:33 +08:00
scale.go Deployments under apps/v1beta1 with new defaults 2017-03-01 15:14:41 +01:00
scale_test.go
secret.go secret.go: add initial symbol and format err 2017-04-25 10:47:50 +08:00
secret_for_docker_registry.go Make 'docker-email' optional on dockercfg secrets 2017-02-27 17:13:08 -05:00
secret_for_docker_registry_test.go Make 'docker-email' optional on dockercfg secrets 2017-02-27 17:13:08 -05:00
secret_for_tls.go
secret_for_tls_test.go
secret_test.go create secret from-env-file 2017-03-08 07:58:01 -08:00
service.go
service_basic.go
service_basic_test.go
service_test.go
serviceaccount.go
serviceaccount_test.go
sorting_printer.go Use natural sorting for strings in sorting_printer 2017-02-28 07:50:44 +01:00
sorting_printer_test.go make unstructured items correspond to other items for storage 2017-04-11 08:44:16 -04:00
stop.go Clean up pre-ControllerRef compatibility logic 2017-04-07 14:09:23 +08:00
stop_test.go Clean up pre-ControllerRef compatibility logic 2017-04-07 14:09:23 +08:00
versioned_client.go