Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Upgrade to Keptn 0.17 #9

Merged
merged 5 commits into from
Jul 11, 2022
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
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
46 changes: 25 additions & 21 deletions .github/workflows/integration_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,27 +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 }}
HELM_VALUES: |
control-plane:
apiGatewayNginx:
type: LoadBalancer
features:
automaticProvisioningURL: http://keptn-gitea-provisioner-service.default # Keptn 0.16 compatability
automaticProvisioning:
serviceURL: http://keptn-gitea-provisioner-service.default
KUBECONFIG: ${{ env.KUBECONFIG }}

- name: Test connection to keptn
run: |
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: Generate Gitea credentials
id: gitea_credentials
run: |
Expand Down Expand Up @@ -138,6 +117,31 @@ jobs:
--set gitea.admin.password=${GITEA_ADMIN_PASSWORD} \
--wait

- 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: |
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_API_URL }}
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ This repository contains a reference implementation for a [Keptn extension which
| Keptn Version* | [Keptn-Service-Template-Go Docker Image](https://hub.docker.com/r/keptn-sandbox/keptn-gitea-provisioner-service/tags) |
|:--------------:|:---------------------------------------------------------------------------------------------------------------------:|
| 0.15, 0.16 | keptn-sandbox/keptn-gitea-provisioner-service:0.1.0 |
| 0.17.0 | keptn-sandbox/keptn-gitea-provisioner-service:0.1.1 |

\* This is the Keptn version we aim to be compatible with. Other versions should work too, but there is no guarantee.

Expand All @@ -22,8 +23,8 @@ instance:
VERSION=0.1.0
NAMESPACE=default
GITEA_ENDPOINT="http://gitea-http.${NAMESPACE}:3000/"
GITEA_ADMIN_USERNAME=#Define a username for the admin
GITEA_ADMIN_PASSWORD=#Define a password for the admin
GITEA_ADMIN_USERNAME=#Define a username for the admin
GITEA_ADMIN_PASSWORD=#Define a password for the admin

helm install keptn-gitea-provisioner-service https://github.com/keptn-sandbox/keptn-gitea-provisioner-service/releases/download/${VERSION}/keptn-gitea-provisioner-service-${VERSION}.tgz \
--set gitea.admin.create=true \
Expand Down Expand Up @@ -62,7 +63,7 @@ instance:

# Keptn 0.17
helm upgrade -n keptn keptn keptn/keptn \
--set "control-plane.features.automaticProvisioning.serviceURL=http://keptn-gitea-provisioner-service.${NAMESPACE}"
--set "features.automaticProvisioning.serviceURL=http://keptn-gitea-provisioner-service.${NAMESPACE}"

# Keptn 0.16
helm upgrade -n keptn keptn keptn/keptn \
Expand Down