Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

<!-- Not all PRs will require all tests to be carried out. Delete where appropriate. --> #52

Closed
wants to merge 48 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
b77166d
Add devctl workflows
spor7y Nov 4, 2022
3f6a6e5
Update changelog for initial release (#4)
ced0ps Nov 4, 2022
c7aac0b
Add values.schema.json (#6)
ced0ps Nov 9, 2022
2b0cf7c
Release v0.1.0 (#5)
github-actions[bot] Nov 9, 2022
1ad028f
Align files (#7)
architectbot Nov 14, 2022
525d5c5
Update chart (#8)
github-actions[bot] Nov 14, 2022
6b2e513
Build chart in ci (#9)
ubergesundheit Nov 15, 2022
39fda20
Re-Release
spor7y Nov 15, 2022
e4a0f78
Release v0.8.0 (#11)
github-actions[bot] Nov 15, 2022
307c855
Fix typo in appCR example in README (#12)
ced0ps Nov 21, 2022
f6c1d83
Align files (#13)
architectbot Nov 22, 2022
f0ad4ca
Align files (#14)
architectbot Dec 7, 2022
b54cb3c
Align files (#15)
architectbot Dec 14, 2022
631c819
Align files (#16)
architectbot Dec 17, 2022
85e97f3
Align files (#18)
architectbot Jan 24, 2023
1aacb80
Align files (#19)
architectbot Feb 7, 2023
bee7357
Align files (#20)
architectbot Feb 22, 2023
e8ca7ed
Update chart from upstream (#21)
github-actions[bot] Mar 9, 2023
3be9c94
Release v0.9.0 (#22)
github-actions[bot] Mar 9, 2023
1fdc906
Align files (#23)
architectbot Mar 15, 2023
a54f2ab
Align files (#24)
architectbot Apr 4, 2023
4b10f09
Align files (#25)
architectbot Apr 14, 2023
caf9f83
Replace icon and add logo (#26)
mcharriere Apr 25, 2023
87fef01
Align files (#27)
architectbot May 2, 2023
74359b8
Align files (#28)
architectbot May 23, 2023
423bf89
Align files (#29)
architectbot May 31, 2023
ec0ff62
Align files (#30)
architectbot Jun 1, 2023
33c2751
Align files (#31)
architectbot Jun 8, 2023
1c30ca5
Update chart from upstream (#32)
taylorbot Jun 9, 2023
46dcc62
Sync chart with upstream. (#33)
taylorbot Jun 13, 2023
77ec710
Release v1.0.0 (#34)
taylorbot Jun 13, 2023
0e9aca4
Align files (#35)
architectbot Jun 16, 2023
f1bd856
Align files (#36)
architectbot Jul 19, 2023
18858ed
Align files (#37)
architectbot Jul 28, 2023
884794f
Align files (#38)
architectbot Aug 4, 2023
289873c
Set better defaults for HA (#39)
mcharriere Aug 15, 2023
3eb7ba1
Release v1.1.0 (#40)
taylorbot Aug 15, 2023
cd70fef
Align files (#41)
architectbot Aug 18, 2023
78f463b
add PodDisruptionBudget for tap and tap injector (#42)
mcharriere Aug 22, 2023
2ce27f6
Release v1.2.0 (#43)
taylorbot Aug 22, 2023
891a325
upgrade to v2.13.6 (#44)
mcharriere Aug 29, 2023
6e4e13d
Release v1.3.0 (#45)
taylorbot Aug 29, 2023
f4b5b7b
Bump actions/checkout from 3 to 4 (#46)
dependabot[bot] Sep 11, 2023
55100d4
Align files (#47)
architectbot Sep 14, 2023
63b6581
Bump actions/checkout from 3 to 4 (#48)
dependabot[bot] Sep 14, 2023
12fceee
Automated update from upstream (#50)
taylorbot Oct 4, 2023
84eed53
Fix default namespaceSelector for tap MutatingWebhookConfiguration. (…
ubergesundheit Oct 5, 2023
69cf25d
add basic test checking deployment status (#51)
mcharriere Oct 5, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .abs/main.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
chart-dir: ./helm/linkerd-viz
replace-chart-version-with-git: true
replace-app-version-with-git: false
generate-metadata: true
chart-dir: ./helm/{APP-NAME}
destination: ./build
catalog-base-url: https://giantswarm.github.io/giantswarm-catalog/
# until we support custom template helper filenames
disable-giantswarm-helm-validator: true
5 changes: 5 additions & 0 deletions .ats/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
app-tests-skip-app-deploy: true

smoke-tests-cluster-config-file: tests/kind_config.yaml
smoke-tests-cluster-type: kind
skip-steps: [functional, upgrade]
28 changes: 20 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,30 @@
version: 2.1
orbs:
architect: giantswarm/architect@2.11.0
architect: giantswarm/architect@4.31.0

workflows:
package-and-push-chart-on-tag:
jobs:
- architect/push-to-app-catalog:
context: "architect"
# executor: "app-build-suite" # uncomment this if you want automatic metadata generation
name: "package and push {APP-NAME} chart"
app_catalog: "giantswarm-playground-catalog"
app_catalog_test: "giantswarm-playground-test-catalog"
chart: "{APP-NAME}"
# Trigger job on git tag.
name: push-to-giantswarm-app-catalog
context: architect
executor: "app-build-suite"
app_catalog: "giantswarm-catalog"
app_catalog_test: "giantswarm-test-catalog"
chart: "linkerd-viz"
persist_chart_archive: true
filters:
# Trigger the job also on git tag.
tags:
only: /^v.*/

- architect/run-tests-with-ats:
name: execute chart tests
app-test-suite_container_tag: "0.2.3"
filters:
# Do not trigger the job on merge to main.
branches:
ignore:
- main
requires:
- push-to-giantswarm-app-catalog
8 changes: 8 additions & 0 deletions .github/.gitleaks.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[allowlist]
description = "Allowlisted files"
files = [
'''^cert-default-values.yaml$''',
'''^\.?gitleaks.toml$''',
'''(.*?)(png|jpg|gif|doc|docx|pdf|bin|xls|pyc|zip)$''',
'''(go.mod|go.sum)$'''
]
25 changes: 25 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# DO NOT EDIT. Generated with:
#
# [email protected]
#
version: 2
updates:
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: weekly
time: "04:00"
open-pull-requests-limit: 10
reviewers:
- giantswarm/team-cabbage
ignore:
- dependency-name: zricethezav/gitleaks-action
- dependency-name: actions/setup-go
- package-ecosystem: pip
directory: "/"
schedule:
interval: weekly
time: "04:00"
open-pull-requests-limit: 10
reviewers:
- giantswarm/team-cabbage
41 changes: 0 additions & 41 deletions .github/workflows/check_values_schema.yaml

This file was deleted.

53 changes: 53 additions & 0 deletions .github/workflows/zz_generated.add-team-labels.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Add appropriate labels to issue

on:
issues:
types: [assigned]

jobs:
build_user_list:
name: Get yaml config of GS users
runs-on: ubuntu-latest
steps:
- name: Get user-mapping
run: |
mkdir -p artifacts
wget --header "Authorization: token ${{ secrets.ISSUE_AUTOMATION }}" \
-O artifacts/users.yaml \
https://raw.githubusercontent.com/giantswarm/github/main/tools/issue-automation/user-mapping.yaml
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: users
path: artifacts/users.yaml
retention-days: 1

add_label:
name: Add team label when assigned
runs-on: ubuntu-latest
needs: build_user_list
steps:
- uses: actions/download-artifact@v3
id: download-users
with:
name: users
- name: Find team label based on user names
run: |
event_assignee=$(cat $GITHUB_EVENT_PATH | jq -r .assignee.login | tr '[:upper:]' '[:lower:]')
echo "Issue assigned to: ${event_assignee}"

TEAMS=$(cat ${{steps.download-users.outputs.download-path}}/users.yaml | tr '[:upper:]' '[:lower:]' | yq ".${event_assignee}.teams" -o csv | tr ',' ' ')

echo "LABEL<<EOF" >> $GITHUB_ENV
for team in ${TEAMS}; do
echo "Team: ${team} | Label: team/${team}"
echo "team/${team}" >> $GITHUB_ENV
done
echo "EOF" >> $GITHUB_ENV
- name: Apply label to issue
if: ${{ env.LABEL != '' }}
uses: actions-ecosystem/action-add-labels@v1
with:
github_token: ${{ secrets.ISSUE_AUTOMATION }}
labels: |
${{ env.LABEL }}
89 changes: 89 additions & 0 deletions .github/workflows/zz_generated.add-to-project-board.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
name: Add Issue to Project when assigned

on:
issues:
types:
- assigned
- labeled

jobs:
build_user_list:
name: Get yaml config of GS users
runs-on: ubuntu-latest
steps:
- name: Get user-mapping
run: |
mkdir -p artifacts
wget --header "Authorization: token ${{ secrets.ISSUE_AUTOMATION }}" \
-O artifacts/users.yaml \
https://raw.githubusercontent.com/giantswarm/github/main/tools/issue-automation/user-mapping.yaml
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: users
path: artifacts/users.yaml
retention-days: 1
- name: Get label-mapping
run: |
mkdir -p artifacts
wget --header "Authorization: token ${{ secrets.ISSUE_AUTOMATION }}" \
-O artifacts/labels.yaml \
https://raw.githubusercontent.com/giantswarm/github/main/tools/issue-automation/label-mapping.yaml
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: labels
path: artifacts/labels.yaml
retention-days: 1

add_to_personal_board:
name: Add issue to personal board
runs-on: ubuntu-latest
needs: build_user_list
if: github.event.action == 'assigned'
steps:
- uses: actions/download-artifact@v3
id: download-users
with:
name: users
- name: Find personal board based on user names
run: |
event_assignee=$(cat $GITHUB_EVENT_PATH | jq -r .assignee.login | tr '[:upper:]' '[:lower:]')
echo "Issue assigned to: ${event_assignee}"

BOARD=($(cat ${{steps.download-users.outputs.download-path}}/users.yaml | tr '[:upper:]' '[:lower:]' | yq ".${event_assignee}.personalboard"))
echo "Personal board URL: ${BOARD}"

echo "BOARD=${BOARD}" >> $GITHUB_ENV
- name: Add issue to personal board
if: ${{ env.BOARD != 'null' && env.BOARD != '' }}
uses: actions/add-to-project@main
with:
project-url: ${{ env.BOARD }}
github-token: ${{ secrets.ISSUE_AUTOMATION }}

add_to_team_board:
name: Add issue to team board
runs-on: ubuntu-latest
needs: build_user_list
if: github.event.action == 'labeled'
steps:
- uses: actions/download-artifact@v3
id: download-labels
with:
name: labels
- name: Find team board based on label
run: |
event_label=$(cat $GITHUB_EVENT_PATH | jq -r .label.name | tr '[:upper:]' '[:lower:]')
echo "Issue labelled with: ${event_label}"

BOARD=($(cat ${{steps.download-labels.outputs.download-path}}/labels.yaml | tr '[:upper:]' '[:lower:]' | yq ".[\"${event_label}\"].projectboard"))
echo "Team board URL: ${BOARD}"

echo "BOARD=${BOARD}" >> $GITHUB_ENV
- name: Add issue to team board
if: ${{ env.BOARD != 'null' && env.BOARD != '' }}
uses: actions/add-to-project@main
with:
project-url: ${{ env.BOARD }}
github-token: ${{ secrets.ISSUE_AUTOMATION }}
53 changes: 53 additions & 0 deletions .github/workflows/zz_generated.check_values_schema.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# DO NOT EDIT. Generated with:
#
# [email protected]
#
name: 'Values and schema'
on:
pull_request:
branches:
- master
- main
paths:
- 'helm/**/values.yaml' # default helm chart values
- 'helm/**/values.schema.json' # schema
- 'helm/**/ci/ci-values.yaml' # overrides for CI (can contain required entries)

push: {}

jobs:
check:
name: 'validate values.yaml against values.schema.json'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install validator
run: |
wget -q -O ${HOME}/yajsv https://github.com/neilpa/yajsv/releases/download/v1.4.1/yajsv.linux.amd64
chmod +x ${HOME}/yajsv

- name: 'Check if values.yaml is a valid instance of values.schema.json'
run: |
for chart_yaml in helm/*/Chart.yaml; do
helm_dir="${chart_yaml%/Chart.yaml}"

if [ ! -f ${helm_dir}/values.schema.json ]; then
echo "Skipping validation for '${helm_dir}' folder, because 'values.schema.json' does not exist..."
continue
fi

values=${helm_dir}/values.yaml
if [ -f ${helm_dir}/ci/ci-values.yaml ]; then
# merge ci-values.yaml into values.yaml (providing required values)
echo -e "\nMerged values:\n=============="
yq '. *= load("'${helm_dir}'/ci/ci-values.yaml")' ${helm_dir}/values.yaml | tee ${helm_dir}/combined-values.yaml
echo -e "\n==============\n"
values=${helm_dir}/combined-values.yaml
fi

${HOME}/yajsv -s ${helm_dir}/values.schema.json ${values}
done
Loading
Loading