You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Second, they'll need to output the values for use.
output "cluster_kubeconfig_path" {
value = local_sensitive_file.kubeconfig.filename
}
output "cluster_kubeconfig_path_export" {
value = "export KUBECONFIG=${local_sensitive_file.kubeconfig.filename}"
}
Value Statement
As a developer, I would like the kubeconfig file written to a specified directory and a convenience value for setting the KUBECONFIG environment variable.
a value of null (or unset) or "" will not write out the kubeconfig file
setting the value will result in two additional outputs becoming available, cluster_kubeconfig_path which will be the full path to the kubeconfig file that includes the output filename, and cluster_kubeconfig_path_export which is a string value that can be cut and paste into one's environment to inform kubectl of the location.
Drawbacks
This is an initial representation of these values so there might be conditions that are unforseen.
Unresolved questions
No response
The text was updated successfully, but these errors were encountered:
Summary
Limitation
In version 0.0.3, if a user of the module wants to access the kubeconfig, there's some overhead they will need.
First, they'll need to create a local sensitive file.
Second, they'll need to output the values for use.
Value Statement
As a developer, I would like the kubeconfig file written to a specified directory and a convenience value for setting the KUBECONFIG environment variable.
Basic Example
cluster_kubeconfig_path
which will be the full path to the kubeconfig file that includes the output filename, andcluster_kubeconfig_path_export
which is a string value that can be cut and paste into one's environment to inform kubectl of the location.Drawbacks
This is an initial representation of these values so there might be conditions that are unforseen.
Unresolved questions
No response
The text was updated successfully, but these errors were encountered: