generated from keptn-sandbox/keptn-service-template-go
-
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.
* feat: Upgrade to Keptn 0.17 Signed-off-by: TannerGabriel <[email protected]> * Change Keptn connection check in Integration tests Signed-off-by: TannerGabriel <[email protected]> * Change Keptn endpoint for Integration tests Signed-off-by: TannerGabriel <[email protected]> * Fix Keptn installation in integration tests Signed-off-by: TannerGabriel <[email protected]>
- Loading branch information
1 parent
86b5315
commit a69e43c
Showing
2 changed files
with
32 additions
and
25 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 |
---|---|---|
|
@@ -16,7 +16,7 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
keptn-version: [ "0.15.1", "0.16.0"] # https://github.com/keptn/keptn/releases | ||
keptn-version: [ "0.15.1", "0.16.0", "0.17.0"] # https://github.com/keptn/keptn/releases | ||
env: | ||
GO_VERSION: 1.17 | ||
GO111MODULE: "on" | ||
|
@@ -68,19 +68,6 @@ jobs: | |
done; | ||
echo "K3s ready!!!" | ||
- name: Install Keptn | ||
id: install_keptn | ||
uses: keptn-sandbox/[email protected] | ||
timeout-minutes: 10 | ||
with: | ||
KEPTN_VERSION: ${{ matrix.keptn-version }} | ||
KEPTN_INSTALL_PARAMETERS: -v --endpoint-service-type=LoadBalancer | ||
KUBECONFIG: ${{ env.KUBECONFIG }} | ||
|
||
- name: Test connection to keptn | ||
run: | | ||
curl -X GET "${{ steps.install_keptn.outputs.KEPTN_ENDPOINT }}/v1/metadata" -H "accept: application/json" -H "x-token: ${{ steps.install_keptn.outputs.KEPTN_API_TOKEN }}" | ||
- name: Generate Gitea credentials | ||
id: gitea_credentials | ||
run: | | ||
|
@@ -130,19 +117,34 @@ jobs: | |
--set gitea.admin.password=${GITEA_ADMIN_PASSWORD} \ | ||
--wait | ||
- name: Use Provisioner Service in Keptn | ||
- name: Install Keptn | ||
id: install_keptn | ||
uses: keptn-sandbox/[email protected] | ||
timeout-minutes: 10 | ||
with: | ||
KEPTN_VERSION: ${{ matrix.keptn-version }} | ||
HELM_VALUES: | | ||
# Keptn 0.17 and newer | ||
apiGatewayNginx: | ||
type: LoadBalancer | ||
features: | ||
automaticProvisioning: | ||
serviceURL: http://keptn-gitea-provisioner-service.default | ||
# Keptn 0.16 compatibility | ||
control-plane: | ||
apiGatewayNginx: | ||
type: LoadBalancer | ||
features: | ||
automaticProvisioningURL: http://keptn-gitea-provisioner-service.default | ||
KUBECONFIG: ${{ env.KUBECONFIG }} | ||
|
||
- name: Test connection to keptn | ||
run: | | ||
# get keptn helm chart | ||
helm repo add keptn https://charts.keptn.sh | ||
helm repo update | ||
# reconfigure Keptn installation (Todo: This should eventually be part of the keptn-sandbox/action-install-keptn action) | ||
helm upgrade --install keptn keptn/keptn -n keptn --create-namespace --version=$KEPTN_VERSION --reuse-values \ | ||
--set=control-plane.features.automaticProvisioningURL=http://keptn-gitea-provisioner-service.default | ||
curl -X GET "${{ steps.install_keptn.outputs.KEPTN_API_URL }}/v1/metadata" -H "accept: application/json" -H "x-token: ${{ steps.install_keptn.outputs.KEPTN_API_TOKEN }}" | ||
- name: Run integration tests | ||
env: | ||
KEPTN_ENDPOINT: ${{ steps.install_keptn.outputs.KEPTN_ENDPOINT }} | ||
KEPTN_ENDPOINT: ${{ steps.install_keptn.outputs.KEPTN_API_URL }} | ||
KEPTN_API_TOKEN: ${{ steps.install_keptn.outputs.KEPTN_API_TOKEN }} | ||
GITEA_ADMIN_PASSWORD: ${{ steps.gitea_credentials.outputs.GITEA_ADMIN_PASSWORD }} | ||
GITEA_ENDPOINT: ${{ steps.gitea.outputs.GITEA_ENDPOINT }} | ||
|
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