-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update CI to run with kind create cluster. * Update CI to test push KCL package. * Add options of extraArgs and extraVolumes for kind test.' Signed-off-by: Lan Liang <gcslyp@gmail.com>
- Loading branch information
1 parent
7cc5513
commit bf2111a
Showing
10 changed files
with
170 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
|
||
.kclvm | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
# kind-kcl | ||
generate kind configuration with KCL | ||
|
||
Generate the kind configuration with KCL. | ||
|
||
[![Artifact Hub](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/kind-kcl)](https://artifacthub.io/packages/search?repo=kind-kcl) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
version: 0.0.1 | ||
name: kind-kcl | ||
displayName: kind-kcl | ||
createdAt: "2024-07-19T04:14:30Z" | ||
description: '`kind-kcl` is working for generate the kind configuration with KCL.' | ||
links: | ||
- name: KCL homepage | ||
url: https://www.kcl-lang.io/ | ||
- name: KCL repo | ||
url: https://github.com/kcl-lang/kcl | ||
- name: kind homepage | ||
url: https://kind.sigs.k8s.io/ | ||
- name: kubeadm repo | ||
url: https://github.com/kubernetes-sigs/kind | ||
install: | | ||
#### Add `kind-kcl` with tag `0.0.1` as dependency | ||
``` | ||
kcl mod add oci://ghcr.io/liangyuanpeng/kind-kcl --tag 0.0.1 | ||
``` | ||
#### Pull `kind-kcl` with tag `0.0.1` to local | ||
``` | ||
kcl mod pull oci://ghcr.io/liangyuanpeng/kind-kcl --tag 0.0.1 | ||
``` | ||
maintainers: | ||
- name: Lan Liang | ||
email: gcslyp@gmail.com | ||
provider: | ||
name: Lan Liang |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# https://github.com/artifacthub/hub/blob/master/docs/metadata/artifacthub-repo.yml | ||
repositoryID: df1cd444-06be-4109-8cc6-ced2cfb115e5 | ||
owners: | ||
- name: Lan Liang | ||
email: gcslyp@gmail.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
|
||
#TODO cleanup zot | ||
export OCI_REG_PLAIN_HTTP=on | ||
export ZOT_VERSION=${ZOT_VERSION:-"2.1.0"} | ||
docker run -d -p 5000:5000 --name zot ghcr.io/project-zot/zot:v${ZOT_VERSION} | ||
sleep 1 | ||
kcl mod push oci://localhost:5000/kind-kcl | ||
kcl run oci://localhost:5000/kind-kcl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
[package] | ||
name = "tmp" | ||
name = "kind-kcl" | ||
edition = "v0.9.0" | ||
version = "0.0.1" | ||
|
||
[dependencies] | ||
kind = { oci = "oci://ghcr.io/kcl-lang/kind", tag = "0.0.2" } | ||
kubeadm = { oci = "oci://ghcr.io/kcl-lang/kubeadm", tag = "0.0.2" } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[dependencies] | ||
[dependencies.kind] | ||
name = "kind" | ||
full_name = "kind_0.0.2" | ||
version = "0.0.2" | ||
reg = "ghcr.io" | ||
repo = "/kcl-lang/kind" | ||
oci_tag = "0.0.2" | ||
[dependencies.kubeadm] | ||
name = "kubeadm" | ||
full_name = "kubeadm_0.0.2" | ||
version = "0.0.2" | ||
reg = "ghcr.io" | ||
repo = "kcl-lang/kubeadm" | ||
oci_tag = "0.0.2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import kubeadm.v1beta3 as kubeadm | ||
|
||
_kubeadmpatches=[] | ||
|
||
kubeadm.ClusterConfiguration{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters