forked from Kong/charts
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: use ktf for ct related tests (Kong#865)
Co-authored-by: Travis Raines <[email protected]>
- Loading branch information
Showing
16 changed files
with
28 additions
and
47 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,6 +38,9 @@ jobs: | |
|
||
lint-test: | ||
runs-on: ubuntu-latest | ||
env: | ||
# Specify this here because these tests rely on ktf to run kind for cluster creation. | ||
KIND_VERSION: v0.20.0 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
@@ -61,23 +64,13 @@ jobs: | |
- name: Set up chart-testing | ||
uses: helm/[email protected] | ||
|
||
- name: Run chart-testing (list-changed) | ||
id: list-changed | ||
run: | | ||
changed=$(ct list-changed) | ||
if [[ -n "$changed" ]]; then | ||
echo "changed=true" >> $GITHUB_OUTPUT | ||
fi | ||
- name: Run chart-testing (lint) | ||
run: ct lint --check-version-increment=false | ||
|
||
- name: Create kind cluster | ||
uses: helm/[email protected] | ||
# if: steps.list-changed.outputs.changed == 'true' | ||
# TODO for some reason, the earlier chart-testing logic is never seeing any changes, though running it locally | ||
# does show changes. This remains a mystery between a lack of any debug logging, but simply running tests | ||
# always is fine | ||
- name: setup testing environment (kind-cluster) | ||
env: | ||
KUBERNETES_VERSION: ${{ matrix.kubernetes-version }} | ||
run: ./scripts/test-env.sh | ||
|
||
- name: Run chart-testing (install) | ||
run: ct install --charts charts/kong | ||
|
@@ -86,7 +79,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
env: | ||
# Specify this here because these tests rely on ktf to run kind for cluster creation. | ||
KIND_VERSION: v0.19.0 | ||
KIND_VERSION: v0.20.0 | ||
strategy: | ||
matrix: | ||
kubernetes-version: | ||
|
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,18 @@ | ||
admin: | ||
enabled: true | ||
type: ClusterIP | ||
|
||
# Stub config to make the instance become ready | ||
dblessConfig: | ||
config: | | ||
_format_version: "1.1" | ||
services: | ||
- name: example.com | ||
url: http://example.com | ||
routes: | ||
- name: example | ||
paths: | ||
- "/example" | ||
ingressController: | ||
enabled: false |
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
charts/kong/ci/custom-labels.yaml → charts/kong/ci/custom-labels-values.yaml
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,6 +1,3 @@ | ||
|
||
# install chart with some extra labels | ||
|
||
extraLabels: | ||
acme.com/some-key: some-value | ||
|
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,7 +1,4 @@ | ||
# install chart with default values | ||
proxy: | ||
type: NodePort | ||
|
||
env: | ||
anonymous_reports: "off" | ||
ingressController: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
# CI test for using ingress hosts configuration | ||
proxy: | ||
type: NodePort | ||
ingress: | ||
enabled: true | ||
hosts: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
ingressController: | ||
enabled: false | ||
|
||
proxy: | ||
type: NodePort | ||
|
||
image: | ||
repository: kong/kong-gateway | ||
tag: "3.4.0.0" | ||
|
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