From e44be1aa0778a1bb8908a1ae5b44fdf4b4610cd8 Mon Sep 17 00:00:00 2001 From: Kenneth Belitzky Date: Sat, 17 May 2025 15:06:31 +0000 Subject: [PATCH] Add kubectl configuration file with namespace creation and deletion settings --- struct_module/contribs/configs/kubectl.yaml | 23 +++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 struct_module/contribs/configs/kubectl.yaml diff --git a/struct_module/contribs/configs/kubectl.yaml b/struct_module/contribs/configs/kubectl.yaml new file mode 100644 index 0000000..274f8c1 --- /dev/null +++ b/struct_module/contribs/configs/kubectl.yaml @@ -0,0 +1,23 @@ +files: + - .kuberc: + content: | + apiVersion: kubectl.config.k8s.io/v1alpha1 + kind: Preference + # alias "kubectl crns" for "kubectl create namespace {{@ namespace @}}" + aliases: + - name: crns + command: create namespace + appendArgs: + - {{@ namespace @}} + # Force the --interactive=true flag for kubectl delete + overrides: + - command: delete + flags: + - name: interactive + default: "true" + +variables: + - name: namespace + description: The name of the namespace to create. + type: string + default: default