diff --git a/.vscode/launch.json b/.vscode/launch.json index dc6d89a..19c3579 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -5,7 +5,7 @@ "version": "0.2.0", "configurations": [ { - "name": "Launch", + "name": "Launch K3s", "type": "go", "request": "launch", "mode": "test", @@ -15,6 +15,17 @@ "KUBECONFIG": "/etc/rancher/k3s/k3s.yaml", }, "args": ["-test.v"] + }, + { + "name": "Launch KubeContext current", + "type": "go", + "request": "launch", + "mode": "test", + "program": "${workspaceRoot}/kubernetes/.", + "env": { + "TF_ACC": 1, + }, + "args": ["-test.v"] } ] } \ No newline at end of file diff --git a/_examples/crds/basic_crd.tf b/_examples/crds/basic_crd.tf new file mode 100644 index 0000000..215d7cf --- /dev/null +++ b/_examples/crds/basic_crd.tf @@ -0,0 +1,40 @@ +provider "k8sraw" {} + + +resource "k8sraw_yaml" "crd" { + # depends_on = ["k8sraw_yaml.definecrd"] + yaml_body = <