-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sync render-helm-chart/v0.2 with the latest changes in master (#1026)
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]> Co-authored-by: Anthony Poschen <[email protected]> Co-authored-by: Christopher Fry <[email protected]> Co-authored-by: Andrew Peabody <[email protected]> Co-authored-by: Morten Torkildsen <[email protected]> Co-authored-by: wvl <[email protected]> fix:adds log-sink writer id to the export-terraform fn (#884) fix: upgrade prettier from 2.6.0 to 2.7.1 (#896) fix: upgrade @types/jasmine from 3.10.5 to 3.10.6 (#897) fix: upgrade typescript from 4.5.2 to 4.7.4 (#894) fix: upgrade prettier from 2.6.1 to 2.7.1 (#900) fix a git ref conflict caused by HEAD hard reset (#860) Fix some incorrect/duplicate go.mod paths (#920) fix function (#925) Fix several issues on `set-labels` (#928) fix error message (#932) fix: GitHub Action deprecates Node.js 12 (#940) fix: Revert the Gob cleanup for `preview-hierarchy` function (#942) fix fn (#945) fix: make 'gcloud' as optional in Makefile for ko push (#947) fix: Add ko installation in Makefile (#948) fix: guarantee ko installation in fn Makefile (#950) fix: guarantee ko installation in fn Makefile (#951) fix (#949) fix branch when generating the function catalog (#955) fix CLI example (#968) fix issue with parsing helm output (#1024)
- Loading branch information
Showing
85 changed files
with
599 additions
and
110 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,36 @@ | ||
# Copyright 2022 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
name: Run the CD script after pushes to branches | ||
on: | ||
push: | ||
branches: | ||
- "master" | ||
|
||
jobs: | ||
build: | ||
name: after-push-to-branch | ||
runs-on: ubuntu-latest | ||
permissions: | ||
packages: write | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: '1.19.3' | ||
- run: go version | ||
- name: dev/cd/after-branch-push | ||
run: GIT_REF=${GITHUB_REF} IMAGE_REPO=ghcr.io/${{ github.repository }} dev/cd/after-push-to-branch | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,36 @@ | ||
# Copyright 2022 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
name: Run the CD script after tags that look like versions | ||
on: | ||
push: | ||
tags: | ||
- "**/v[0-9]+.*" | ||
|
||
jobs: | ||
build: | ||
name: after-tag-with-version | ||
runs-on: ubuntu-latest | ||
permissions: | ||
packages: write | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: '1.19.3' | ||
- run: go version | ||
- name: dev/cd/after-tag-push | ||
run: GIT_REF=${GITHUB_REF} IMAGE_REPO=ghcr.io/${{ github.repository }} dev/cd/after-tag-with-version | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
Donny Xia <[email protected]> | ||
Eyob Tefera <[email protected]> | ||
Frank Farzan <[email protected]> | ||
Mengqi Yu <[email protected]> | ||
Morten Torkildsen <[email protected]> | ||
Sunil Arora <[email protected]> | ||
Yuwen Ma <[email protected]> | ||
Natasha Sarkar <[email protected]> | ||
Justin Santa Barbara <[email protected]> |
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,44 @@ | ||
#!/bin/bash | ||
|
||
set -o errexit | ||
set -o nounset | ||
set -o pipefail | ||
|
||
if [ -z "${GIT_REF}" ]; then | ||
echo "GIT_REF must be set" | ||
exit 1 | ||
fi | ||
|
||
if [[ ! "${GIT_REF}" =~ ^refs/heads/.* ]]; then | ||
echo "GIT_REF=${GIT_REF} is not of the expected format refs/heads/*" | ||
exit 1 | ||
fi | ||
|
||
BRANCH=${GIT_REF/refs\/heads\//} | ||
echo "BRANCH is ${BRANCH}" | ||
|
||
REF=$(git rev-parse --short HEAD) | ||
echo "REF is ${REF}" | ||
|
||
# We push two tags, <branchname>-latest and <branchname>-git-$GITSHA | ||
# The idea is that if you want the latest version from that branch, | ||
# you'll use the first form, if you want a particular version | ||
# you can use the second form. | ||
# | ||
# We also map main-latest to just "latest" (another reason for people to rename master -> main) | ||
BRANCH_IMAGE_TAG="${BRANCH}-latest" | ||
if [[ "${BRANCH_IMAGE_TAG}" == "main-latest" ]]; then | ||
BRANCH_IMAGE_TAG="latest" | ||
fi | ||
REF_IMAGE_TAG="${BRANCH}-git-${REF}" | ||
export IMAGE_TAG="${REF_IMAGE_TAG},${BRANCH_IMAGE_TAG}" | ||
echo "IMAGE_TAG is ${IMAGE_TAG}" | ||
|
||
# We identify functions that follow this new approach by the presence of the krm-fn-metadata.yaml file. | ||
find . -type f -name "krm-fn-metadata.yaml" -print0 | while IFS= read -r -d '' f; do | ||
dir=$(dirname "${f}") | ||
echo "directory: ${dir}" | ||
pushd "${dir}" | ||
make push | ||
popd | ||
done |
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,31 @@ | ||
#!/bin/bash | ||
|
||
set -o errexit | ||
set -o nounset | ||
set -o pipefail | ||
|
||
if [ -z "${GIT_REF}" ]; then | ||
echo "GIT_REF must be set" | ||
exit 1 | ||
fi | ||
|
||
if [[ ! "${GIT_REF}" =~ ^refs/tags/.* ]]; then | ||
echo "GIT_REF=${GIT_REF} is not of the expected format refs/tags/*" | ||
exit 1 | ||
fi | ||
|
||
TAG=${GIT_REF/refs\/tags\//} | ||
echo "TAG is ${TAG}" | ||
|
||
VERSION=${TAG##*/} | ||
PREFIX=${TAG%/*} | ||
echo "PREFIX is ${PREFIX}, VERSION is ${VERSION}" | ||
|
||
if [[ ! -d "${PREFIX}" ]]; then | ||
echo "Directory ${PREFIX} is not found" | ||
exit 1 | ||
fi | ||
|
||
export IMAGE_TAG=${VERSION} | ||
cd "${PREFIX}" | ||
make push |
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
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
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
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
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
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
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
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
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
Oops, something went wrong.