carvel_kapp resource provides ability to manage set of Kubernetes resources.
app
(string; required) App namenamespace
(string; required) Namespace nameconfig_yaml
(string; optional; sensitive) Input configuration as YAML (multiline strings are indent-trimmed)files
(list of strings; optional) List of file paths to provide to kappdiff_changes
(bool; optional) Equivalent to --diff-changesdiff_context
(int; optional) Equivalent to --diff-contextdebug_logs
(bool; optional; default=false) Log to/tmp/terraform-provider-carvel.log
deploy
(optional)raw_options
(list of strings) Raw options to pass to kapp (e.g.--wait=false
)
delete
(optional)raw_options
(list of strings) Raw options to pass to kapp (e.g.--wait=false
)
cluster_drift_detected
(bool) Set to true when kapp detects there are non-matching changes in the cluster compared to provided configurationdiff_preview_1
,diff_preview_2
(string) Shows diff output from kapp
resource "carvel_kapp" "app2" {
app = "app2"
namespace = "default"
config_yaml = <<EOF
apiVersion: v1
kind: ConfigMap
metadata:
name: app2
data:
data.txt: something
EOF
diff_changes = true
}
resource "carvel_kapp" "app2" {
app = "app2"
namespace = "default"
config_yaml = <<EOF
apiVersion: v1
kind: ConfigMap
metadata:
name: app2
data:
data.txt: something
EOF
deploy {
raw_options = ["--app-changes-max-to-keep=10"]
}
}