diff --git a/.github/workflows/ah-lint.yaml b/.github/workflows/ah-lint.yaml index adc05d75..7ca39b76 100644 --- a/.github/workflows/ah-lint.yaml +++ b/.github/workflows/ah-lint.yaml @@ -1,3 +1,5 @@ +# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json + name: ArtifactHub Lint # permissions: {} diff --git a/.github/workflows/check-actions.yaml b/.github/workflows/check-actions.yaml index 3fb1da97..ec57946b 100644 --- a/.github/workflows/check-actions.yaml +++ b/.github/workflows/check-actions.yaml @@ -1,3 +1,5 @@ +# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json + name: Check actions # permissions: {} diff --git a/.github/workflows/codegen.yaml b/.github/workflows/codegen.yaml index 92633d26..c31b4f5c 100644 --- a/.github/workflows/codegen.yaml +++ b/.github/workflows/codegen.yaml @@ -1,3 +1,5 @@ +# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json + name: Verify codegen # permissions: {} diff --git a/.github/workflows/ct-lint.yaml b/.github/workflows/ct-lint.yaml index 738fb56f..42ca8f0c 100644 --- a/.github/workflows/ct-lint.yaml +++ b/.github/workflows/ct-lint.yaml @@ -1,3 +1,5 @@ +# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json + name: CT Lint # permissions: {} diff --git a/.github/workflows/helm-install.yaml b/.github/workflows/helm-install.yaml index 01da90ad..01605eb3 100644 --- a/.github/workflows/helm-install.yaml +++ b/.github/workflows/helm-install.yaml @@ -1,3 +1,5 @@ +# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json + name: Helm install # permissions: {} diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index a3bbf66f..b9405008 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -1,3 +1,5 @@ +# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json + name: Lint # permissions: {} diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 20e0ddab..d21a0b08 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,3 +1,5 @@ +# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json + name: Release on: diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 89108f0c..05a06d19 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -1,3 +1,5 @@ +# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json + name: Tests # permissions: {} diff --git a/release-notes/_template.md b/.release-notes/_template.md similarity index 100% rename from release-notes/_template.md rename to .release-notes/_template.md diff --git a/release-notes/main.md b/.release-notes/main.md similarity index 100% rename from release-notes/main.md rename to .release-notes/main.md diff --git a/release-notes/v0.0.1.md b/.release-notes/v0.0.1.md similarity index 100% rename from release-notes/v0.0.1.md rename to .release-notes/v0.0.1.md diff --git a/Makefile b/Makefile index de5b50df..89184bd0 100644 --- a/Makefile +++ b/Makefile @@ -129,7 +129,7 @@ build: $(CLI_BIN) ## Build .PHONY: build-wasm build-wasm: fmt vet codegen-crds codegen-deepcopy codegen-register codegen-client ## Build the wasm binary @echo Build wasm module... >&2 - @GOOS=js GOARCH=wasm go build -o ./website/playground/assets/main.wasm -ldflags=$(LD_FLAGS) ./cmd/wasm/main.go + @GOOS=js GOARCH=wasm go build -o ./website/playground/assets/main.wasm -ldflags=$(LD_FLAGS) ./wasm/main.go .PHONY: serve-playground serve-playground: $(CLI_BIN) ## Serve playground @@ -140,7 +140,7 @@ serve-playground: $(CLI_BIN) ## Serve playground ko-build: $(KO) ## Build image (with ko) @echo Build image with ko... >&2 @LDFLAGS=$(LD_FLAGS) KOCACHE=$(KO_CACHE) KO_DOCKER_REPO=$(KO_REGISTRY) \ - $(KO) build ./$(CLI_DIR) --preserve-import-paths --tags=$(KO_TAGS) --platform=$(LOCAL_PLATFORM) + $(KO) build . --preserve-import-paths --tags=$(KO_TAGS) --platform=$(LOCAL_PLATFORM) ########### # CODEGEN # @@ -333,14 +333,14 @@ kind-delete: $(KIND) ## Delete kind cluster .PHONY: kind-load kind-load: $(KIND) ko-build ## Build image and load in kind cluster @echo Load image... >&2 - @$(KIND) load docker-image --name $(KIND_NAME) $(KO_REGISTRY)/$(PACKAGE)/$(CLI_DIR):$(GIT_SHA) + @$(KIND) load docker-image --name $(KIND_NAME) $(KO_REGISTRY)/$(PACKAGE):$(GIT_SHA) .PHONY: kind-install kind-install: $(HELM) kind-load ## Build image, load it in kind cluster and deploy helm chart @echo Install chart... >&2 @$(HELM) upgrade --install kyverno-json --namespace kyverno-json --create-namespace --wait ./charts/kyverno-json \ --set image.registry=$(KO_REGISTRY) \ - --set image.repository=$(PACKAGE)/$(CLI_DIR) \ + --set image.repository=$(PACKAGE) \ --set image.tag=$(GIT_SHA) ########### diff --git a/docs/dev/release/README.md b/docs/dev/release/README.md index e9e8039d..3529fbc6 100644 --- a/docs/dev/release/README.md +++ b/docs/dev/release/README.md @@ -18,8 +18,8 @@ git push origin $TAG ## Release notes -Release notes for the `main` branch lives in [main.md](../../release-notes/main.md). +Release notes for the `main` branch lives in [main.md](../../.release-notes/main.md). Make sure it is up to date and rename the file to the version being released. -You can then copy [_template.md](../../release-notes/_template.md) to [main.md](../../release-notes/main.md) for the next release. +You can then copy [_template.md](../../.release-notes/_template.md) to [main.md](../../.release-notes/main.md) for the next release. diff --git a/cmd/wasm/main.go b/wasm/main.go similarity index 100% rename from cmd/wasm/main.go rename to wasm/main.go