Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

local-kubectl

Run a kubectl command from your computer

Requirements

Name Version
terraform ~> 1.3
local ~> 2.2.3
null ~> 3.2.4

Providers

Name Version
null ~> 3.2.4

Modules

No modules.

Resources

Name Type
null_resource.kubectl resource

Inputs

Name Description Type Default Required
always_run Always run the task, even if the pipeline has already been run bool false no
commands Arguments to pass to the kubectl command list(string)
[
"get namespaces"
]
no
kubeconfig Kubeconfig file for the cluster string "~/.kube/config" no
logfile File to write the output of the kubectl command to string "/tmp/tf_kubectl_cmds.log" no
namespace Namespace to run the command in (optional) string null no

Outputs

Name Description
id The IDs of the kubectl commands