Skip to content

Commit

Permalink
Update render-helm-charts with example changes. (#943)
Browse files Browse the repository at this point in the history
Co-authored-by: Bharath KKB <[email protected]>
Co-authored-by: Awais Malik <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: g-awmalik <[email protected]>
Co-authored-by: zyy98 <[email protected]>
Co-authored-by: Natasha Sarkar <[email protected]>
Co-authored-by: Snyk bot <[email protected]>
Co-authored-by: Mengqi Yu <[email protected]>
Co-authored-by: Justin Santa Barbara <[email protected]>
Co-authored-by: Wietse Muizelaar <[email protected]>
Co-authored-by: Christopher Fry <[email protected]>
Co-authored-by: sdowell <[email protected]>
  • Loading branch information
13 people authored Nov 1, 2022
1 parent fe4ef77 commit c2aa10b
Show file tree
Hide file tree
Showing 275 changed files with 4,881 additions and 6,598 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ jobs:
GOPATH: /home/runner/work/kpt-functions-catalog/functions/go
GO111MODULE: on
steps:
- name: Set up Go 1.17
- name: Set up Go 1.18
uses: actions/setup-go@v2
with:
go-version: 1.17
go-version: 1.18
id: go
- name: Check out code into GOPATH
uses: actions/checkout@v1
Expand Down Expand Up @@ -92,10 +92,10 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Set up Go 1.17
- name: Set up Go 1.18
uses: actions/setup-go@v2
with:
go-version: 1.17
go-version: 1.18
- name: Install kpt
run: |
go install github.com/GoogleContainerTools/kpt@main
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,16 @@ jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v2
with:
node-version: '16'
node-version: 16
- name: Merge gob branch
run: git worktree add ./gob gob && cp -r gob/* .
node-version: 16
- name: Generate Site
run: make site-generate
- uses: FirebaseExtended/action-hosting-deploy@276388dd6c2cde23455b30293105cc866c22282d # v0
- uses: FirebaseExtended/action-hosting-deploy@4d0d0023f1d92b9b7d16dda64b3d7abd2c98974b
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_KPT_DEV }}'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/verify-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:
- name: Install libs
run: |
pip install pyyaml
- name: Set up Go 1.17
- name: Set up Go 1.18
uses: actions/setup-go@v2
with:
go-version: 1.17
go-version: 1.18
- name: Install mdrip
run: |
go install github.com/monopole/[email protected]
Expand Down
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ check-licenses:
cd contrib/functions/go && $(MAKE) check-licenses
cd contrib/functions/ts && $(MAKE) check-licenses

add-licenses:
cd functions/go && $(MAKE) add-licenses
cd functions/ts && $(MAKE) add-licenses
cd contrib/functions/go && $(MAKE) add-licenses
cd contrib/functions/ts && $(MAKE) add-licenses

verify-docs:
go install github.com/monopole/[email protected]
(cd scripts/patch_reader/ && go build -o patch_reader .)
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@

[Documentation]

[Open an Issue]

[Contributor Guide]

[Release Process]

[Code of Conduct]

Please [open Issues](https://github.com/GoogleContainerTools/kpt/issues) for this repo at [GoogleContainerTools/kpt](https://github.com/GoogleContainerTools/kpt).

[Documentation]: https://catalog.kpt.dev/
[Contributor Guide]: CONTRIBUTING.md
[Code of Conduct]: CODE_OF_CONDUCT.md
Expand Down
46 changes: 28 additions & 18 deletions RELEASING.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,28 +23,38 @@ be created on the [releases pages]. `RELEASE_BRANCH` is in the form of
`${FUNCTION_NAME}/v${MAJOR_VERSION}.${MINOR_VERSION}`.
For example `set-namespace/v0.3`, `kubeval/v0.1`, etc.


1. Run the script:
1. Setup the release branch
Release branch should have existed in the [upstream repo](https://github.com/GoogleContainerTools/kpt-functions-catalog) in the form of `<FUNCTION_NAME>/v<MAJOR>.<MINOR>`. Let's take `set-namespace/v0.4` as an example. You should replace that to your RELEASE_BRANCH.
```shell
> export RELEASE_BRANCH=set-namespace/v0.4
```
2. Clean up the local branch
The release script needs to run in the local <RELEASE BRANCH>. To avoid git ref conflicts, we suggest you delete your local branch OR make it up to date with the remote <RELEASE BRANCH>
```shell
> git branch -D ${RELEASE_BRANCH}
```
3. Fetch the upstream repository
Your `upstream` repo should point to the official kpt-functions-catalog. Verify your git remote is set as below
```shell
> git remote -v | grep upstream
upstream [email protected]:GoogleContainerTools/kpt-functions-catalog.git (fetch)
upstream [email protected]:GoogleContainerTools/kpt-functions-catalog.git (push)
# Fetch the latest upstream repo
> git fetch upstream
```
4. Run the doc updating script.
```shell
# Fetch from upstream (assuming upstream is set to official repo)
git fetch upstream
# Make sure local release branch is up to date
# e.g. git checkout set-namespace/v0.3 && git reset --hard upstream/set-namespace/v0.3
git checkout <RELEASE_BRANCH> && git reset --hard upstream/<RELEASE_BRANCH>
# Check out latest version of the make target from master
git checkout upstream/master
# Run the make target
# e.g. RELEASE_BRANCH=set-namespace/v0.3 make update-function-docs
RELEASE_BRANCH=<RELEASE_BRANCH> make update-function-docs
git checkout remotes/upstream/master
RELEASE_BRANCH=${RELEASE_BRANCH} make update-function-docs
```
1. The script will generate a new commit in your local repository which updates
the docs for the provided function release. Push this commit to your remote.
5. Send out a Pull Request.
Your local git reference is now pointing to the local RELEASE BRANCH.
A new git commit is auto-generated which contains the function document referring to the latest function version in the form of
`<FUNCTION_NAME>/v<MAJOR>.<MINOR>.<PATCH>`
You should be ready to submit the Pull Request against the upstream <RELEASE_BRANCH>.
```shell
# Push the commit to your remote (branch name can be anything)
# e.g. git push origin HEAD:update-docs-set-namespace
git push origin HEAD:<remote-branch>
> git push -f origin ${RELEASE_BRANCH}
```
1. Create a pull request targeted at the release branch.

[repo]: https://github.com/GoogleContainerTools/kpt-functions-catalog
[releases pages]: https://github.com/GoogleContainerTools/kpt-functions-catalog/releases
Expand Down
2 changes: 1 addition & 1 deletion build/docker/go/defaults.env
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
BUILDER_IMAGE=golang:1.17-alpine3.15
BUILDER_IMAGE=golang:1.18-alpine3.15
BASE_IMAGE=alpine:3.15
1 change: 0 additions & 1 deletion build/docker/ts/defaults.env
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
BUILDER_IMAGE=node:14.19-alpine3.15
KUBEVAL_BUILDER_IMAGE=golang:1.17-alpine3.15
BASE_IMAGE=node:14.19-alpine3.15
5 changes: 4 additions & 1 deletion contrib/functions/go/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ $(FUNCTION_PUSH):
.PHONY: check-licenses
check-licenses: install-go-licenses $(FUNCTION_CHECKLICENSES)

add-licenses:
@echo Update license in path: contrib/functions/go
GOBIN=$(GOBIN) ../../../hack/update-license.sh

.PHONY: $(FUNCTION_CHECKLICENSES)
$(FUNCTION_CHECKLICENSES):
$(MAKE) CURRENT_FUNCTION=$(subst -CHECKLICENSES,,$@) func-check-licenses
Expand Down Expand Up @@ -131,4 +135,3 @@ func-push:

docs-generate:
$(GOBIN)/mdtogo $(CURRENT_FUNCTION) $(CURRENT_FUNCTION)/generated --license=none --strategy=cmdDocs

5 changes: 5 additions & 0 deletions contrib/functions/ts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
SHELL=/bin/bash
TAG ?= unstable
GCR = gcr.io/kpt-fn-contrib
GOBIN := $(shell go env GOPATH)/bin

.DEFAULT_GOAL := help
.PHONY: help
Expand Down Expand Up @@ -66,6 +67,10 @@ $(FUNCTION_PUSH):

check-licenses: $(FUNCTION_CHECKLICENSES) ## Run license checker for source files

add-licenses:
@echo Update license in path: contrib/functions/ts
GOBIN=$(GOBIN) ../../../hack/update-license.sh

.PHONY: $(FUNCTION_CHECKLICENSES)
$(FUNCTION_CHECKLICENSES):
$(MAKE) CURRENT_FUNCTION=$(subst -CHECKLICENSES,,$@) func-check-licenses
Expand Down
8 changes: 4 additions & 4 deletions contrib/functions/ts/analyze-istio/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions contrib/functions/ts/sops/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c2aa10b

Please sign in to comment.