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/reference/lang/codelab/schema.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -574,7 +574,7 @@ However, usually, the actual situation is more complicated, and the deployment m
574
574
For example, we want to support a persistent volume claim based on an existing schema, as a reusable Kubernetes schema. In this case, we can just wrapper it with a `mixin` and a `protocol` as follows:
Copy file name to clipboardExpand all lines: docs/reference/lang/tour.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1878,15 +1878,15 @@ schema Server:
1878
1878
workloadType : str, default is Deployment
1879
1879
Use this attribute to specify which kind of long-running service you want.
1880
1880
Valid values: Deployment, CafeDeployment.
1881
-
See also: kusion_models/core/v1/workload_metadata.k.
1881
+
See also: k8s/core/v1/workload_metadata.k.
1882
1882
name : str, default is None
1883
1883
A Server-level attribute.
1884
1884
The name of the long-running service.
1885
-
See also: kusion_models/core/v1/metadata.k.
1885
+
See also: k8s/core/v1/metadata.k.
1886
1886
labels : {str:str}, optional, default is None
1887
1887
A Server-level attribute.
1888
1888
The labels of the long-running service.
1889
-
See also: kusion_models/core/v1/metadata.k.
1889
+
See also: k8s/core/v1/metadata.k.
1890
1890
1891
1891
Examples
1892
1892
----------------------
@@ -2937,7 +2937,7 @@ kcl_cli_configs:
2937
2937
output: ./stdout.golden
2938
2938
kcl_options:
2939
2939
- key: image
2940
-
value: docker.io/kusion:latest
2940
+
value: docker.io/kcllang/kcl:latest
2941
2941
```
2942
2942
2943
2943
KCL CLI -Y parameters also support multi-file configuration, and support separate writing and merging of compilation parameters and option top level arguments parameter configuration.
@@ -2965,7 +2965,7 @@ kcl_cli_configs:
2965
2965
```yaml
2966
2966
kcl_options:
2967
2967
- key: image
2968
-
value: docker.io/kusion:latest
2968
+
value: docker.io/kcllang/kcl:latest
2969
2969
```
2970
2970
2971
2971
We can use the following command line to get the meaning of each configuration parameter or see KCL Quick Start
Copy file name to clipboardExpand all lines: docs/reference/plugin/overview.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,13 +14,13 @@ Using the KCL Python plugin requires the presence of `Python 3.7+` in your `PATH
14
14
15
15
## 1. Hello Plugin
16
16
17
-
KCL plugins are installed in the `plugins` subdirectory of KCL (usually installed in the `$HOME/.kusion/kclvm/plugins` directory), or set through the `$KCL_PLUGINS_ROOT` environment variable. Besides, the `plugins` directory could also be placed at the `pwd` path. KCL plugins are managed in the Git repository: [https://github.com/kcl-lang/kcl-plugin](https://github.com/kcl-lang/kcl-plugin), we can clone the repository for development.
17
+
KCL plugins are installed in the `plugins` subdirectory of KCL (usually installed in the `$HOME/.kcl/plugins` directory), or set through the `$KCL_PLUGINS_ROOT` environment variable. Besides, the `plugins` directory could also be placed at the `pwd` path. KCL plugins are managed in the Git repository: [https://github.com/kcl-lang/kcl-plugin](https://github.com/kcl-lang/kcl-plugin), we can clone the repository for development.
18
18
19
19
Enter the `kcl-plugin info` command to view the plugin directory (replace `/Users/kcl_user` with the local `$HOME` path):
Copy file name to clipboardExpand all lines: docs/user_docs/guides/package-management/4-share_your_pkg.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Share Your Package
2
2
3
-
[kpm](https://github.com/KusionStack/kpm) is a tool for managing kcl packages. This article will guide you on how to use kpm to push your kcl package to an OCI Registry for publication. kpm uses [ghcr.io](https://ghcr.io) as the default OCI Registry, and you can change the default OCI Registry by modifying the kpm configuration file. For information on how to modify the kpm configuration file, see [kpm oci registry](https://github.com/kcl-lang/kpm/blob/main/docs/kpm_oci.md#kpm-registry)
3
+
[kpm](https://github.com/kcl-lang/kpm) is a tool for managing kcl packages. This article will guide you on how to use kpm to push your kcl package to an OCI Registry for publication. kpm uses [ghcr.io](https://ghcr.io) as the default OCI Registry, and you can change the default OCI Registry by modifying the kpm configuration file. For information on how to modify the kpm configuration file, see [kpm oci registry](https://github.com/kcl-lang/kpm/blob/main/docs/kpm_oci.md#kpm-registry)
4
4
5
5
Here is a simple step-by-step guide on how to use kpm to push your kcl package to ghcr.io.
Copy file name to clipboardExpand all lines: docs/user_docs/support/faq-kcl.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2242,7 +2242,7 @@ data_type_list:
2242
2242
2243
2243
## 49. How to develop a KCL plugin?
2244
2244
2245
-
KCL plugins are installed in the plugins subdirectory of KCL (usually installed in the `$HOME/.kusion/kclvm/plugins` directory), or set through the `$KCL_PLUGINS_ROOT` environment variable. Besides, the `plugins` directory could also be placed at the `pwd` path. For plugin developers, plugins are managed in the [Git repository](https://github.com/kcl-lang/kcl-plugin), and the plugin repository can be cloned to this directory for development.
2245
+
KCL plugins are installed in the plugins subdirectory of KCL (usually installed in the `$HOME/.kcl/plugins` directory), or set through the `$KCL_PLUGINS_ROOT` environment variable. Besides, the `plugins` directory could also be placed at the `pwd` path. For plugin developers, plugins are managed in the [Git repository](https://github.com/kcl-lang/kcl-plugin), and the plugin repository can be cloned to this directory for development.
2246
2246
2247
2247
KCL has built-in kcl-plugin scaffolding command to assist users to write KCL plug-ins in Python language, so that the corresponding plug-ins can be called in the KCL file to enhance the KCL language itself, such as accessing the network, reading and writing IO, CMDB query and encryption and decryption functions.
0 commit comments