From c8d5b394f4c3a9a95bf8a12c7fed732d55df1c2e Mon Sep 17 00:00:00 2001 From: Sam Yuan Date: Wed, 10 Jul 2024 21:57:58 +0800 Subject: [PATCH 1/2] update on git ignore file to avoid local venv settings Signed-off-by: Sam Yuan --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index a84068c..6c3a9ba 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,9 @@ kube-prometheus/ .vscode/ .idea/ *.iml +bin/ +lib/python3.12 +pyvenv.cfg # Logs logs From ef6883ee1c09be5fad6e444da0b56177e2320cd2 Mon Sep 17 00:00:00 2001 From: Sam Yuan Date: Wed, 10 Jul 2024 22:18:53 +0800 Subject: [PATCH 2/2] update document and disable markdown hook as image pull fail Signed-off-by: Sam Yuan --- .pre-commit-config.yaml | 18 +++++++++--------- README.md | 4 ++++ 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cbd49ab..9b7c40e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,15 +7,15 @@ repos: - id: check-yaml - id: end-of-file-fixer - id: trailing-whitespace -- repo: https://github.com/markdownlint/markdownlint.git - rev: v0.13.0 - hooks: - - id: markdownlint_docker - name: Markdownlint Docker - description: Run markdown lint on your Markdown files using the project docker image - language: docker_image - files: \.(md|mdown|markdown)$ - entry: markdownlint/markdownlint +#- repo: https://github.com/markdownlint/markdownlint.git +# rev: v0.13.0 +# hooks: + #- id: markdownlint_docker + #name: Markdownlint Docker + #description: Run markdown lint on your Markdown files using the project docker image + #language: docker_image + #files: \.(md|mdown|markdown)$ + #entry: markdownlint/markdownlint - repo: https://github.com/shellcheck-py/shellcheck-py rev: v0.10.0.1 hooks: diff --git a/README.md b/README.md index 07e62d5..2f3f0b4 100644 --- a/README.md +++ b/README.md @@ -37,12 +37,15 @@ Will setup container runtime on your host instance. ## Startup +**note**: in 2024 July, we decoupled cluster config with kind cluster setup, so that we allow this repo to set up a existing cluster. + 1. Modify kind [config](./kind/manifests/kind.yml) to make sure `extraMounts:` cover the linux header and BCC. 2. To setup local env run: ```bash ./main.sh up + ./main.sh config ``` 3. To tear down local env run: @@ -67,6 +70,7 @@ Will setup container runtime on your host instance. ```sh ./main.sh up + ./main.sh config ``` ## Container registry