diff --git a/config/neoloadexecutor/k8s-neoload-service-manifes.yml b/config/neoloadexecutor/k8s-neoload-service-manifes.yml index 8ca3434..9dcab26 100644 --- a/config/neoloadexecutor/k8s-neoload-service-manifes.yml +++ b/config/neoloadexecutor/k8s-neoload-service-manifes.yml @@ -1,44 +1,38 @@ apiVersion: serving.knative.dev/v1alpha1 kind: Service - metadata: - name: neoload-service - namespace: keptn +metadata: + name: neoload-service + namespace: keptn spec: runLatest: configuration: - build: - apiVersion: build.knative.dev/v1alpha1 - kind: Build + revisionTemplate: metadata: - name: service-builder - namespace: keptn + annotations: + # Disable scale to zero with a minScale of 1. + autoscaling.knative.dev/minScale: "1" spec: - serviceAccountName: build-bot - source: - git: - url: https://github.com/keptn-contrib/neoload-service.git - revision: master - template: - name: neotys - arguments: - - name: IMAGE - value: docker.io/hrexed/keptn_neoload:latest - env: - loging-level: DEBUG + container: + image: docker.io/hrexed/keptn_neoload:latest + env: + loging-level: DEBUG +--- + +# Subscription from the GcpPubSubSource's output Channel to the Knative Service below. + +apiVersion: eventing.knative.dev/v1alpha1 +kind: Subscription +metadata: + name: neoload-keptn-teststarted-subscription + namespace: keptn +spec: + channel: + apiVersion: eventing.knative.dev/v1alpha1 + kind: Channel + name: deployment-finished + subscriber: + ref: + apiVersion: serving.knative.dev/v1alpha1 + kind: Service + name: neoload-service - --- - apiVersion: eventing.knative.dev/v1alpha1 - kind: Subscription - metadata: - name: github-new-artefact-subscription - namespace: keptn - spec: - channel: - apiVersion: eventing.knative.dev/v1alpha1 - kind: Channel - name: deployment-finished - subscriber: - ref: - apiVersion: serving.knative.dev/v1alpha1 - kind: Service - name: neoload-service diff --git a/installer/uninstallNeoLoadService.sh b/installer/uninstallNeoLoadService.sh new file mode 100644 index 0000000..9d11d6a --- /dev/null +++ b/installer/uninstallNeoLoadService.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash +kubectl delete secret neoload -n keptn --ignore-not-found + +# Create dynatrace-service +NL_SERVICE_RELEASE="0.0.1" + +print_info "Delete neoload-service $NL_SERVICE_RELEASE" +# to update the link +kubectl delete -f https://raw.githubusercontent.com/keptn-contrib/neoload-service/$NL_SERVICE_RELEASE/config/neoloadexecutor/k8s-neoload-service-manifes.yml --ignore-not-found