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
Copy file name to clipboardExpand all lines: docs/user_docs/guides/working-with-k8s/3-mutate-manifests/1-kubectl-kcl-plugin.md
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -195,9 +195,11 @@ Ingress should be https. The `kubernetes.io/ingress.allow-http: "false"` annotat
195
195
196
196
Here's what you can do in the KCL code:
197
197
198
-
- Read resources from `option("resource_list")`. The `option("resource_list")` complies with the [KRM Functions Specification](https://kpt.dev/book/05-developing-functions/01-functions-specification). You can read the input resources from `option("resource_list")["items"]` and the `functionConfig` from `option("resource_list")["functionConfig"]`.
198
+
- Read resources from `option("items")`. The `option("items")` complies with the [KRM Functions Specification](https://kpt.dev/book/05-developing-functions/01-functions-specification).
199
199
- Return a KRM list for output resources.
200
200
- Return an error using `assert {condition}, {error_message}`.
201
+
- Read the PATH variables. e.g. `option("PATH")`.
202
+
- Read the environment variables. e.g. `option("env")`.
Copy file name to clipboardExpand all lines: docs/user_docs/guides/working-with-k8s/3-mutate-manifests/2-helm-kcl-plugin.md
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -91,9 +91,11 @@ spec:
91
91
92
92
Here's what you can do in the KCL code:
93
93
94
-
- Read resources from `option("resource_list")`. The `option("resource_list")` complies with the [KRM Functions Specification](https://kpt.dev/book/05-developing-functions/01-functions-specification). You can read the input resources from `option("resource_list")["items"]` and the `functionConfig` from `option("resource_list")["functionConfig"]`.
94
+
- Read resources from `option("items")`. The `option("items")` complies with the [KRM Functions Specification](https://kpt.dev/book/05-developing-functions/01-functions-specification).
95
95
- Return a KRM list for output resources.
96
96
- Return an error using `assert {condition}, {error_message}`.
97
+
- Read the PATH variables. e.g. `option("PATH")`.
98
+
- Read the environment variables. e.g. `option("env")`.
Copy file name to clipboardExpand all lines: docs/user_docs/guides/working-with-k8s/3-mutate-manifests/3-kustomize-kcl-plugin.md
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -96,9 +96,11 @@ spec:
96
96
97
97
Here's what you can do in the KCL code:
98
98
99
-
- Read resources from `option("resource_list")`. The `option("resource_list")` complies with the [KRM Functions Specification](https://kpt.dev/book/05-developing-functions/01-functions-specification). You can read the input resources from `option("resource_list")["items"]` and the `functionConfig` from `option("resource_list")["functionConfig"]`.
99
+
- Read resources from `option("items")`. The `option("items")` complies with the [KRM Functions Specification](https://kpt.dev/book/05-developing-functions/01-functions-specification).
100
100
- Return a KRM list for output resources.
101
101
- Return an error using `assert {condition}, {error_message}`.
102
+
- Read the PATH variables. e.g. `option("PATH")`.
103
+
- Read the environment variables. e.g. `option("env")`.
Copy file name to clipboardExpand all lines: docs/user_docs/guides/working-with-k8s/3-mutate-manifests/4-kpt-kcl-sdk.md
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -87,9 +87,11 @@ It can be seen that we have indeed added the annotation `managed-by=kpt`.
87
87
88
88
Here's what you can do in the KCL code:
89
89
90
-
- Read resources from `option("resource_list")`. The `option("resource_list")` complies with the [KRM Functions Specification](https://kpt.dev/book/05-developing-functions/01-functions-specification). You can read the input resources from `option("resource_list")["items"]` and the `functionConfig` from `option("resource_list")["functionConfig"]`.
90
+
- Read resources from `option("items")`. The `option("items")` complies with the [KRM Functions Specification](https://kpt.dev/book/05-developing-functions/01-functions-specification).
91
91
- Return a KRM list for output resources.
92
92
- Return an error using `assert {condition}, {error_message}`.
93
+
- Read the PATH variables. e.g. `option("PATH")`.
94
+
- Read the environment variables. e.g. `option("env")`.
- Read resources from `option("resource_list")`. The `option("resource_list")` complies with the [KRM Functions Specification](https://kpt.dev/book/05-developing-functions/01-functions-specification). You can read the input resources from `option("resource_list")["items"]` and the `functionConfig` from `option("resource_list")["functionConfig"]`.
107
+
- Read resources from `option("items")`. The `option("items")` complies with the [KRM Functions Specification](https://kpt.dev/book/05-developing-functions/01-functions-specification).
108
108
- Return a KRM list for output resources.
109
109
- Return an error using `assert {condition}, {error_message}`.
110
+
- Read the PATH variables. e.g. `option("PATH")`.
111
+
- Read the environment variables. e.g. `option("env")`.
Copy file name to clipboardExpand all lines: docs/user_docs/guides/working-with-k8s/3-mutate-manifests/6-kcl-operator.md
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -83,9 +83,11 @@ The output is
83
83
84
84
Here's what you can do in the KCL code:
85
85
86
-
- Read resources from `option("resource_list")`. The `option("resource_list")` complies with the [KRM Functions Specification](https://kpt.dev/book/05-developing-functions/01-functions-specification). You can read the input resources from `option("items")` and the params from `option("params")`.
86
+
- Read resources from `option("items")`. The `option("items")` complies with the [KRM Functions Specification](https://kpt.dev/book/05-developing-functions/01-functions-specification).
87
87
- Return a KRM list for output resources.
88
88
- Return an error using `assert {condition}, {error_message}`.
89
+
- Read the PATH variables. e.g. `option("PATH")`.
90
+
- Read the environment variables. e.g. `option("env")`.
Copy file name to clipboardExpand all lines: i18n/zh-CN/docusaurus-plugin-content-docs/current/user_docs/guides/working-with-k8s/3-mutate-manifests/1-kubectl-kcl-plugin.md
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -195,9 +195,11 @@ Ingress should be https. The `kubernetes.io/ingress.allow-http: "false"` annotat
195
195
196
196
Here's what you can do in the KCL code:
197
197
198
-
- Read resources from `option("resource_list")`. The `option("resource_list")` complies with the [KRM Functions Specification](https://kpt.dev/book/05-developing-functions/01-functions-specification). You can read the input resources from `option("resource_list")["items"]` and the `functionConfig` from `option("resource_list")["functionConfig"]`.
198
+
- Read resources from `option("items")`. The `option("items")` complies with the [KRM Functions Specification](https://kpt.dev/book/05-developing-functions/01-functions-specification).
199
199
- Return a KRM list for output resources.
200
200
- Return an error using `assert {condition}, {error_message}`.
201
+
- Read the PATH variables. e.g. `option("PATH")`.
202
+
- Read the environment variables. e.g. `option("env")`.
0 commit comments