diff --git a/.one-pipeline.yaml b/.one-pipeline.yaml index 7a5dbb74..d491d016 100644 --- a/.one-pipeline.yaml +++ b/.one-pipeline.yaml @@ -10,7 +10,9 @@ setup: cp operators/scripts/pipeline/* ./scripts/pipeline/ cp -rf operators/scripts/build ./scripts/ - + cp -rf operators/scripts/configure-cluster ./scripts + cp -rf operators/scripts/test ./scripts/ + ./scripts/pipeline/code-setup-stage.sh detect-secrets: @@ -122,39 +124,7 @@ acceptance-test: echo $STAGE - PERIODIC_SCAN=$(get_env periodic-rescan) - PERIODIC_SCAN="$(echo "$PERIODIC_SCAN" | tr '[:upper:]' '[:lower:]')" - - if [[ ! -z "$PERIODIC_SCAN" && "$PERIODIC_SCAN" != "false" && "$PERIODIC_SCAN" != "no" ]]; then - echo "Skipping acceptance-test. This is a periodic run that is only meant to produce CVE information." - exit 0 - fi - - SKIP_ACCEPTANCE_TEST=$(get_env SKIP_ACCEPTANCE_TEST) - SKIP_ACCEPTANCE_TEST="$(echo "$SKIP_ACCEPTANCE_TEST" | tr '[:upper:]' '[:lower:]')" - if [[ ! -z "$SKIP_ACCEPTANCE_TEST" && "$SKIP_ACCEPTANCE_TEST" != "false" && "$SKIP_ACCEPTANCE_TEST" != "no" ]]; then - echo "Skipping acceptance-test, SKIP_ACCEPTANCE_TEST=$SKIP_ACCEPTANCE_TEST" - exit 0 - fi - - export intranetId_USR=$(get_env ebc_id) - export intranetId_PSW=$(get_env ebc_pw) - export ebcEnvironment=prod - - cd scripts/pipeline - rm -rf .git - git clone https://$(get_env git-token)@github.ibm.com/elastic-build-cloud/ebc-gateway-http.git - - export arch=$(get_env architecture) - export test_arch=$(get_env test-architecture) - - if [[ "$test_arch" == "ZXP" && "$arch" == "ZXP" ]]; then - source runTest.sh Z - source runTest.sh X - source runTest.sh P - else - source runTest.sh X - fi + ./scripts/pipeline/acceptance-test-stage.sh scan-artifact: abort_on_failure: false diff --git a/Makefile b/Makefile index 48cbc153..d2db9914 100644 --- a/Makefile +++ b/Makefile @@ -332,7 +332,7 @@ catalog-build: opm ## Build a catalog image. $(OPM) index add $(SKIP_TLS_VERIFY) --container-tool $(CONTAINER_COMMAND) --mode semver --tag $(CATALOG_IMG) --bundles $(BUNDLE_IMGS) $(FROM_INDEX_OPT) --permissive kind-e2e-test: - ./scripts/e2e-kind.sh --test-tag "${TRAVIS_BUILD_NUMBER}" + ./scripts/test/e2e-kind.sh --test-tag "${TRAVIS_BUILD_NUMBER}" build-manifest: setup-manifest ./scripts/build/build-manifest.sh --registry "${PUBLISH_REGISTRY}" --image "${OPERATOR_IMAGE}" --tag "${RELEASE_TARGET}" @@ -354,7 +354,7 @@ test-e2e: --test-tag "${TRAVIS_BUILD_NUMBER}" --target "${RELEASE_TARGET}" test-pipeline-e2e: - ./scripts/pipeline/ocp-cluster-e2e.sh -u "${DOCKER_USERNAME}" -p "${DOCKER_PASSWORD}" \ + ./scripts/test/e2e-ocp.sh -u "${DOCKER_USERNAME}" -p "${DOCKER_PASSWORD}" \ --cluster-url "${CLUSTER_URL}" --cluster-user "${CLUSTER_USER}" --cluster-token "${CLUSTER_TOKEN}" \ --registry-name "${PIPELINE_REGISTRY}" --registry-image "${PIPELINE_OPERATOR_IMAGE}" \ --registry-user "${PIPELINE_USERNAME}" --registry-password "${PIPELINE_PASSWORD}" \ diff --git a/bundle/tests/scorecard/config.yaml b/bundle/tests/scorecard/config.yaml deleted file mode 100644 index 081757b4..00000000 --- a/bundle/tests/scorecard/config.yaml +++ /dev/null @@ -1,77 +0,0 @@ -apiVersion: scorecard.operatorframework.io/v1alpha3 -kind: Configuration -metadata: - name: config -stages: -- parallel: true - tests: - - entrypoint: - - scorecard-test - - basic-check-spec - image: quay.io/operator-framework/scorecard-test:v1.1.0 - labels: - suite: basic - test: basic-check-spec-test - storage: - spec: - mountPath: {} - - entrypoint: - - scorecard-test - - olm-bundle-validation - image: quay.io/operator-framework/scorecard-test:v1.1.0 - labels: - suite: olm - test: olm-bundle-validation-test - storage: - spec: - mountPath: {} - - entrypoint: - - scorecard-test - - olm-crds-have-validation - image: quay.io/operator-framework/scorecard-test:v1.1.0 - labels: - suite: olm - test: olm-crds-have-validation-test - storage: - spec: - mountPath: {} - - entrypoint: - - scorecard-test - - olm-crds-have-resources - image: quay.io/operator-framework/scorecard-test:v1.1.0 - labels: - suite: olm - test: olm-crds-have-resources-test - storage: - spec: - mountPath: {} - - entrypoint: - - scorecard-test - - olm-spec-descriptors - image: quay.io/operator-framework/scorecard-test:v1.1.0 - labels: - suite: olm - test: olm-spec-descriptors-test - storage: - spec: - mountPath: {} - - entrypoint: - - scorecard-test - - olm-status-descriptors - image: quay.io/operator-framework/scorecard-test:v1.1.0 - labels: - suite: olm - test: olm-status-descriptors-test - storage: - spec: - mountPath: {} - - image: quay.io/operator-framework/scorecard-test-kuttl:latest - labels: - suite: kuttlsuite - test: basic-test - storage: - spec: - mountPath: {} -storage: - spec: - mountPath: {} diff --git a/bundle/tests/scorecard/kind-kuttl/ingress-certificate/00-assert.yaml b/bundle/tests/scorecard/kind-kuttl/ingress-certificate/00-assert.yaml deleted file mode 100644 index 3c30523e..00000000 --- a/bundle/tests/scorecard/kind-kuttl/ingress-certificate/00-assert.yaml +++ /dev/null @@ -1,10 +0,0 @@ -apiVersion: v1 -kind: Secret -type: kubernetes.io/tls -metadata: - name: ingress-tls-secret -data: - ca.crt: Y2FjcnQK - destCA.crt: ZGVzdENBY3J0Cg== - tls.crt: dGxzY3J0Cg== - tls.key: dGxza2V5Cg== diff --git a/bundle/tests/scorecard/kind-kuttl/ingress-certificate/00-secret.yaml b/bundle/tests/scorecard/kind-kuttl/ingress-certificate/00-secret.yaml deleted file mode 100644 index 3ca51e38..00000000 --- a/bundle/tests/scorecard/kind-kuttl/ingress-certificate/00-secret.yaml +++ /dev/null @@ -1,14 +0,0 @@ -apiVersion: v1 -kind: Secret -metadata: - name: ingress-tls-secret -type: kubernetes.io/tls -data: - # 'tlscrt' - tls.crt: dGxzY3J0Cg== - # 'tlskey' - tls.key: dGxza2V5Cg== - # 'cacrt' - ca.crt: Y2FjcnQK - # 'destCAcrt' - destCA.crt: ZGVzdENBY3J0Cg== diff --git a/bundle/tests/scorecard/kind-kuttl/ingress-certificate/01-assert.yaml b/bundle/tests/scorecard/kind-kuttl/ingress-certificate/01-assert.yaml deleted file mode 100644 index 9c393a47..00000000 --- a/bundle/tests/scorecard/kind-kuttl/ingress-certificate/01-assert.yaml +++ /dev/null @@ -1,24 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: ingress-with-cert-rc -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 ---- -kind: Ingress -apiVersion: networking.k8s.io/v1 -metadata: - name: ingress-with-cert-rc -spec: - tls: - - hosts: - - myapp.mycompany.com - secretName: ingress-tls-secret - rules: - - host: myapp.mycompany.com - http: - paths: - - path: / - pathType: Prefix diff --git a/bundle/tests/scorecard/kind-kuttl/ingress-certificate/01-rc-with-cert.yaml b/bundle/tests/scorecard/kind-kuttl/ingress-certificate/01-rc-with-cert.yaml deleted file mode 100644 index 1f9fd4d8..00000000 --- a/bundle/tests/scorecard/kind-kuttl/ingress-certificate/01-rc-with-cert.yaml +++ /dev/null @@ -1,16 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: ingress-with-cert-rc -spec: - # Add fields here - applicationImage: registry.k8s.io/pause:3.2 - replicas: 1 - expose: true - route: - host: myapp.mycompany.com - path: "/" - pathType: Prefix - certificateSecretRef: ingress-tls-secret - termination: reencrypt - diff --git a/bundle/tests/scorecard/kind-kuttl/ingress-certificate/02-assert.yaml b/bundle/tests/scorecard/kind-kuttl/ingress-certificate/02-assert.yaml deleted file mode 100644 index 27d90be5..00000000 --- a/bundle/tests/scorecard/kind-kuttl/ingress-certificate/02-assert.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: ingress-with-cert-rc -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 diff --git a/bundle/tests/scorecard/kind-kuttl/ingress-certificate/02-delete-route.yaml b/bundle/tests/scorecard/kind-kuttl/ingress-certificate/02-delete-route.yaml deleted file mode 100644 index 8a63bd9a..00000000 --- a/bundle/tests/scorecard/kind-kuttl/ingress-certificate/02-delete-route.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: ingress-with-cert-rc -spec: - # Add fields here - expose: false - diff --git a/bundle/tests/scorecard/kind-kuttl/ingress-certificate/02-errors.yaml b/bundle/tests/scorecard/kind-kuttl/ingress-certificate/02-errors.yaml deleted file mode 100644 index 9f7099ed..00000000 --- a/bundle/tests/scorecard/kind-kuttl/ingress-certificate/02-errors.yaml +++ /dev/null @@ -1,4 +0,0 @@ -kind: Ingress -apiVersion: networking.k8s.io/v1 -metadata: - name: ingress-with-cert-rc diff --git a/bundle/tests/scorecard/kind-kuttl/ingress-certificate/03-delete-secret.yaml b/bundle/tests/scorecard/kind-kuttl/ingress-certificate/03-delete-secret.yaml deleted file mode 100644 index 91995c17..00000000 --- a/bundle/tests/scorecard/kind-kuttl/ingress-certificate/03-delete-secret.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: kuttl.dev/v1beta1 -kind: TestStep -delete: -- apiVersion: rc.app.stacks/v1 - kind: RuntimeComponent -- apiVersion: v1 - kind: Secret - name: ingress-tls-secret - diff --git a/bundle/tests/scorecard/kind-kuttl/ingress-manage-tls/00-assert.yaml b/bundle/tests/scorecard/kind-kuttl/ingress-manage-tls/00-assert.yaml deleted file mode 100644 index dbb2f07e..00000000 --- a/bundle/tests/scorecard/kind-kuttl/ingress-manage-tls/00-assert.yaml +++ /dev/null @@ -1,64 +0,0 @@ -# Check creation of CertManager certificates and secret -apiVersion: cert-manager.io/v1 -kind: Certificate -metadata: - labels: - app.kubernetes.io/managed-by: runtime-component-operator -spec: - commonName: Runtime Component Operator - isCA: true ---- -apiVersion: cert-manager.io/v1 -kind: Certificate -metadata: - name: manage-tls-rc-svc-tls-cm -spec: - secretName: manage-tls-rc-svc-tls-cm ---- -kind: Secret -apiVersion: v1 -metadata: - annotations: - cert-manager.io/certificate-name: manage-tls-rc-svc-tls-cm - name: manage-tls-rc-svc-tls-cm ---- -# Verify the pod template spec uses *-cm naming convention -apiVersion: apps/v1 -kind: Deployment -metadata: - name: manage-tls-rc -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 -spec: - template: - spec: - containers: - - env: - - name: TLS_DIR - value: /etc/x509/certs - - name: SA_RESOURCE_VERSION - - name: SERVICE_CERT_SECRET_RESOURCE_VERSION - volumeMounts: - - name: svc-certificate - mountPath: /etc/x509/certs - readOnly: true - volumes: - - name: svc-certificate - secret: - defaultMode: 420 - secretName: manage-tls-rc-svc-tls-cm ---- -apiVersion: v1 -kind: Service -metadata: - name: manage-tls-rc ---- -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - name: manage-tls-rc -spec: - rules: - - host: runtimecomponentoperator.test diff --git a/bundle/tests/scorecard/kind-kuttl/ingress-manage-tls/00-certmanager-with-manage-tls.yaml b/bundle/tests/scorecard/kind-kuttl/ingress-manage-tls/00-certmanager-with-manage-tls.yaml deleted file mode 100644 index f1d94ebd..00000000 --- a/bundle/tests/scorecard/kind-kuttl/ingress-manage-tls/00-certmanager-with-manage-tls.yaml +++ /dev/null @@ -1,14 +0,0 @@ -# Verify that manageTLS=true is enabled by default -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: manage-tls-rc -spec: - applicationImage: registry.k8s.io/pause:3.2 - replicas: 1 - expose: true - service: - port: 9443 - route: - host: runtimecomponentoperator.test - termination: reencrypt \ No newline at end of file diff --git a/bundle/tests/scorecard/kind-kuttl/ingress-manage-tls/01-assert.yaml b/bundle/tests/scorecard/kind-kuttl/ingress-manage-tls/01-assert.yaml deleted file mode 100644 index 34657dc9..00000000 --- a/bundle/tests/scorecard/kind-kuttl/ingress-manage-tls/01-assert.yaml +++ /dev/null @@ -1,29 +0,0 @@ -kind: Deployment -apiVersion: apps/v1 -metadata: - name: manage-tls-rc -spec: - template: - spec: - containers: - - ports: - - name: 9443-tcp - containerPort: 9443 - protocol: TCP -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 ---- -apiVersion: v1 -kind: Service -metadata: - name: manage-tls-rc ---- -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - name: manage-tls-rc -spec: - rules: - - host: runtimecomponentoperator.test diff --git a/bundle/tests/scorecard/kind-kuttl/ingress-manage-tls/01-certmanager-without-manage-tls.yaml b/bundle/tests/scorecard/kind-kuttl/ingress-manage-tls/01-certmanager-without-manage-tls.yaml deleted file mode 100644 index e43fb231..00000000 --- a/bundle/tests/scorecard/kind-kuttl/ingress-manage-tls/01-certmanager-without-manage-tls.yaml +++ /dev/null @@ -1,14 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: manage-tls-rc -spec: - applicationImage: registry.k8s.io/pause:3.2 - replicas: 1 - expose: true - manageTLS: false # Deletes the *-svc-tls-cm CertManager Certificate - service: - port: 9443 - route: - host: runtimecomponentoperator.test - termination: reencrypt \ No newline at end of file diff --git a/bundle/tests/scorecard/kind-kuttl/ingress-manage-tls/01-errors.yaml b/bundle/tests/scorecard/kind-kuttl/ingress-manage-tls/01-errors.yaml deleted file mode 100644 index 4115f002..00000000 --- a/bundle/tests/scorecard/kind-kuttl/ingress-manage-tls/01-errors.yaml +++ /dev/null @@ -1,33 +0,0 @@ -# Verify that CertManager Certificate *-svc-tls-cm is deleted -apiVersion: cert-manager.io/v1 -kind: Certificate -metadata: - name: manage-tls-rc-svc-tls-cm ---- -# Verify that the pod template spec does not manage TLS -apiVersion: apps/v1 -kind: Deployment -metadata: - name: manage-tls-rc -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 -spec: - template: - spec: - containers: - - env: - - name: TLS_DIR - value: /etc/x509/certs - - name: SA_RESOURCE_VERSION - - name: SERVICE_CERT_SECRET_RESOURCE_VERSION - volumeMounts: - - name: svc-certificate - mountPath: /etc/x509/certs - readOnly: true - volumes: - - name: svc-certificate - secret: - defaultMode: 420 - secretName: manage-tls-rc-svc-tls-cm diff --git a/bundle/tests/scorecard/kind-kuttl/ingress-manage-tls/02-assert.yaml b/bundle/tests/scorecard/kind-kuttl/ingress-manage-tls/02-assert.yaml deleted file mode 100644 index 6181bc98..00000000 --- a/bundle/tests/scorecard/kind-kuttl/ingress-manage-tls/02-assert.yaml +++ /dev/null @@ -1,48 +0,0 @@ -# Verify that the deleted Certificate has been restored -apiVersion: cert-manager.io/v1 -kind: Certificate -metadata: - name: manage-tls-rc-svc-tls-cm -spec: - secretName: manage-tls-rc-svc-tls-cm ---- -# Verify the pod template spec defaults and that secretName uses *-cm naming convention -apiVersion: apps/v1 -kind: Deployment -metadata: - name: manage-tls-rc -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 -spec: - template: - spec: - containers: - - env: - - name: TLS_DIR - value: /etc/x509/certs - - name: SA_RESOURCE_VERSION - - name: SERVICE_CERT_SECRET_RESOURCE_VERSION - volumeMounts: - - name: svc-certificate - mountPath: /etc/x509/certs - readOnly: true - volumes: - - name: svc-certificate - secret: - defaultMode: 420 - secretName: manage-tls-rc-svc-tls-cm ---- -kind: Service -apiVersion: v1 -metadata: - name: manage-tls-rc ---- -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - name: manage-tls-rc -spec: - rules: - - host: runtimecomponentoperator.test diff --git a/bundle/tests/scorecard/kind-kuttl/ingress-manage-tls/02-certmanager-with-manage-tls.yaml b/bundle/tests/scorecard/kind-kuttl/ingress-manage-tls/02-certmanager-with-manage-tls.yaml deleted file mode 100644 index 89036444..00000000 --- a/bundle/tests/scorecard/kind-kuttl/ingress-manage-tls/02-certmanager-with-manage-tls.yaml +++ /dev/null @@ -1,14 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: manage-tls-rc -spec: - applicationImage: registry.k8s.io/pause:3.2 - replicas: 1 - expose: true - manageTLS: true # Restore default - service: - port: 9443 - route: - host: runtimecomponentoperator.test - termination: reencrypt \ No newline at end of file diff --git a/bundle/tests/scorecard/kind-kuttl/ingress-manage-tls/03-assert.yaml b/bundle/tests/scorecard/kind-kuttl/ingress-manage-tls/03-assert.yaml deleted file mode 100644 index fdb72d2c..00000000 --- a/bundle/tests/scorecard/kind-kuttl/ingress-manage-tls/03-assert.yaml +++ /dev/null @@ -1,42 +0,0 @@ -# Verify the pod template spec defaults and that secretName uses *-cm naming convention -apiVersion: apps/v1 -kind: StatefulSet -metadata: - name: manage-tls-rc -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 -spec: - template: - spec: - containers: - - env: - - name: TLS_DIR - value: /etc/x509/certs - - name: SA_RESOURCE_VERSION - - name: SERVICE_CERT_SECRET_RESOURCE_VERSION - volumeMounts: - - name: svc-certificate - mountPath: /etc/x509/certs - readOnly: true - - name: pvc - mountPath: /mnt/data - volumes: - - name: svc-certificate - secret: - defaultMode: 420 - secretName: manage-tls-rc-svc-tls-cm ---- -kind: Service -apiVersion: v1 -metadata: - name: manage-tls-rc ---- -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - name: manage-tls-rc -spec: - rules: - - host: runtimecomponentoperator.test diff --git a/bundle/tests/scorecard/kind-kuttl/ingress-manage-tls/03-certmanager-statefulset-with-manage-tls.yaml b/bundle/tests/scorecard/kind-kuttl/ingress-manage-tls/03-certmanager-statefulset-with-manage-tls.yaml deleted file mode 100644 index 7cada121..00000000 --- a/bundle/tests/scorecard/kind-kuttl/ingress-manage-tls/03-certmanager-statefulset-with-manage-tls.yaml +++ /dev/null @@ -1,17 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: manage-tls-rc -spec: - applicationImage: registry.k8s.io/pause:3.2 - replicas: 1 - expose: true - service: - port: 9443 - statefulSet: - storage: - size: "10Mi" - mountPath: "/mnt/data" - route: - host: runtimecomponentoperator.test - termination: reencrypt \ No newline at end of file diff --git a/bundle/tests/scorecard/kind-kuttl/ingress-manage-tls/03-errors.yaml b/bundle/tests/scorecard/kind-kuttl/ingress-manage-tls/03-errors.yaml deleted file mode 100644 index e075486e..00000000 --- a/bundle/tests/scorecard/kind-kuttl/ingress-manage-tls/03-errors.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: manage-tls-rc \ No newline at end of file diff --git a/bundle/tests/scorecard/kind-kuttl/ingress-manage-tls/04-assert.yaml b/bundle/tests/scorecard/kind-kuttl/ingress-manage-tls/04-assert.yaml deleted file mode 100644 index 0ec6f216..00000000 --- a/bundle/tests/scorecard/kind-kuttl/ingress-manage-tls/04-assert.yaml +++ /dev/null @@ -1,27 +0,0 @@ -apiVersion: v1 -kind: Secret -metadata: - name: byo-svc-secret -data: - ca.crt: >- - LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUJjVENDQVJlZ0F3SUJBZ0lSQUxHaWxjbTVwZGlKZG9VVWNQVjZtSlF3Q2dZSUtvWkl6ajBFQXdJd0dERVcKTUJRR0ExVUVBeE1OYldGdVlXZGxMWFJzY3kxeVl6QWVGdzB5TWpBMk1qY3lNRFU0TlRKYUZ3MHlNakE1TWpVeQpNRFU0TlRKYU1CZ3hGakFVQmdOVkJBTVREVzFoYm1GblpTMTBiSE10Y21Nd1dUQVRCZ2NxaGtqT1BRSUJCZ2dxCmhrak9QUU1CQndOQ0FBU3BvZDJrc3B4eUNNZ3BST2ZRdFl5UkpxRG04YjArZWNkNXM3VUJJZ090bU52UExBankKUUl0MGlTczRHSTlkVGJSVHR4bnhLVUxCNjJDSlJZZFBGUjA2bzBJd1FEQU9CZ05WSFE4QkFmOEVCQU1DQXFRdwpEd1lEVlIwVEFRSC9CQVV3QXdFQi96QWRCZ05WSFE0RUZnUVVJQnVORm5sT3lmVnRjYUp0YXVxVWljdUlDYnN3CkNnWUlLb1pJemowRUF3SURTQUF3Ul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OXRjRzl1ClpXNTBiM0JsY21GMGIzSXVkR1Z6ZERCWk1CTUdCeXFHU000OUFnRUdDQ3FHU000OUF3RUhBMElBQklCcmRNMW0KdzVIdEZzOE1WYmJhM1pQWVp6YzMvQzBEcXJGdloralc5QjM2ZEN0TW1iLzVINFo5ZjlhRzRBcTBNZklMT1BSdQpqUk9vMlZmTGN4ZTZKbytqUWpCQU1BNEdBMVVkRHdFQi93UUVBd0lDcERBUEJnTlZIUk1CQWY4RUJUQURBUUgvCk1CMEdBMVVkRGdRV0JCU2pIS2pvVVEvSHNvcHJPbDhjK0p4OHhqZFRLVEFLQmdncWhrak9QUVFEQWdOSUFEQkYKQWlFQWhmSktPYnNLUzVZZnhBYkdpL3NrVzVSVlZzRjdCV1pkNlpOZjJydkxPZDhDSUJIeEY1UHNldm1VUU94SApFSlZxZmlMZEZkbjVFNVhZYnV4Z2pIdFQxeE5JCi0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K - tls.key: >- - LS0tLS1CRUdJTiBFQyBQUklWQVRFIEtFWS0tLS0tCk1IY0NBUUVFSUVuSmFPa1F0cFVSd3o4ZWVBQnNRbTZjdDI3bWd5R01zM3BmcDh2a21EOFBvQW9HQ0NxR1NNNDkKQXdFSG9VUURRZ0FFZ0d0MHpXYkRrZTBXend4VnR0cmRrOWhuTnpmOExRT3FzVzluNk5iMEhmcDBLMHladi9rZgpobjEvMW9iZ0NyUXg4Z3M0OUc2TkU2alpWOHR6RjdvbWp3PT0KLS0tLS1FTkQgRUMgUFJJVkFURSBLRVktLS0tLQo= -type: kubernetes.io/tls diff --git a/bundle/tests/scorecard/kind-kuttl/ingress-manage-tls/04-secrets.yaml b/bundle/tests/scorecard/kind-kuttl/ingress-manage-tls/04-secrets.yaml deleted file mode 100644 index 2fc0d526..00000000 --- a/bundle/tests/scorecard/kind-kuttl/ingress-manage-tls/04-secrets.yaml +++ /dev/null @@ -1,27 +0,0 @@ -apiVersion: v1 -kind: Secret -metadata: - name: byo-svc-secret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jVFNVhZYnV4Z2pIdFQxeE5JCi0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K - tls.key: >- - LS0tLS1CRUdJTiBFQyBQUklWQVRFIEtFWS0tLS0tCk1IY0NBUUVFSUVuSmFPa1F0cFVSd3o4ZWVBQnNRbTZjdDI3bWd5R01zM3BmcDh2a21EOFBvQW9HQ0NxR1NNNDkKQXdFSG9VUURRZ0FFZ0d0MHpXYkRrZTBXend4VnR0cmRrOWhuTnpmOExRT3FzVzluNk5iMEhmcDBLMHladi9rZgpobjEvMW9iZ0NyUXg4Z3M0OUc2TkU2alpWOHR6RjdvbWp3PT0KLS0tLS1FTkQgRUMgUFJJVkFURSBLRVktLS0tLQo= -type: kubernetes.io/tls \ No newline at end of file diff --git a/bundle/tests/scorecard/kind-kuttl/ingress-manage-tls/05-assert.yaml b/bundle/tests/scorecard/kind-kuttl/ingress-manage-tls/05-assert.yaml deleted file mode 100644 index 05fb911a..00000000 --- a/bundle/tests/scorecard/kind-kuttl/ingress-manage-tls/05-assert.yaml +++ /dev/null @@ -1,46 +0,0 @@ -# Verify the pod template spec defaults and that secretName uses BYO secret -apiVersion: apps/v1 -kind: StatefulSet -metadata: - name: manage-tls-rc -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 -spec: - template: - spec: - containers: - - env: - - name: TLS_DIR - value: /etc/x509/certs - - name: SA_RESOURCE_VERSION - - name: SERVICE_CERT_SECRET_RESOURCE_VERSION - volumeMounts: - - name: svc-certificate - mountPath: /etc/x509/certs - readOnly: true - - name: pvc - mountPath: /mnt/data - volumes: - - name: svc-certificate - secret: - defaultMode: 420 - secretName: byo-svc-secret ---- -apiVersion: v1 -kind: Service -metadata: - name: manage-tls-rc ---- -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - name: manage-tls-rc -spec: - tls: - - hosts: - - runtimecomponentoperator.test - secretName: byo-route-secret - rules: - - host: runtimecomponentoperator.test diff --git a/bundle/tests/scorecard/kind-kuttl/ingress-manage-tls/05-byo-with-manage-tls.yaml b/bundle/tests/scorecard/kind-kuttl/ingress-manage-tls/05-byo-with-manage-tls.yaml deleted file mode 100644 index 420af4bd..00000000 --- a/bundle/tests/scorecard/kind-kuttl/ingress-manage-tls/05-byo-with-manage-tls.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: manage-tls-rc -spec: - applicationImage: registry.k8s.io/pause:3.2 - replicas: 1 - expose: true - service: - certificateSecretRef: byo-svc-secret - port: 9443 - route: - certificateSecretRef: byo-route-secret - host: runtimecomponentoperator.test - termination: reencrypt diff --git a/bundle/tests/scorecard/kind-kuttl/ingress-manage-tls/06-delete.yaml b/bundle/tests/scorecard/kind-kuttl/ingress-manage-tls/06-delete.yaml deleted file mode 100644 index a68b50f0..00000000 --- a/bundle/tests/scorecard/kind-kuttl/ingress-manage-tls/06-delete.yaml +++ /dev/null @@ -1,7 +0,0 @@ -apiVersion: kuttl.dev/v1beta1 -kind: TestStep -delete: -- apiVersion: rc.app.stacks/v1 - kind: RuntimeComponent - metadata: - name: manage-tls-rc diff --git a/bundle/tests/scorecard/kind-kuttl/ingress-manage-tls/README.txt b/bundle/tests/scorecard/kind-kuttl/ingress-manage-tls/README.txt deleted file mode 100644 index 4a326fcb..00000000 --- a/bundle/tests/scorecard/kind-kuttl/ingress-manage-tls/README.txt +++ /dev/null @@ -1,5 +0,0 @@ -In order to run this test, the cluster must -have a storage class enabled - -In order to run this test, the user must -ensure the two self-signed certificates (`byo-svc-secret` and `byo-route-secret`) have not yet expired (June 22, 2032) \ No newline at end of file diff --git a/bundle/tests/scorecard/kind-kuttl/ingress/00-assert.yaml b/bundle/tests/scorecard/kind-kuttl/ingress/00-assert.yaml deleted file mode 100644 index 6621bedf..00000000 --- a/bundle/tests/scorecard/kind-kuttl/ingress/00-assert.yaml +++ /dev/null @@ -1,21 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: ingress -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 ---- -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - name: ingress -spec: - rules: - - host: myapp.mycompany.com - http: - paths: - - path: / - pathType: Prefix - diff --git a/bundle/tests/scorecard/kind-kuttl/ingress/00-ingress.yaml b/bundle/tests/scorecard/kind-kuttl/ingress/00-ingress.yaml deleted file mode 100644 index 4ca6caa4..00000000 --- a/bundle/tests/scorecard/kind-kuttl/ingress/00-ingress.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: ingress -spec: - # Add fields here - applicationImage: registry.k8s.io/pause:3.2 - replicas: 1 - expose: true - route: - host: myapp.mycompany.com - path: "/" - pathType: Prefix diff --git a/bundle/tests/scorecard/kind-kuttl/ingress/01-assert.yaml b/bundle/tests/scorecard/kind-kuttl/ingress/01-assert.yaml deleted file mode 100644 index 22bca235..00000000 --- a/bundle/tests/scorecard/kind-kuttl/ingress/01-assert.yaml +++ /dev/null @@ -1,21 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: ingress -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 ---- -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - name: ingress -spec: - rules: - - host: myapp.mycompany.com - http: - paths: - - path: / - pathType: ImplementationSpecific - diff --git a/bundle/tests/scorecard/kind-kuttl/ingress/01-default-pathtype.yaml b/bundle/tests/scorecard/kind-kuttl/ingress/01-default-pathtype.yaml deleted file mode 100644 index 5de7df28..00000000 --- a/bundle/tests/scorecard/kind-kuttl/ingress/01-default-pathtype.yaml +++ /dev/null @@ -1,10 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: ingress -spec: - # Add fields here - route: - host: myapp.mycompany.com - path: "/" - pathType: diff --git a/bundle/tests/scorecard/kind-kuttl/ingress/02-assert.yaml b/bundle/tests/scorecard/kind-kuttl/ingress/02-assert.yaml deleted file mode 100644 index 8902dd48..00000000 --- a/bundle/tests/scorecard/kind-kuttl/ingress/02-assert.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: ingress -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 diff --git a/bundle/tests/scorecard/kind-kuttl/ingress/02-delete-ingress.yaml b/bundle/tests/scorecard/kind-kuttl/ingress/02-delete-ingress.yaml deleted file mode 100644 index fb13ef66..00000000 --- a/bundle/tests/scorecard/kind-kuttl/ingress/02-delete-ingress.yaml +++ /dev/null @@ -1,10 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: ingress -spec: - # Add fields here - applicationImage: registry.k8s.io/pause:3.2 - replicas: 1 - expose: false - diff --git a/bundle/tests/scorecard/kind-kuttl/ingress/02-errors.yaml b/bundle/tests/scorecard/kind-kuttl/ingress/02-errors.yaml deleted file mode 100644 index 170731d5..00000000 --- a/bundle/tests/scorecard/kind-kuttl/ingress/02-errors.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - name: ingress diff --git a/bundle/tests/scorecard/kuttl/affinity/00-assert.yaml b/bundle/tests/scorecard/kuttl/affinity/00-assert.yaml deleted file mode 100644 index ef89e0d6..00000000 --- a/bundle/tests/scorecard/kuttl/affinity/00-assert.yaml +++ /dev/null @@ -1,19 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: affinity-rc -spec: - template: - spec: - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: kuttlTest - operator: In - values: - - error -status: - replicas: 1 - unavailableReplicas: 1 diff --git a/bundle/tests/scorecard/kuttl/affinity/00-errors.yaml b/bundle/tests/scorecard/kuttl/affinity/00-errors.yaml deleted file mode 100644 index 7b57af43..00000000 --- a/bundle/tests/scorecard/kuttl/affinity/00-errors.yaml +++ /dev/null @@ -1,7 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: affinity-rc -spec: -status: - readyReplicas: 1 diff --git a/bundle/tests/scorecard/kuttl/affinity/00-node-no-affinity.yaml b/bundle/tests/scorecard/kuttl/affinity/00-node-no-affinity.yaml deleted file mode 100644 index 3291d327..00000000 --- a/bundle/tests/scorecard/kuttl/affinity/00-node-no-affinity.yaml +++ /dev/null @@ -1,11 +0,0 @@ -# Test to see that if affinity is setup but there is no matching label, no pod is readied -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: affinity-rc -spec: - applicationImage: registry.k8s.io/pause:3.2 - replicas: 1 - affinity: - nodeAffinityLabels: - kuttlTest: error diff --git a/bundle/tests/scorecard/kuttl/affinity/01-assert.yaml b/bundle/tests/scorecard/kuttl/affinity/01-assert.yaml deleted file mode 100644 index 6267d09e..00000000 --- a/bundle/tests/scorecard/kuttl/affinity/01-assert.yaml +++ /dev/null @@ -1,42 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: affinity-rc -spec: - template: - spec: - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: kuttlTest - operator: In - values: - - test1 -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 ---- -apiVersion: apps/v1 -kind: StatefulSet -metadata: - name: affinity-other-rc -spec: - template: - spec: - affinity: - podAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: app.kubernetes.io/instance - operator: In - values: - - affinity-rc - topologyKey: kubernetes.io/hostname -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 diff --git a/bundle/tests/scorecard/kuttl/affinity/01-node-pod-affinity.yaml b/bundle/tests/scorecard/kuttl/affinity/01-node-pod-affinity.yaml deleted file mode 100644 index d84ebf2a..00000000 --- a/bundle/tests/scorecard/kuttl/affinity/01-node-pod-affinity.yaml +++ /dev/null @@ -1,32 +0,0 @@ -# Check that if there is a matching node affinity lab a pod is created -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: affinity-rc -spec: - affinity: - nodeAffinityLabels: - kuttlTest: test1 ---- -# Check if there is a matching pod affinity a correct statefulset is created and status has a readied pod -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: affinity-other-rc -spec: - applicationImage: registry.k8s.io/pause:3.2 - replicas: 1 - affinity: - podAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: app.kubernetes.io/instance - operator: In - values: - - affinity-rc - topologyKey: kubernetes.io/hostname - statefulSet: - storage: - size: "10Mi" - mountPath: "/mnt/data" diff --git a/bundle/tests/scorecard/kuttl/affinity/02-delete.yaml b/bundle/tests/scorecard/kuttl/affinity/02-delete.yaml deleted file mode 100644 index 6e96a948..00000000 --- a/bundle/tests/scorecard/kuttl/affinity/02-delete.yaml +++ /dev/null @@ -1,6 +0,0 @@ -apiVersion: kuttl.dev/v1beta1 -kind: TestStep -delete: -- apiVersion: rc.app.stacks/v1 - kind: RuntimeComponent - name: affinity-other-rc diff --git a/bundle/tests/scorecard/kuttl/affinity/02-errors.yaml b/bundle/tests/scorecard/kuttl/affinity/02-errors.yaml deleted file mode 100644 index d835798e..00000000 --- a/bundle/tests/scorecard/kuttl/affinity/02-errors.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: affinity-other-rc diff --git a/bundle/tests/scorecard/kuttl/affinity/03-assert.yaml b/bundle/tests/scorecard/kuttl/affinity/03-assert.yaml deleted file mode 100644 index 90ede3fc..00000000 --- a/bundle/tests/scorecard/kuttl/affinity/03-assert.yaml +++ /dev/null @@ -1,23 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: anti-affinity-rc -spec: - template: - spec: - affinity: - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - weight: 100 - podAffinityTerm: - labelSelector: - matchExpressions: - - key: app.kubernetes.io/instance - operator: In - values: - - affinity-rc - topologyKey: kubernetes.io/hostname -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 diff --git a/bundle/tests/scorecard/kuttl/affinity/03-pod-anti-affinity.yaml b/bundle/tests/scorecard/kuttl/affinity/03-pod-anti-affinity.yaml deleted file mode 100644 index 1df1a668..00000000 --- a/bundle/tests/scorecard/kuttl/affinity/03-pod-anti-affinity.yaml +++ /dev/null @@ -1,20 +0,0 @@ -# Check if there is a matching pod anti-affinity a correct deployment is created and status has a readied pod -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: anti-affinity-rc -spec: - applicationImage: registry.k8s.io/pause:3.2 - replicas: 1 - affinity: - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - weight: 100 - podAffinityTerm: - labelSelector: - matchExpressions: - - key: app.kubernetes.io/instance - operator: In - values: - - affinity-rc - topologyKey: kubernetes.io/hostname diff --git a/bundle/tests/scorecard/kuttl/affinity/04-delete.yaml b/bundle/tests/scorecard/kuttl/affinity/04-delete.yaml deleted file mode 100644 index f3406da6..00000000 --- a/bundle/tests/scorecard/kuttl/affinity/04-delete.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: kuttl.dev/v1beta1 -kind: TestStep -delete: - - apiVersion: rc.app.stacks/v1 - kind: RuntimeComponent - name: affinity-rc - - apiVersion: rc.app.stacks/v1 - kind: RuntimeComponent - name: anti-affinity-rc diff --git a/bundle/tests/scorecard/kuttl/affinity/04-errors.yaml b/bundle/tests/scorecard/kuttl/affinity/04-errors.yaml deleted file mode 100644 index 6018cffb..00000000 --- a/bundle/tests/scorecard/kuttl/affinity/04-errors.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: affinity-rc ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: anti-affinity-rc diff --git a/bundle/tests/scorecard/kuttl/affinity/05-assert.yaml b/bundle/tests/scorecard/kuttl/affinity/05-assert.yaml deleted file mode 100644 index 3fb1589a..00000000 --- a/bundle/tests/scorecard/kuttl/affinity/05-assert.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: affinity-rc -spec: - template: - spec: - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: kuttlTest - operator: In - values: - - test1 -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 diff --git a/bundle/tests/scorecard/kuttl/affinity/05-node-affinity.yaml b/bundle/tests/scorecard/kuttl/affinity/05-node-affinity.yaml deleted file mode 100644 index 5044401d..00000000 --- a/bundle/tests/scorecard/kuttl/affinity/05-node-affinity.yaml +++ /dev/null @@ -1,17 +0,0 @@ -# Check that if there is a matching node affinity lab a pod is created -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: affinity-rc -spec: - applicationImage: registry.k8s.io/pause:3.2 - replicas: 1 - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: kuttlTest - operator: In - values: - - test1 diff --git a/bundle/tests/scorecard/kuttl/affinity/06-errors.yaml b/bundle/tests/scorecard/kuttl/affinity/06-errors.yaml deleted file mode 100644 index f4ae6e74..00000000 --- a/bundle/tests/scorecard/kuttl/affinity/06-errors.yaml +++ /dev/null @@ -1,16 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: affinity-rc -spec: - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: kuttlTest - operator: In - values: - - test1 -status: - readyReplicas: 1 diff --git a/bundle/tests/scorecard/kuttl/affinity/06-no-node-affinity.yaml b/bundle/tests/scorecard/kuttl/affinity/06-no-node-affinity.yaml deleted file mode 100644 index 88ee6c0a..00000000 --- a/bundle/tests/scorecard/kuttl/affinity/06-no-node-affinity.yaml +++ /dev/null @@ -1,6 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: affinity-rc -spec: - affinity: diff --git a/bundle/tests/scorecard/kuttl/affinity/07-affinity-architecture.yaml b/bundle/tests/scorecard/kuttl/affinity/07-affinity-architecture.yaml deleted file mode 100644 index f597c8d5..00000000 --- a/bundle/tests/scorecard/kuttl/affinity/07-affinity-architecture.yaml +++ /dev/null @@ -1,9 +0,0 @@ -# Check that if there is a matching node affinity lab a pod is created -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: affinity-rc -spec: - affinity: - architecture: - - amd64 diff --git a/bundle/tests/scorecard/kuttl/affinity/07-assert.yaml b/bundle/tests/scorecard/kuttl/affinity/07-assert.yaml deleted file mode 100644 index d96016f6..00000000 --- a/bundle/tests/scorecard/kuttl/affinity/07-assert.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: affinity-rc -spec: - template: - spec: - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: kubernetes.io/arch - operator: In - values: - - amd64 -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 diff --git a/bundle/tests/scorecard/kuttl/affinity/08-assert.yaml b/bundle/tests/scorecard/kuttl/affinity/08-assert.yaml deleted file mode 100644 index f8b50894..00000000 --- a/bundle/tests/scorecard/kuttl/affinity/08-assert.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: affinity-rc -spec: - template: - spec: - affinity: - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - weight: 50 - podAffinityTerm: - labelSelector: - matchLabels: - app.kubernetes.io/instance: affinity-rc - topologyKey: kubernetes.io/hostname -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 diff --git a/bundle/tests/scorecard/kuttl/affinity/08-default-affinity.yaml b/bundle/tests/scorecard/kuttl/affinity/08-default-affinity.yaml deleted file mode 100644 index f49ff8ad..00000000 --- a/bundle/tests/scorecard/kuttl/affinity/08-default-affinity.yaml +++ /dev/null @@ -1,7 +0,0 @@ -# Test to see that if no affinity specified the default affinity is applied -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: affinity-rc -spec: - affinity: diff --git a/bundle/tests/scorecard/kuttl/affinity/08-errors.yaml b/bundle/tests/scorecard/kuttl/affinity/08-errors.yaml deleted file mode 100644 index 065594b0..00000000 --- a/bundle/tests/scorecard/kuttl/affinity/08-errors.yaml +++ /dev/null @@ -1,16 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: affinity-rc -spec: - template: - spec: - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: kubernetes.io/arch - operator: In - values: - - amd64 diff --git a/bundle/tests/scorecard/kuttl/affinity/09-assert.yaml b/bundle/tests/scorecard/kuttl/affinity/09-assert.yaml deleted file mode 100644 index 3fb1589a..00000000 --- a/bundle/tests/scorecard/kuttl/affinity/09-assert.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: affinity-rc -spec: - template: - spec: - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: kuttlTest - operator: In - values: - - test1 -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 diff --git a/bundle/tests/scorecard/kuttl/affinity/09-errors.yaml b/bundle/tests/scorecard/kuttl/affinity/09-errors.yaml deleted file mode 100644 index 9fca4b2a..00000000 --- a/bundle/tests/scorecard/kuttl/affinity/09-errors.yaml +++ /dev/null @@ -1,16 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: affinity-rc -spec: - template: - spec: - affinity: - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - weight: 50 - podAffinityTerm: - labelSelector: - matchLabels: - app.kubernetes.io/instance: affinity-rc - topologyKey: kubernetes.io/hostname \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/affinity/09-override-default-affinity.yaml b/bundle/tests/scorecard/kuttl/affinity/09-override-default-affinity.yaml deleted file mode 100644 index a4ebdaaa..00000000 --- a/bundle/tests/scorecard/kuttl/affinity/09-override-default-affinity.yaml +++ /dev/null @@ -1,9 +0,0 @@ -# Test to see that the default affinity is overwritten if supplied with a user defined affinity -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: affinity-rc -spec: - affinity: - nodeAffinityLabels: - kuttlTest: test1 diff --git a/bundle/tests/scorecard/kuttl/affinity/10-assert.yaml b/bundle/tests/scorecard/kuttl/affinity/10-assert.yaml deleted file mode 100644 index 01de99cc..00000000 --- a/bundle/tests/scorecard/kuttl/affinity/10-assert.yaml +++ /dev/null @@ -1,28 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: affinity-rc -spec: - template: - spec: - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: kubernetes.io/arch - operator: In - values: - - amd64 - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - weight: 50 - podAffinityTerm: - labelSelector: - matchLabels: - app.kubernetes.io/instance: affinity-rc - topologyKey: kubernetes.io/hostname -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 diff --git a/bundle/tests/scorecard/kuttl/affinity/10-default-affinity-with-archs.yaml b/bundle/tests/scorecard/kuttl/affinity/10-default-affinity-with-archs.yaml deleted file mode 100644 index 7c82ef39..00000000 --- a/bundle/tests/scorecard/kuttl/affinity/10-default-affinity-with-archs.yaml +++ /dev/null @@ -1,10 +0,0 @@ -# Test to see that if no affinity specified the default affinity is applied -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: affinity-rc -spec: - affinity: - nodeAffinityLabels: - architecture: - - amd64 diff --git a/bundle/tests/scorecard/kuttl/affinity/10-error.yaml b/bundle/tests/scorecard/kuttl/affinity/10-error.yaml deleted file mode 100644 index 90be3ef4..00000000 --- a/bundle/tests/scorecard/kuttl/affinity/10-error.yaml +++ /dev/null @@ -1,16 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: affinity-rc -spec: - template: - spec: - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: kuttlTest - operator: In - values: - - test1 diff --git a/bundle/tests/scorecard/kuttl/affinity/README.txt b/bundle/tests/scorecard/kuttl/affinity/README.txt deleted file mode 100644 index 2927a77a..00000000 --- a/bundle/tests/scorecard/kuttl/affinity/README.txt +++ /dev/null @@ -1,2 +0,0 @@ -In order to run this test, the cluster must have one node with the following label:value pair - kuttlTest: test1 \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/annotations/00-assert.yaml b/bundle/tests/scorecard/kuttl/annotations/00-assert.yaml deleted file mode 100644 index bfb69231..00000000 --- a/bundle/tests/scorecard/kuttl/annotations/00-assert.yaml +++ /dev/null @@ -1,37 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: rc-deployment-annotations - annotations: - bar2: foo2 - foo1: bar1 - conflict: deployment -spec: - template: - metadata: - annotations: - bar2: foo2 - foo1: bar1 - conflict: deployment -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 ---- -apiVersion: v1 -kind: Service -metadata: - name: rc-deployment-annotations - annotations: - foo1: bar1 - conflict: component ---- -apiVersion: v1 -kind: Pod -metadata: - annotations: - bar2: foo2 - foo1: bar1 - conflict: deployment - labels: - app.kubernetes.io/instance: rc-deployment-annotations diff --git a/bundle/tests/scorecard/kuttl/annotations/00-errors.yaml b/bundle/tests/scorecard/kuttl/annotations/00-errors.yaml deleted file mode 100644 index 9f21bd6b..00000000 --- a/bundle/tests/scorecard/kuttl/annotations/00-errors.yaml +++ /dev/null @@ -1,6 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: rc-deployment-annotations - annotations: - bar2: foo2 diff --git a/bundle/tests/scorecard/kuttl/annotations/00-rc-deployment.yaml b/bundle/tests/scorecard/kuttl/annotations/00-rc-deployment.yaml deleted file mode 100644 index 0591633a..00000000 --- a/bundle/tests/scorecard/kuttl/annotations/00-rc-deployment.yaml +++ /dev/null @@ -1,16 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: rc-deployment-annotations - annotations: - foo1: bar1 - conflict: component -spec: - # Add fields here - applicationImage: registry.k8s.io/pause:3.2 - replicas: 1 - deployment: - annotations: - bar2: foo2 - conflict: deployment - diff --git a/bundle/tests/scorecard/kuttl/annotations/01-assert.yaml b/bundle/tests/scorecard/kuttl/annotations/01-assert.yaml deleted file mode 100644 index e5adfef5..00000000 --- a/bundle/tests/scorecard/kuttl/annotations/01-assert.yaml +++ /dev/null @@ -1,37 +0,0 @@ -apiVersion: apps/v1 -kind: StatefulSet -metadata: - name: rc-deployment-annotations - annotations: - bar2: foo2 - foo1: bar1 - conflict: statefulSet -spec: - template: - metadata: - annotations: - bar2: foo2 - foo1: bar1 - conflict: statefulSet -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 ---- -apiVersion: v1 -kind: Service -metadata: - name: rc-deployment-annotations - annotations: - foo1: bar1 ---- -apiVersion: v1 -kind: Pod -metadata: - annotations: - bar2: foo2 - foo1: bar1 - conflict: statefulSet - labels: - app.kubernetes.io/instance: rc-deployment-annotations - diff --git a/bundle/tests/scorecard/kuttl/annotations/01-errors.yaml b/bundle/tests/scorecard/kuttl/annotations/01-errors.yaml deleted file mode 100644 index 54a99666..00000000 --- a/bundle/tests/scorecard/kuttl/annotations/01-errors.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: rc-deployment-annotations - annotations: - bar2: foo2 ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: rc-deployment-annotations - diff --git a/bundle/tests/scorecard/kuttl/annotations/01-rc-statefulset.yaml b/bundle/tests/scorecard/kuttl/annotations/01-rc-statefulset.yaml deleted file mode 100644 index c3e6137b..00000000 --- a/bundle/tests/scorecard/kuttl/annotations/01-rc-statefulset.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: rc-deployment-annotations - annotations: - foo1: bar1 -spec: - # Add fields here - statefulSet: - annotations: - bar2: foo2 - conflict: statefulSet diff --git a/bundle/tests/scorecard/kuttl/auto1/00-assert.yaml b/bundle/tests/scorecard/kuttl/auto1/00-assert.yaml deleted file mode 100644 index 4b134858..00000000 --- a/bundle/tests/scorecard/kuttl/auto1/00-assert.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: autoscaling1-rc -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 diff --git a/bundle/tests/scorecard/kuttl/auto1/00-runtime-basic.yaml b/bundle/tests/scorecard/kuttl/auto1/00-runtime-basic.yaml deleted file mode 100644 index 53e64a96..00000000 --- a/bundle/tests/scorecard/kuttl/auto1/00-runtime-basic.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: autoscaling1-rc -spec: - # Add fields here - applicationImage: registry.k8s.io/pause:3.2 - replicas: 1 diff --git a/bundle/tests/scorecard/kuttl/auto1/01-add-autoscale.yaml b/bundle/tests/scorecard/kuttl/auto1/01-add-autoscale.yaml deleted file mode 100644 index 2d3e6d7e..00000000 --- a/bundle/tests/scorecard/kuttl/auto1/01-add-autoscale.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: autoscaling1-rc -spec: - resources: - requests: - cpu: "0.2" - autoscaling: - maxReplicas: 5 - targetCPUUtilizationPercentage: 50 - diff --git a/bundle/tests/scorecard/kuttl/auto1/01-assert.yaml b/bundle/tests/scorecard/kuttl/auto1/01-assert.yaml deleted file mode 100644 index 60910ad0..00000000 --- a/bundle/tests/scorecard/kuttl/auto1/01-assert.yaml +++ /dev/null @@ -1,17 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: autoscaling1-rc -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 ---- -apiVersion: autoscaling/v1 -kind: HorizontalPodAutoscaler -metadata: - name: autoscaling1-rc -spec: - maxReplicas: 5 - minReplicas: 1 - targetCPUUtilizationPercentage: 50 diff --git a/bundle/tests/scorecard/kuttl/auto1/02-assert.yaml b/bundle/tests/scorecard/kuttl/auto1/02-assert.yaml deleted file mode 100644 index 199773df..00000000 --- a/bundle/tests/scorecard/kuttl/auto1/02-assert.yaml +++ /dev/null @@ -1,17 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: autoscaling1-rc -status: - replicas: 2 - readyReplicas: 2 - updatedReplicas: 2 ---- -apiVersion: autoscaling/v1 -kind: HorizontalPodAutoscaler -metadata: - name: autoscaling1-rc -spec: - maxReplicas: 3 - minReplicas: 2 - targetCPUUtilizationPercentage: 30 diff --git a/bundle/tests/scorecard/kuttl/auto1/02-update-autoscaling.yaml b/bundle/tests/scorecard/kuttl/auto1/02-update-autoscaling.yaml deleted file mode 100644 index de8f1d62..00000000 --- a/bundle/tests/scorecard/kuttl/auto1/02-update-autoscaling.yaml +++ /dev/null @@ -1,10 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: autoscaling1-rc -spec: - autoscaling: - maxReplicas: 3 - minReplicas: 2 - targetCPUUtilizationPercentage: 30 - diff --git a/bundle/tests/scorecard/kuttl/auto1/03-assert.yaml b/bundle/tests/scorecard/kuttl/auto1/03-assert.yaml deleted file mode 100644 index 199773df..00000000 --- a/bundle/tests/scorecard/kuttl/auto1/03-assert.yaml +++ /dev/null @@ -1,17 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: autoscaling1-rc -status: - replicas: 2 - readyReplicas: 2 - updatedReplicas: 2 ---- -apiVersion: autoscaling/v1 -kind: HorizontalPodAutoscaler -metadata: - name: autoscaling1-rc -spec: - maxReplicas: 3 - minReplicas: 2 - targetCPUUtilizationPercentage: 30 diff --git a/bundle/tests/scorecard/kuttl/auto1/03-minmax-autoscaling.yaml b/bundle/tests/scorecard/kuttl/auto1/03-minmax-autoscaling.yaml deleted file mode 100644 index 9a9371ec..00000000 --- a/bundle/tests/scorecard/kuttl/auto1/03-minmax-autoscaling.yaml +++ /dev/null @@ -1,10 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: autoscaling1-rc -spec: - autoscaling: - maxReplicas: 1 - minReplicas: 6 - targetCPUUtilizationPercentage: 10 - diff --git a/bundle/tests/scorecard/kuttl/auto1/04-assert.yaml b/bundle/tests/scorecard/kuttl/auto1/04-assert.yaml deleted file mode 100644 index 199773df..00000000 --- a/bundle/tests/scorecard/kuttl/auto1/04-assert.yaml +++ /dev/null @@ -1,17 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: autoscaling1-rc -status: - replicas: 2 - readyReplicas: 2 - updatedReplicas: 2 ---- -apiVersion: autoscaling/v1 -kind: HorizontalPodAutoscaler -metadata: - name: autoscaling1-rc -spec: - maxReplicas: 3 - minReplicas: 2 - targetCPUUtilizationPercentage: 30 diff --git a/bundle/tests/scorecard/kuttl/auto1/04-autoscaling-boundary.yaml b/bundle/tests/scorecard/kuttl/auto1/04-autoscaling-boundary.yaml deleted file mode 100644 index c90b1070..00000000 --- a/bundle/tests/scorecard/kuttl/auto1/04-autoscaling-boundary.yaml +++ /dev/null @@ -1,12 +0,0 @@ -# Check that when minReplicas is set to less that one that the update is rejected -# There should be no change to the existing autoscale resource -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: autoscaling1-rc -spec: - autoscaling: - maxReplicas: 4 - minReplicas: 0 - targetCPUUtilizationPercentage: 20 - diff --git a/bundle/tests/scorecard/kuttl/auto2/00-assert.yaml b/bundle/tests/scorecard/kuttl/auto2/00-assert.yaml deleted file mode 100644 index d464a5a3..00000000 --- a/bundle/tests/scorecard/kuttl/auto2/00-assert.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: scale2-runtime-component -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 diff --git a/bundle/tests/scorecard/kuttl/auto2/00-runtime-basic.yaml b/bundle/tests/scorecard/kuttl/auto2/00-runtime-basic.yaml deleted file mode 100644 index 710ae817..00000000 --- a/bundle/tests/scorecard/kuttl/auto2/00-runtime-basic.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: scale2-runtime-component -spec: - # Add fields here - applicationImage: registry.k8s.io/pause:3.2 - replicas: 1 diff --git a/bundle/tests/scorecard/kuttl/auto2/01-bad-autoscaling.yaml b/bundle/tests/scorecard/kuttl/auto2/01-bad-autoscaling.yaml deleted file mode 100644 index 5966ea68..00000000 --- a/bundle/tests/scorecard/kuttl/auto2/01-bad-autoscaling.yaml +++ /dev/null @@ -1,14 +0,0 @@ -# Not all required fields are set, so autoscaling -# should not be enabled -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: scale2-runtime-component -spec: - resources: - requests: - cpu: "0.2" - autoscaling: - minReplicas: 5 - targetCPUUtilizationPercentage: 50 - diff --git a/bundle/tests/scorecard/kuttl/auto2/01-errors.yaml b/bundle/tests/scorecard/kuttl/auto2/01-errors.yaml deleted file mode 100644 index 54889cd7..00000000 --- a/bundle/tests/scorecard/kuttl/auto2/01-errors.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: autoscaling/v1 -kind: HorizontalPodAutoscaler -metadata: - name: scale2-runtime-component diff --git a/bundle/tests/scorecard/kuttl/auto3/00-assert.yaml b/bundle/tests/scorecard/kuttl/auto3/00-assert.yaml deleted file mode 100644 index 6ea612a6..00000000 --- a/bundle/tests/scorecard/kuttl/auto3/00-assert.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: scale3-runtime-component -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 diff --git a/bundle/tests/scorecard/kuttl/auto3/00-runtime-basic.yaml b/bundle/tests/scorecard/kuttl/auto3/00-runtime-basic.yaml deleted file mode 100644 index 8221eae4..00000000 --- a/bundle/tests/scorecard/kuttl/auto3/00-runtime-basic.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: scale3-runtime-component -spec: - # Add fields here - applicationImage: registry.k8s.io/pause:3.2 - replicas: 1 diff --git a/bundle/tests/scorecard/kuttl/auto3/01-add-scaling.yaml b/bundle/tests/scorecard/kuttl/auto3/01-add-scaling.yaml deleted file mode 100644 index 4064ce1d..00000000 --- a/bundle/tests/scorecard/kuttl/auto3/01-add-scaling.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: scale3-runtime-component -spec: - resources: - requests: - cpu: "0.2" - autoscaling: - maxReplicas: 5 - minReplicas: 3 - targetCPUUtilizationPercentage: 50 - diff --git a/bundle/tests/scorecard/kuttl/auto3/01-assert.yaml b/bundle/tests/scorecard/kuttl/auto3/01-assert.yaml deleted file mode 100644 index 2a34bda1..00000000 --- a/bundle/tests/scorecard/kuttl/auto3/01-assert.yaml +++ /dev/null @@ -1,17 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: scale3-runtime-component -status: - replicas: 3 - readyReplicas: 3 - updatedReplicas: 3 ---- -apiVersion: autoscaling/v1 -kind: HorizontalPodAutoscaler -metadata: - name: scale3-runtime-component -spec: - maxReplicas: 5 - minReplicas: 3 - targetCPUUtilizationPercentage: 50 diff --git a/bundle/tests/scorecard/kuttl/auto3/02-assert.yaml b/bundle/tests/scorecard/kuttl/auto3/02-assert.yaml deleted file mode 100644 index 9f4ba807..00000000 --- a/bundle/tests/scorecard/kuttl/auto3/02-assert.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: scale3-runtime-component -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 - diff --git a/bundle/tests/scorecard/kuttl/auto3/02-errors.yaml b/bundle/tests/scorecard/kuttl/auto3/02-errors.yaml deleted file mode 100644 index ada8c14e..00000000 --- a/bundle/tests/scorecard/kuttl/auto3/02-errors.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: autoscaling/v1 -kind: HorizontalPodAutoscaler -metadata: - name: scale3-runtime-component - diff --git a/bundle/tests/scorecard/kuttl/auto3/02-remove-scaling.yaml b/bundle/tests/scorecard/kuttl/auto3/02-remove-scaling.yaml deleted file mode 100644 index bce62bb4..00000000 --- a/bundle/tests/scorecard/kuttl/auto3/02-remove-scaling.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: scale3-runtime-component -spec: - resources: - autoscaling: - diff --git a/bundle/tests/scorecard/kuttl/basic/00-assert.yaml b/bundle/tests/scorecard/kuttl/basic/00-assert.yaml deleted file mode 100644 index 119dfba7..00000000 --- a/bundle/tests/scorecard/kuttl/basic/00-assert.yaml +++ /dev/null @@ -1,16 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: example-runtime-component -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 ---- -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: example-runtime-component -status: - versions: - reconciled: 1.2.2 diff --git a/bundle/tests/scorecard/kuttl/basic/00-runtime-basic.yaml b/bundle/tests/scorecard/kuttl/basic/00-runtime-basic.yaml deleted file mode 100644 index c2f6a079..00000000 --- a/bundle/tests/scorecard/kuttl/basic/00-runtime-basic.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: example-runtime-component -spec: - # Add fields here - applicationImage: registry.k8s.io/pause:3.2 - replicas: 1 - diff --git a/bundle/tests/scorecard/kuttl/basic/01-assert.yaml b/bundle/tests/scorecard/kuttl/basic/01-assert.yaml deleted file mode 100644 index 5b364cbd..00000000 --- a/bundle/tests/scorecard/kuttl/basic/01-assert.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: example-runtime-component -status: - replicas: 2 - readyReplicas: 2 - updatedReplicas: 2 diff --git a/bundle/tests/scorecard/kuttl/basic/01-runtime-basic-scale.yaml b/bundle/tests/scorecard/kuttl/basic/01-runtime-basic-scale.yaml deleted file mode 100644 index 6fb9852b..00000000 --- a/bundle/tests/scorecard/kuttl/basic/01-runtime-basic-scale.yaml +++ /dev/null @@ -1,7 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: example-runtime-component -spec: - replicas: 2 - diff --git a/bundle/tests/scorecard/kuttl/basic/02-assert.yaml b/bundle/tests/scorecard/kuttl/basic/02-assert.yaml deleted file mode 100644 index 672170c9..00000000 --- a/bundle/tests/scorecard/kuttl/basic/02-assert.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: example-runtime-component -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 diff --git a/bundle/tests/scorecard/kuttl/basic/02-runtime-basic-remove-reps.yaml b/bundle/tests/scorecard/kuttl/basic/02-runtime-basic-remove-reps.yaml deleted file mode 100644 index efa19132..00000000 --- a/bundle/tests/scorecard/kuttl/basic/02-runtime-basic-remove-reps.yaml +++ /dev/null @@ -1,7 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: example-runtime-component -spec: - replicas: - diff --git a/bundle/tests/scorecard/kuttl/day2operation/00-assert.yaml b/bundle/tests/scorecard/kuttl/day2operation/00-assert.yaml deleted file mode 100644 index 442c5d02..00000000 --- a/bundle/tests/scorecard/kuttl/day2operation/00-assert.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: apps/v1 -kind: StatefulSet -metadata: - name: day2-operation-rc -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 diff --git a/bundle/tests/scorecard/kuttl/day2operation/00-runtime.yaml b/bundle/tests/scorecard/kuttl/day2operation/00-runtime.yaml deleted file mode 100644 index 725afb86..00000000 --- a/bundle/tests/scorecard/kuttl/day2operation/00-runtime.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: day2-operation-rc -spec: - # Add fields here - applicationImage: icr.io/appcafe/open-liberty - replicas: 1 - statefulSet: - storage: - size: 100Mi - mountPath: /data diff --git a/bundle/tests/scorecard/kuttl/day2operation/01-assert.yaml b/bundle/tests/scorecard/kuttl/day2operation/01-assert.yaml deleted file mode 100644 index 1f66d528..00000000 --- a/bundle/tests/scorecard/kuttl/day2operation/01-assert.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeOperation -metadata: - name: example-runtime-operation-0 -spec: - podName: day2-operation-rc-0 - containerName: app -status: - conditions: - - status: 'True' - type: Started - - status: 'True' - type: Completed - versions: - reconciled: 1.2.2 diff --git a/bundle/tests/scorecard/kuttl/day2operation/01-day2operation.yaml b/bundle/tests/scorecard/kuttl/day2operation/01-day2operation.yaml deleted file mode 100644 index 2b1f5e5c..00000000 --- a/bundle/tests/scorecard/kuttl/day2operation/01-day2operation.yaml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeOperation -metadata: - name: example-runtime-operation-0 -spec: - podName: day2-operation-rc-0 - containerName: app - command: - - /bin/sh - - '-c' - - echo "Hello" > /tmp/runtime-operation.log \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/day2operation/02-assert.yaml b/bundle/tests/scorecard/kuttl/day2operation/02-assert.yaml deleted file mode 100644 index a26bdd3d..00000000 --- a/bundle/tests/scorecard/kuttl/day2operation/02-assert.yaml +++ /dev/null @@ -1,6 +0,0 @@ -apiVersion: apps/v1 -kind: StatefulSet -metadata: - name: day2-operation-rc -status: - replicas: 0 diff --git a/bundle/tests/scorecard/kuttl/day2operation/02-runtime-no-replicas.yaml b/bundle/tests/scorecard/kuttl/day2operation/02-runtime-no-replicas.yaml deleted file mode 100644 index 8df240ec..00000000 --- a/bundle/tests/scorecard/kuttl/day2operation/02-runtime-no-replicas.yaml +++ /dev/null @@ -1,8 +0,0 @@ -# Setting replicas to 0 - If no replicas then the day2 Operation should return False but continue to attempt to complete -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: day2-operation-rc -spec: - # Add fields here - replicas: 0 \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/day2operation/03-assert.yaml b/bundle/tests/scorecard/kuttl/day2operation/03-assert.yaml deleted file mode 100644 index 936cd478..00000000 --- a/bundle/tests/scorecard/kuttl/day2operation/03-assert.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeOperation -metadata: - name: example-runtime-operation-1 -spec: - podName: day2-operation-rc-0 - containerName: app -status: - conditions: - - reason: Error - status: 'False' - type: Started \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/day2operation/03-day2operation-no-replicas.yaml b/bundle/tests/scorecard/kuttl/day2operation/03-day2operation-no-replicas.yaml deleted file mode 100644 index a26c5efe..00000000 --- a/bundle/tests/scorecard/kuttl/day2operation/03-day2operation-no-replicas.yaml +++ /dev/null @@ -1,12 +0,0 @@ -# If no replicas then the day2 Operation should return False but continue to attempt to complete -apiVersion: rc.app.stacks/v1 -kind: RuntimeOperation -metadata: - name: example-runtime-operation-1 -spec: - podName: day2-operation-rc-0 - containerName: app - command: - - /bin/sh - - '-c' - - echo "Hello" > /tmp/runtime-operation.log \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/day2operation/04-assert.yaml b/bundle/tests/scorecard/kuttl/day2operation/04-assert.yaml deleted file mode 100644 index 7f40d3cd..00000000 --- a/bundle/tests/scorecard/kuttl/day2operation/04-assert.yaml +++ /dev/null @@ -1,22 +0,0 @@ -apiVersion: apps/v1 -kind: StatefulSet -metadata: - name: day2-operation-rc -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 ---- -apiVersion: rc.app.stacks/v1 -kind: RuntimeOperation -metadata: - name: example-runtime-operation-1 -spec: - podName: day2-operation-rc-0 - containerName: app -status: - conditions: - - status: 'True' - type: Started - - status: 'True' - type: Completed diff --git a/bundle/tests/scorecard/kuttl/day2operation/04-runtime-new-replica.yaml b/bundle/tests/scorecard/kuttl/day2operation/04-runtime-new-replica.yaml deleted file mode 100644 index a3136412..00000000 --- a/bundle/tests/scorecard/kuttl/day2operation/04-runtime-new-replica.yaml +++ /dev/null @@ -1,8 +0,0 @@ -# Once a new replica is running the day2 Operation should complete -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: day2-operation-rc -spec: - # Add fields here - replicas: 1 \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/day2operation/05-delete-operations.yaml b/bundle/tests/scorecard/kuttl/day2operation/05-delete-operations.yaml deleted file mode 100644 index 4ec1d9a0..00000000 --- a/bundle/tests/scorecard/kuttl/day2operation/05-delete-operations.yaml +++ /dev/null @@ -1,16 +0,0 @@ -# Need to manually delete Runtime Operations as kuttl does not automatically delete these at the end of the test -apiVersion: kuttl.dev/v1beta1 -kind: TestStep -delete: - - apiVersion: rc.app.stacks/v1 - kind: RuntimeOperation - metadata: - name: example-runtime-operation-0 - - apiVersion: rc.app.stacks/v1 - kind: RuntimeOperation - metadata: - name: example-runtime-operation-1 - - apiVersion: rc.app.stacks/v1 - kind: RuntimeComponent - metadata: - name: day2-operation-rc \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/deployment-strategy/00-assert.yaml b/bundle/tests/scorecard/kuttl/deployment-strategy/00-assert.yaml deleted file mode 100644 index 7696eb16..00000000 --- a/bundle/tests/scorecard/kuttl/deployment-strategy/00-assert.yaml +++ /dev/null @@ -1,14 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: deployment-strategy-rc -spec: - strategy: - type: RollingUpdate - rollingUpdate: - maxSurge: 1 - maxUnavailable: 2 -status: - replicas: 3 - readyReplicas: 3 - updatedReplicas: 3 diff --git a/bundle/tests/scorecard/kuttl/deployment-strategy/00-runtime-rolling-update.yaml b/bundle/tests/scorecard/kuttl/deployment-strategy/00-runtime-rolling-update.yaml deleted file mode 100644 index af40c379..00000000 --- a/bundle/tests/scorecard/kuttl/deployment-strategy/00-runtime-rolling-update.yaml +++ /dev/null @@ -1,14 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: deployment-strategy-rc -spec: - # Add fields here - applicationImage: registry.k8s.io/pause:3.2 - replicas: 3 - deployment: - updateStrategy: - type: RollingUpdate - rollingUpdate: - maxSurge: 1 - maxUnavailable: 2 \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/deployment-strategy/01-assert.yaml b/bundle/tests/scorecard/kuttl/deployment-strategy/01-assert.yaml deleted file mode 100644 index 91ff3b97..00000000 --- a/bundle/tests/scorecard/kuttl/deployment-strategy/01-assert.yaml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: deployment-strategy-rc -spec: - strategy: - type: Recreate -status: - replicas: 3 - readyReplicas: 3 - updatedReplicas: 3 diff --git a/bundle/tests/scorecard/kuttl/deployment-strategy/01-runtime-recreate-update.yaml b/bundle/tests/scorecard/kuttl/deployment-strategy/01-runtime-recreate-update.yaml deleted file mode 100644 index 429e1dd0..00000000 --- a/bundle/tests/scorecard/kuttl/deployment-strategy/01-runtime-recreate-update.yaml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: deployment-strategy-rc -spec: - # Add fields here - replicas: 3 - deployment: - updateStrategy: - rollingUpdate: null - type: Recreate \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/deployment-strategy/02-assert.yaml b/bundle/tests/scorecard/kuttl/deployment-strategy/02-assert.yaml deleted file mode 100644 index 7bbc82f8..00000000 --- a/bundle/tests/scorecard/kuttl/deployment-strategy/02-assert.yaml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: deployment-strategy-rc -spec: - strategy: - type: RollingUpdate -status: - replicas: 3 - readyReplicas: 3 - updatedReplicas: 3 diff --git a/bundle/tests/scorecard/kuttl/deployment-strategy/02-remove-strategy.yaml b/bundle/tests/scorecard/kuttl/deployment-strategy/02-remove-strategy.yaml deleted file mode 100644 index c19d4839..00000000 --- a/bundle/tests/scorecard/kuttl/deployment-strategy/02-remove-strategy.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: deployment-strategy-rc -spec: - # Add fields here - replicas: 3 - deployment: - updateStrategy: \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/deployment-strategy/03-assert.yaml b/bundle/tests/scorecard/kuttl/deployment-strategy/03-assert.yaml deleted file mode 100644 index 91ff3b97..00000000 --- a/bundle/tests/scorecard/kuttl/deployment-strategy/03-assert.yaml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: deployment-strategy-rc -spec: - strategy: - type: Recreate -status: - replicas: 3 - readyReplicas: 3 - updatedReplicas: 3 diff --git a/bundle/tests/scorecard/kuttl/deployment-strategy/03-runtime-recreate-update.yaml b/bundle/tests/scorecard/kuttl/deployment-strategy/03-runtime-recreate-update.yaml deleted file mode 100644 index 859eed9a..00000000 --- a/bundle/tests/scorecard/kuttl/deployment-strategy/03-runtime-recreate-update.yaml +++ /dev/null @@ -1,10 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: deployment-strategy-rc -spec: - # Add fields here - replicas: 3 - deployment: - updateStrategy: - type: Recreate \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/deployment-strategy/04-assert.yaml b/bundle/tests/scorecard/kuttl/deployment-strategy/04-assert.yaml deleted file mode 100644 index 7bbc82f8..00000000 --- a/bundle/tests/scorecard/kuttl/deployment-strategy/04-assert.yaml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: deployment-strategy-rc -spec: - strategy: - type: RollingUpdate -status: - replicas: 3 - readyReplicas: 3 - updatedReplicas: 3 diff --git a/bundle/tests/scorecard/kuttl/deployment-strategy/04-remove-deployment.yaml b/bundle/tests/scorecard/kuttl/deployment-strategy/04-remove-deployment.yaml deleted file mode 100644 index 41446db9..00000000 --- a/bundle/tests/scorecard/kuttl/deployment-strategy/04-remove-deployment.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: deployment-strategy-rc -spec: - # Add fields here - replicas: 3 - deployment: \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/env/00-assert.yaml b/bundle/tests/scorecard/kuttl/env/00-assert.yaml deleted file mode 100644 index 6ba39b1c..00000000 --- a/bundle/tests/scorecard/kuttl/env/00-assert.yaml +++ /dev/null @@ -1,12 +0,0 @@ -kind: ConfigMap -apiVersion: v1 -metadata: - name: env-rc-configmap ---- -apiVersion: v1 -kind: Secret -metadata: - name: env-rc-secret -type: Opaque -data: - adminPassword: Passw0rd diff --git a/bundle/tests/scorecard/kuttl/env/00-configmap-secret.yaml b/bundle/tests/scorecard/kuttl/env/00-configmap-secret.yaml deleted file mode 100644 index be5610b0..00000000 --- a/bundle/tests/scorecard/kuttl/env/00-configmap-secret.yaml +++ /dev/null @@ -1,13 +0,0 @@ -kind: ConfigMap -apiVersion: v1 -metadata: - name: env-rc-configmap ---- -apiVersion: v1 -kind: Secret -metadata: - name: env-rc-secret -type: Opaque -data: - # 'Test password' - adminPassword: Passw0rd \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/env/01-assert.yaml b/bundle/tests/scorecard/kuttl/env/01-assert.yaml deleted file mode 100644 index e0e91402..00000000 --- a/bundle/tests/scorecard/kuttl/env/01-assert.yaml +++ /dev/null @@ -1,33 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: env-rc -spec: - template: - spec: - containers: - - env: - - name: TEST_VALUE - value: test-value - - name: TEST_NAME - valueFrom: - fieldRef: - apiVersion: v1 - fieldPath: metadata.name - - name: TEST_CPU_REQUEST - valueFrom: - resourceFieldRef: - containerName: app - resource: requests.cpu - - name: TLS_DIR - - name: SA_RESOURCE_VERSION - - name: SERVICE_CERT_SECRET_RESOURCE_VERSION - envFrom: - - configMapRef: - name: env-rc-configmap - - secretRef: - name: env-rc-secret -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 diff --git a/bundle/tests/scorecard/kuttl/env/01-runtime-env.yaml b/bundle/tests/scorecard/kuttl/env/01-runtime-env.yaml deleted file mode 100644 index 178fdc32..00000000 --- a/bundle/tests/scorecard/kuttl/env/01-runtime-env.yaml +++ /dev/null @@ -1,25 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: env-rc -spec: - # Add fields here - applicationImage: icr.io/appcafe/open-liberty - replicas: 1 - env: - - name: TEST_VALUE - value: test-value - - name: TEST_NAME - valueFrom: - fieldRef: - fieldPath: metadata.name - - name: TEST_CPU_REQUEST - valueFrom: - resourceFieldRef: - containerName: app - resource: requests.cpu - envFrom: - - configMapRef: - name: env-rc-configmap - - secretRef: - name: env-rc-secret \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/env/02-assert.yaml b/bundle/tests/scorecard/kuttl/env/02-assert.yaml deleted file mode 100644 index dcc8df58..00000000 --- a/bundle/tests/scorecard/kuttl/env/02-assert.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: env-rc -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 diff --git a/bundle/tests/scorecard/kuttl/env/02-errors.yaml b/bundle/tests/scorecard/kuttl/env/02-errors.yaml deleted file mode 100644 index d0409a79..00000000 --- a/bundle/tests/scorecard/kuttl/env/02-errors.yaml +++ /dev/null @@ -1,26 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: env-rc -spec: - template: - spec: - containers: - - env: - - name: TEST_VALUE - value: test-value - - name: TEST_NAME - valueFrom: - fieldRef: - apiVersion: v1 - fieldPath: metadata.name - - name: TEST_CPU_REQUEST - valueFrom: - resourceFieldRef: - containerName: app - resource: requests.cpu - envFrom: - - configMapRef: - name: env-rc-configmap - - secretRef: - name: env-rc-secret \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/env/02-runtime-delete-env.yaml b/bundle/tests/scorecard/kuttl/env/02-runtime-delete-env.yaml deleted file mode 100644 index e7945b4e..00000000 --- a/bundle/tests/scorecard/kuttl/env/02-runtime-delete-env.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: env-rc -spec: - # Add fields here - env: - envFrom: \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/env/03-assert.yaml b/bundle/tests/scorecard/kuttl/env/03-assert.yaml deleted file mode 100644 index 48dc16bc..00000000 --- a/bundle/tests/scorecard/kuttl/env/03-assert.yaml +++ /dev/null @@ -1,33 +0,0 @@ -apiVersion: apps/v1 -kind: StatefulSet -metadata: - name: env-rc -spec: - template: - spec: - containers: - - env: - - name: TEST_VALUE - value: test-value - - name: TEST_NAME - valueFrom: - fieldRef: - apiVersion: v1 - fieldPath: metadata.name - - name: TEST_CPU_REQUEST - valueFrom: - resourceFieldRef: - containerName: app - resource: requests.cpu - - name: TLS_DIR - - name: SA_RESOURCE_VERSION - - name: SERVICE_CERT_SECRET_RESOURCE_VERSION - envFrom: - - configMapRef: - name: env-rc-configmap - - secretRef: - name: env-rc-secret -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 diff --git a/bundle/tests/scorecard/kuttl/env/03-runtime-statefulset-env.yaml b/bundle/tests/scorecard/kuttl/env/03-runtime-statefulset-env.yaml deleted file mode 100644 index d6c82033..00000000 --- a/bundle/tests/scorecard/kuttl/env/03-runtime-statefulset-env.yaml +++ /dev/null @@ -1,26 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: env-rc -spec: - # Add fields here - applicationImage: icr.io/appcafe/open-liberty - replicas: 1 - statefulSet: {} - env: - - name: TEST_VALUE - value: test-value - - name: TEST_NAME - valueFrom: - fieldRef: - fieldPath: metadata.name - - name: TEST_CPU_REQUEST - valueFrom: - resourceFieldRef: - containerName: app - resource: requests.cpu - envFrom: - - configMapRef: - name: env-rc-configmap - - secretRef: - name: env-rc-secret \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/env/04-assert.yaml b/bundle/tests/scorecard/kuttl/env/04-assert.yaml deleted file mode 100644 index 3da54752..00000000 --- a/bundle/tests/scorecard/kuttl/env/04-assert.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: apps/v1 -kind: StatefulSet -metadata: - name: env-rc -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 diff --git a/bundle/tests/scorecard/kuttl/env/04-errors.yaml b/bundle/tests/scorecard/kuttl/env/04-errors.yaml deleted file mode 100644 index a073fd46..00000000 --- a/bundle/tests/scorecard/kuttl/env/04-errors.yaml +++ /dev/null @@ -1,26 +0,0 @@ -apiVersion: apps/v1 -kind: StatefulSet -metadata: - name: env-rc -spec: - template: - spec: - containers: - - env: - - name: TEST_VALUE - value: test-value - - name: TEST_NAME - valueFrom: - fieldRef: - apiVersion: v1 - fieldPath: metadata.name - - name: TEST_CPU_REQUEST - valueFrom: - resourceFieldRef: - containerName: app - resource: requests.cpu - envFrom: - - configMapRef: - name: env-rc-configmap - - secretRef: - name: env-rc-secret \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/env/04-runtime-statefulset-delete-env.yaml b/bundle/tests/scorecard/kuttl/env/04-runtime-statefulset-delete-env.yaml deleted file mode 100644 index e7945b4e..00000000 --- a/bundle/tests/scorecard/kuttl/env/04-runtime-statefulset-delete-env.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: env-rc -spec: - # Add fields here - env: - envFrom: \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/env/05-delete.yaml b/bundle/tests/scorecard/kuttl/env/05-delete.yaml deleted file mode 100644 index 65012e1a..00000000 --- a/bundle/tests/scorecard/kuttl/env/05-delete.yaml +++ /dev/null @@ -1,13 +0,0 @@ -# Need to manually delete resources as kuttl does not automatically delete these at the end of the test -apiVersion: kuttl.dev/v1beta1 -kind: TestStep -delete: -- apiVersion: v1 - kind: ConfigMap - name: env-rc-configmap -- apiVersion: v1 - kind: Secret - name: env-rc-secret -- apiVersion: rc.app.stacks/v1 - kind: RuntimeComponent - name: env-rc \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/image-stream/00-assert.yaml b/bundle/tests/scorecard/kuttl/image-stream/00-assert.yaml deleted file mode 100644 index f13935af..00000000 --- a/bundle/tests/scorecard/kuttl/image-stream/00-assert.yaml +++ /dev/null @@ -1,16 +0,0 @@ -apiVersion: image.openshift.io/v1 -kind: ImageStream -metadata: - name: imagestream-example -spec: - tags: - - from: - kind: DockerImage - name: icr.io/appcafe/open-liberty:23.0.0.1-full-java8-openj9-ubi - name: latest -status: - tags: - - tag: latest - items: - - image: sha256:928559729352bfc852388b0b0db6c99593c9964c67f63ee5081fef27a4eeaa74 - diff --git a/bundle/tests/scorecard/kuttl/image-stream/00-imagestream.yaml b/bundle/tests/scorecard/kuttl/image-stream/00-imagestream.yaml deleted file mode 100644 index 986f9028..00000000 --- a/bundle/tests/scorecard/kuttl/image-stream/00-imagestream.yaml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: image.openshift.io/v1 -kind: ImageStream -metadata: - name: imagestream-example -spec: - tags: - - from: - kind: DockerImage - name: icr.io/appcafe/open-liberty:23.0.0.1-full-java8-openj9-ubi - name: latest - diff --git a/bundle/tests/scorecard/kuttl/image-stream/01-assert.yaml b/bundle/tests/scorecard/kuttl/image-stream/01-assert.yaml deleted file mode 100644 index 24a76b60..00000000 --- a/bundle/tests/scorecard/kuttl/image-stream/01-assert.yaml +++ /dev/null @@ -1,22 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: imagestream-rc -spec: - template: - spec: - containers: - - image: icr.io/appcafe/open-liberty@sha256:928559729352bfc852388b0b0db6c99593c9964c67f63ee5081fef27a4eeaa74 -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 ---- -apiVersion: v1 -kind: Pod -spec: - containers: - - image: icr.io/appcafe/open-liberty@sha256:928559729352bfc852388b0b0db6c99593c9964c67f63ee5081fef27a4eeaa74 -metadata: - labels: - app.kubernetes.io/instance: imagestream-rc diff --git a/bundle/tests/scorecard/kuttl/image-stream/01-runtime-basic.yaml b/bundle/tests/scorecard/kuttl/image-stream/01-runtime-basic.yaml deleted file mode 100644 index b37fc7da..00000000 --- a/bundle/tests/scorecard/kuttl/image-stream/01-runtime-basic.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: imagestream-rc -spec: - # Add fields here - applicationImage: imagestream-example - replicas: 1 - diff --git a/bundle/tests/scorecard/kuttl/image-stream/02-assert.yaml b/bundle/tests/scorecard/kuttl/image-stream/02-assert.yaml deleted file mode 100644 index 120ef039..00000000 --- a/bundle/tests/scorecard/kuttl/image-stream/02-assert.yaml +++ /dev/null @@ -1,17 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: imagestream-rc -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 ---- -apiVersion: v1 -kind: Pod -spec: - containers: - - image: icr.io/appcafe/open-liberty@sha256:3d8bfaf38927e0feb81357de701b500df129547304594d54944e75c7b15930a9 -metadata: - labels: - app.kubernetes.io/instance: imagestream-rc diff --git a/bundle/tests/scorecard/kuttl/image-stream/02-image-update.yaml b/bundle/tests/scorecard/kuttl/image-stream/02-image-update.yaml deleted file mode 100644 index 0e4b650e..00000000 --- a/bundle/tests/scorecard/kuttl/image-stream/02-image-update.yaml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: image.openshift.io/v1 -kind: ImageStream -metadata: - name: imagestream-example -spec: - tags: - - from: - kind: DockerImage - name: icr.io/appcafe/open-liberty:23.0.0.2-full-java8-openj9-ubi - name: latest - diff --git a/bundle/tests/scorecard/kuttl/image-stream/03-assert.yaml b/bundle/tests/scorecard/kuttl/image-stream/03-assert.yaml deleted file mode 100644 index 254870f8..00000000 --- a/bundle/tests/scorecard/kuttl/image-stream/03-assert.yaml +++ /dev/null @@ -1,22 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: imagestream-rc -spec: - template: - spec: - containers: - - image: icr.io/appcafe/open-liberty@sha256:928559729352bfc852388b0b0db6c99593c9964c67f63ee5081fef27a4eeaa74 -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 ---- -apiVersion: v1 -kind: Pod -metadata: - labels: - app.kubernetes.io/instance: imagestream-rc -spec: - containers: - - image: icr.io/appcafe/open-liberty@sha256:928559729352bfc852388b0b0db6c99593c9964c67f63ee5081fef27a4eeaa74 diff --git a/bundle/tests/scorecard/kuttl/image-stream/03-image-revert.yaml b/bundle/tests/scorecard/kuttl/image-stream/03-image-revert.yaml deleted file mode 100644 index 986f9028..00000000 --- a/bundle/tests/scorecard/kuttl/image-stream/03-image-revert.yaml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: image.openshift.io/v1 -kind: ImageStream -metadata: - name: imagestream-example -spec: - tags: - - from: - kind: DockerImage - name: icr.io/appcafe/open-liberty:23.0.0.1-full-java8-openj9-ubi - name: latest - diff --git a/bundle/tests/scorecard/kuttl/image-stream/04-assert.yaml b/bundle/tests/scorecard/kuttl/image-stream/04-assert.yaml deleted file mode 100644 index b2a73b4a..00000000 --- a/bundle/tests/scorecard/kuttl/image-stream/04-assert.yaml +++ /dev/null @@ -1,22 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: imagestream-rc -spec: - template: - spec: - containers: - - image: icr.io/appcafe/open-liberty -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 ---- -apiVersion: v1 -kind: Pod -spec: - containers: - - image: icr.io/appcafe/open-liberty -metadata: - labels: - app.kubernetes.io/instance: imagestream-rc diff --git a/bundle/tests/scorecard/kuttl/image-stream/04-runtime-no-stream.yaml b/bundle/tests/scorecard/kuttl/image-stream/04-runtime-no-stream.yaml deleted file mode 100644 index 67e21d36..00000000 --- a/bundle/tests/scorecard/kuttl/image-stream/04-runtime-no-stream.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: imagestream-rc -spec: - # Add fields here - applicationImage: icr.io/appcafe/open-liberty - diff --git a/bundle/tests/scorecard/kuttl/image-stream/05-delete-all.yaml b/bundle/tests/scorecard/kuttl/image-stream/05-delete-all.yaml deleted file mode 100644 index 726341b5..00000000 --- a/bundle/tests/scorecard/kuttl/image-stream/05-delete-all.yaml +++ /dev/null @@ -1,11 +0,0 @@ -# Kuttl doesn't seem to delete all the resources from this -# test consistently. This step is here just to force -# the cleanup. -apiVersion: kuttl.dev/v1beta1 -kind: TestStep -delete: -# Delete all image streams in the test namespace -- apiVersion: image.openshift.io/v1 - kind: ImageStream -- apiVersion: rc.app.stacks/v1 - kind: RuntimeComponent diff --git a/bundle/tests/scorecard/kuttl/init-deployment/00-assert.yaml b/bundle/tests/scorecard/kuttl/init-deployment/00-assert.yaml deleted file mode 100644 index 49bdbf38..00000000 --- a/bundle/tests/scorecard/kuttl/init-deployment/00-assert.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: init-runtime-deployment -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 diff --git a/bundle/tests/scorecard/kuttl/init-deployment/00-runtime-basic.yaml b/bundle/tests/scorecard/kuttl/init-deployment/00-runtime-basic.yaml deleted file mode 100644 index f9b6c476..00000000 --- a/bundle/tests/scorecard/kuttl/init-deployment/00-runtime-basic.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: init-runtime-deployment -spec: - # Add fields here - applicationImage: registry.k8s.io/pause:3.2 - replicas: 1 diff --git a/bundle/tests/scorecard/kuttl/init-deployment/01-add-init-container.yaml b/bundle/tests/scorecard/kuttl/init-deployment/01-add-init-container.yaml deleted file mode 100644 index 2d701e85..00000000 --- a/bundle/tests/scorecard/kuttl/init-deployment/01-add-init-container.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: init-runtime-deployment -spec: - # Add fields here - initContainers: - - image: alpine:3.14 - command: ["echo"] - args: ["Hello world"] - name: init1 - diff --git a/bundle/tests/scorecard/kuttl/init-deployment/01-assert.yaml b/bundle/tests/scorecard/kuttl/init-deployment/01-assert.yaml deleted file mode 100644 index ff505ac3..00000000 --- a/bundle/tests/scorecard/kuttl/init-deployment/01-assert.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: init-runtime-deployment -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 ---- -apiVersion: v1 -kind: Pod -spec: - initContainers: - - name: init1 -status: - initContainerStatuses: - - name: init1 - state: - terminated: - exitCode: 0 diff --git a/bundle/tests/scorecard/kuttl/init-deployment/02-assert.yaml b/bundle/tests/scorecard/kuttl/init-deployment/02-assert.yaml deleted file mode 100644 index 49bdbf38..00000000 --- a/bundle/tests/scorecard/kuttl/init-deployment/02-assert.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: init-runtime-deployment -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 diff --git a/bundle/tests/scorecard/kuttl/init-deployment/02-errors.yaml b/bundle/tests/scorecard/kuttl/init-deployment/02-errors.yaml deleted file mode 100644 index fcae52e3..00000000 --- a/bundle/tests/scorecard/kuttl/init-deployment/02-errors.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: v1 -kind: Pod -spec: - initContainers: - - name: init1 diff --git a/bundle/tests/scorecard/kuttl/init-deployment/02-rm-init-container.yaml b/bundle/tests/scorecard/kuttl/init-deployment/02-rm-init-container.yaml deleted file mode 100644 index e2f95a5c..00000000 --- a/bundle/tests/scorecard/kuttl/init-deployment/02-rm-init-container.yaml +++ /dev/null @@ -1,7 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: init-runtime-deployment -spec: - # Add fields here - initContainers: diff --git a/bundle/tests/scorecard/kuttl/init-stateful/00-assert.yaml b/bundle/tests/scorecard/kuttl/init-stateful/00-assert.yaml deleted file mode 100644 index 1d4308b9..00000000 --- a/bundle/tests/scorecard/kuttl/init-stateful/00-assert.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: apps/v1 -kind: StatefulSet -metadata: - name: init-runtime-stateful -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 diff --git a/bundle/tests/scorecard/kuttl/init-stateful/00-runtime-basic.yaml b/bundle/tests/scorecard/kuttl/init-stateful/00-runtime-basic.yaml deleted file mode 100644 index 09448d32..00000000 --- a/bundle/tests/scorecard/kuttl/init-stateful/00-runtime-basic.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: init-runtime-stateful -spec: - # Add fields here - applicationImage: registry.k8s.io/pause:3.2 - replicas: 1 - statefulSet: {} diff --git a/bundle/tests/scorecard/kuttl/init-stateful/01-add-init-container.yaml b/bundle/tests/scorecard/kuttl/init-stateful/01-add-init-container.yaml deleted file mode 100644 index 05356e2f..00000000 --- a/bundle/tests/scorecard/kuttl/init-stateful/01-add-init-container.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: init-runtime-stateful -spec: - # Add fields here - initContainers: - - image: alpine:3.14 - command: ["echo"] - args: ["Hello world"] - name: init1 - diff --git a/bundle/tests/scorecard/kuttl/init-stateful/01-assert.yaml b/bundle/tests/scorecard/kuttl/init-stateful/01-assert.yaml deleted file mode 100644 index ec11a6b7..00000000 --- a/bundle/tests/scorecard/kuttl/init-stateful/01-assert.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: apps/v1 -kind: StatefulSet -metadata: - name: init-runtime-stateful -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 ---- -apiVersion: v1 -kind: Pod -spec: - initContainers: - - name: init1 -status: - initContainerStatuses: - - name: init1 - state: - terminated: - exitCode: 0 diff --git a/bundle/tests/scorecard/kuttl/init-stateful/02-assert.yaml b/bundle/tests/scorecard/kuttl/init-stateful/02-assert.yaml deleted file mode 100644 index 1d4308b9..00000000 --- a/bundle/tests/scorecard/kuttl/init-stateful/02-assert.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: apps/v1 -kind: StatefulSet -metadata: - name: init-runtime-stateful -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 diff --git a/bundle/tests/scorecard/kuttl/init-stateful/02-errors.yaml b/bundle/tests/scorecard/kuttl/init-stateful/02-errors.yaml deleted file mode 100644 index fcae52e3..00000000 --- a/bundle/tests/scorecard/kuttl/init-stateful/02-errors.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: v1 -kind: Pod -spec: - initContainers: - - name: init1 diff --git a/bundle/tests/scorecard/kuttl/init-stateful/02-rm-init-container.yaml b/bundle/tests/scorecard/kuttl/init-stateful/02-rm-init-container.yaml deleted file mode 100644 index 3970ba59..00000000 --- a/bundle/tests/scorecard/kuttl/init-stateful/02-rm-init-container.yaml +++ /dev/null @@ -1,7 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: init-runtime-stateful -spec: - # Add fields here - initContainers: diff --git a/bundle/tests/scorecard/kuttl/knative/00-assert.yaml b/bundle/tests/scorecard/kuttl/knative/00-assert.yaml deleted file mode 100644 index 7fa1b34c..00000000 --- a/bundle/tests/scorecard/kuttl/knative/00-assert.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: knative1-rc -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 - diff --git a/bundle/tests/scorecard/kuttl/knative/00-errors.yaml b/bundle/tests/scorecard/kuttl/knative/00-errors.yaml deleted file mode 100644 index e0b8374e..00000000 --- a/bundle/tests/scorecard/kuttl/knative/00-errors.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: serving.knative.dev/v1 -kind: Service -metadata: - name: knative1-rc - diff --git a/bundle/tests/scorecard/kuttl/knative/00-runtime-no-knative.yaml b/bundle/tests/scorecard/kuttl/knative/00-runtime-no-knative.yaml deleted file mode 100644 index 5cd5bc45..00000000 --- a/bundle/tests/scorecard/kuttl/knative/00-runtime-no-knative.yaml +++ /dev/null @@ -1,12 +0,0 @@ -# Check that when the createKnativeService field exists but -# is set to false, no knative service is created -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: knative1-rc -spec: - # Add fields here - applicationImage: icr.io/appcafe/open-liberty - replicas: 1 - createKnativeService: false - diff --git a/bundle/tests/scorecard/kuttl/knative/01-delete.yaml b/bundle/tests/scorecard/kuttl/knative/01-delete.yaml deleted file mode 100644 index 805d7449..00000000 --- a/bundle/tests/scorecard/kuttl/knative/01-delete.yaml +++ /dev/null @@ -1,6 +0,0 @@ -apiVersion: kuttl.dev/v1beta1 -kind: TestStep -delete: -# Delete all RuntimeComponents in the test namespace -- apiVersion: rc.app.stacks/v1 - kind: RuntimeComponent diff --git a/bundle/tests/scorecard/kuttl/knative2/00-assert.yaml b/bundle/tests/scorecard/kuttl/knative2/00-assert.yaml deleted file mode 100644 index d0ef15a3..00000000 --- a/bundle/tests/scorecard/kuttl/knative2/00-assert.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: serving.knative.dev/v1 -kind: Service -metadata: - name: knative2-rc - diff --git a/bundle/tests/scorecard/kuttl/knative2/00-errors.yaml b/bundle/tests/scorecard/kuttl/knative2/00-errors.yaml deleted file mode 100644 index 6cc7ab59..00000000 --- a/bundle/tests/scorecard/kuttl/knative2/00-errors.yaml +++ /dev/null @@ -1,6 +0,0 @@ -# There shouldn't be a deployment if there is a knative service -apiVersion: apps/v1 -kind: Deployment -metadata: - name: knative2-rc - diff --git a/bundle/tests/scorecard/kuttl/knative2/00-runtime-knative.yaml b/bundle/tests/scorecard/kuttl/knative2/00-runtime-knative.yaml deleted file mode 100644 index 40587872..00000000 --- a/bundle/tests/scorecard/kuttl/knative2/00-runtime-knative.yaml +++ /dev/null @@ -1,10 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: knative2-rc -spec: - # Add fields here - applicationImage: icr.io/appcafe/open-liberty - replicas: 1 - createKnativeService: true - diff --git a/bundle/tests/scorecard/kuttl/knative2/01-assert.yaml b/bundle/tests/scorecard/kuttl/knative2/01-assert.yaml deleted file mode 100644 index 2d2b8eba..00000000 --- a/bundle/tests/scorecard/kuttl/knative2/01-assert.yaml +++ /dev/null @@ -1,11 +0,0 @@ -# There shouldn't be a deployment if there is a knative service -# This should only be created when the knative service is removed -apiVersion: apps/v1 -kind: Deployment -metadata: - name: knative2-rc -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 - diff --git a/bundle/tests/scorecard/kuttl/knative2/01-errors.yaml b/bundle/tests/scorecard/kuttl/knative2/01-errors.yaml deleted file mode 100644 index d0ef15a3..00000000 --- a/bundle/tests/scorecard/kuttl/knative2/01-errors.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: serving.knative.dev/v1 -kind: Service -metadata: - name: knative2-rc - diff --git a/bundle/tests/scorecard/kuttl/knative2/01-runtime-remove-knative.yaml b/bundle/tests/scorecard/kuttl/knative2/01-runtime-remove-knative.yaml deleted file mode 100644 index 89f5af7b..00000000 --- a/bundle/tests/scorecard/kuttl/knative2/01-runtime-remove-knative.yaml +++ /dev/null @@ -1,10 +0,0 @@ -# Check that the knative service is removed when the appropriate -# field is updated to false -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: knative2-rc -spec: - # Add fields here - createKnativeService: false - diff --git a/bundle/tests/scorecard/kuttl/kuttl-test.yaml b/bundle/tests/scorecard/kuttl/kuttl-test.yaml deleted file mode 100644 index 09d07fa6..00000000 --- a/bundle/tests/scorecard/kuttl/kuttl-test.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: kuttl.dev/v1beta1 -kind: TestSuite -parallel: 1 -timeout: 150 -startControlPlane: false diff --git a/bundle/tests/scorecard/kuttl/manage-tls/00-assert.yaml b/bundle/tests/scorecard/kuttl/manage-tls/00-assert.yaml deleted file mode 100644 index 7f77bcda..00000000 --- a/bundle/tests/scorecard/kuttl/manage-tls/00-assert.yaml +++ /dev/null @@ -1,71 +0,0 @@ -# Check creation of CertManager certificates and secret -apiVersion: cert-manager.io/v1 -kind: Certificate -metadata: - labels: - app.kubernetes.io/managed-by: runtime-component-operator -spec: - commonName: Runtime Component Operator - isCA: true ---- -apiVersion: cert-manager.io/v1 -kind: Certificate -metadata: - name: manage-tls-rc-svc-tls-cm -spec: - secretName: manage-tls-rc-svc-tls-cm ---- -apiVersion: v1 -kind: Secret -metadata: - annotations: - cert-manager.io/certificate-name: manage-tls-rc-svc-tls-cm - name: manage-tls-rc-svc-tls-cm ---- -# Verify the pod template spec uses *-cm naming convention -apiVersion: apps/v1 -kind: Deployment -metadata: - name: manage-tls-rc -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 -spec: - template: - spec: - containers: - - env: - - name: TLS_DIR - value: /etc/x509/certs - - name: SA_RESOURCE_VERSION - - name: SERVICE_CERT_SECRET_RESOURCE_VERSION - volumeMounts: - - name: svc-certificate - mountPath: /etc/x509/certs - readOnly: true - volumes: - - name: svc-certificate - secret: - defaultMode: 420 - secretName: manage-tls-rc-svc-tls-cm ---- -apiVersion: v1 -kind: Service -metadata: - name: manage-tls-rc ---- -apiVersion: route.openshift.io/v1 -kind: Route -metadata: - name: manage-tls-rc -spec: - host: runtimecomponentoperator.test - to: - kind: Service - name: manage-tls-rc - weight: 100 - port: - targetPort: 9443-tcp - tls: - termination: reencrypt diff --git a/bundle/tests/scorecard/kuttl/manage-tls/00-certmanager-with-manage-tls.yaml b/bundle/tests/scorecard/kuttl/manage-tls/00-certmanager-with-manage-tls.yaml deleted file mode 100644 index f1d94ebd..00000000 --- a/bundle/tests/scorecard/kuttl/manage-tls/00-certmanager-with-manage-tls.yaml +++ /dev/null @@ -1,14 +0,0 @@ -# Verify that manageTLS=true is enabled by default -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: manage-tls-rc -spec: - applicationImage: registry.k8s.io/pause:3.2 - replicas: 1 - expose: true - service: - port: 9443 - route: - host: runtimecomponentoperator.test - termination: reencrypt \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/manage-tls/01-assert.yaml b/bundle/tests/scorecard/kuttl/manage-tls/01-assert.yaml deleted file mode 100644 index 32d08600..00000000 --- a/bundle/tests/scorecard/kuttl/manage-tls/01-assert.yaml +++ /dev/null @@ -1,37 +0,0 @@ -kind: Deployment -apiVersion: apps/v1 -metadata: - name: manage-tls-rc -spec: - template: - spec: - containers: - - ports: - - name: 9443-tcp - containerPort: 9443 - protocol: TCP -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 ---- -apiVersion: v1 -kind: Service -metadata: - name: manage-tls-rc ---- -apiVersion: route.openshift.io/v1 -kind: Route -metadata: - name: manage-tls-rc -spec: - host: runtimecomponentoperator.test - to: - kind: Service - name: manage-tls-rc - weight: 100 - port: - targetPort: 9443-tcp - tls: - termination: reencrypt - wildcardPolicy: None diff --git a/bundle/tests/scorecard/kuttl/manage-tls/01-certmanager-without-manage-tls.yaml b/bundle/tests/scorecard/kuttl/manage-tls/01-certmanager-without-manage-tls.yaml deleted file mode 100644 index e43fb231..00000000 --- a/bundle/tests/scorecard/kuttl/manage-tls/01-certmanager-without-manage-tls.yaml +++ /dev/null @@ -1,14 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: manage-tls-rc -spec: - applicationImage: registry.k8s.io/pause:3.2 - replicas: 1 - expose: true - manageTLS: false # Deletes the *-svc-tls-cm CertManager Certificate - service: - port: 9443 - route: - host: runtimecomponentoperator.test - termination: reencrypt \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/manage-tls/01-errors.yaml b/bundle/tests/scorecard/kuttl/manage-tls/01-errors.yaml deleted file mode 100644 index 4115f002..00000000 --- a/bundle/tests/scorecard/kuttl/manage-tls/01-errors.yaml +++ /dev/null @@ -1,33 +0,0 @@ -# Verify that CertManager Certificate *-svc-tls-cm is deleted -apiVersion: cert-manager.io/v1 -kind: Certificate -metadata: - name: manage-tls-rc-svc-tls-cm ---- -# Verify that the pod template spec does not manage TLS -apiVersion: apps/v1 -kind: Deployment -metadata: - name: manage-tls-rc -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 -spec: - template: - spec: - containers: - - env: - - name: TLS_DIR - value: /etc/x509/certs - - name: SA_RESOURCE_VERSION - - name: SERVICE_CERT_SECRET_RESOURCE_VERSION - volumeMounts: - - name: svc-certificate - mountPath: /etc/x509/certs - readOnly: true - volumes: - - name: svc-certificate - secret: - defaultMode: 420 - secretName: manage-tls-rc-svc-tls-cm diff --git a/bundle/tests/scorecard/kuttl/manage-tls/02-assert.yaml b/bundle/tests/scorecard/kuttl/manage-tls/02-assert.yaml deleted file mode 100644 index 9117e8af..00000000 --- a/bundle/tests/scorecard/kuttl/manage-tls/02-assert.yaml +++ /dev/null @@ -1,42 +0,0 @@ -# Verify that the deleted Certificate has been restored -apiVersion: cert-manager.io/v1 -kind: Certificate -metadata: - name: manage-tls-rc-svc-tls-cm -spec: - secretName: manage-tls-rc-svc-tls-cm ---- -# Verify the pod template spec defaults and that secretName uses *-cm naming convention -apiVersion: apps/v1 -kind: StatefulSet -metadata: - name: manage-tls-rc -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 -spec: - template: - spec: - containers: - - env: - - name: TLS_DIR - value: /etc/x509/certs - - name: SA_RESOURCE_VERSION - - name: SERVICE_CERT_SECRET_RESOURCE_VERSION - volumeMounts: - - name: svc-certificate - mountPath: /etc/x509/certs - readOnly: true - - name: pvc - mountPath: /mnt/data - volumes: - - name: svc-certificate - secret: - defaultMode: 420 - secretName: manage-tls-rc-svc-tls-cm ---- -kind: Service -apiVersion: v1 -metadata: - name: manage-tls-rc diff --git a/bundle/tests/scorecard/kuttl/manage-tls/02-certmanager-statefulset-with-manage-tls.yaml b/bundle/tests/scorecard/kuttl/manage-tls/02-certmanager-statefulset-with-manage-tls.yaml deleted file mode 100644 index c830cd48..00000000 --- a/bundle/tests/scorecard/kuttl/manage-tls/02-certmanager-statefulset-with-manage-tls.yaml +++ /dev/null @@ -1,18 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: manage-tls-rc -spec: - applicationImage: registry.k8s.io/pause:3.2 - replicas: 1 - expose: true - manageTLS: true - service: - port: 9443 - statefulSet: - storage: - size: "10Mi" - mountPath: "/mnt/data" - route: - host: runtimecomponentoperator.test - termination: reencrypt \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/manage-tls/02-errors.yaml b/bundle/tests/scorecard/kuttl/manage-tls/02-errors.yaml deleted file mode 100644 index 6745932d..00000000 --- a/bundle/tests/scorecard/kuttl/manage-tls/02-errors.yaml +++ /dev/null @@ -1,5 +0,0 @@ -# Verify removal of the Deployment -apiVersion: apps/v1 -kind: Deployment -metadata: - name: manage-tls-rc \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/manage-tls/03-assert.yaml b/bundle/tests/scorecard/kuttl/manage-tls/03-assert.yaml deleted file mode 100644 index 4b9583da..00000000 --- a/bundle/tests/scorecard/kuttl/manage-tls/03-assert.yaml +++ /dev/null @@ -1,45 +0,0 @@ -# Verify the pod template spec defaults and that secretName uses *-ocp naming convention -apiVersion: apps/v1 -kind: StatefulSet -metadata: - name: manage-tls-rc -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 -spec: - template: - spec: - containers: - - env: - - name: TLS_DIR - value: /etc/x509/certs - - name: SA_RESOURCE_VERSION - - name: SERVICE_CERT_SECRET_RESOURCE_VERSION - volumeMounts: - - name: svc-certificate - mountPath: /etc/x509/certs - readOnly: true - - name: pvc - mountPath: /mnt/data - volumes: - - name: svc-certificate - secret: - defaultMode: 420 - secretName: manage-tls-rc-svc-tls-ocp ---- -# Verify the service annotation -kind: Service -apiVersion: v1 -metadata: - annotations: - service.beta.openshift.io/serving-cert-secret-name: manage-tls-rc-svc-tls-ocp - name: manage-tls-rc ---- -# Check that Openshift service CA generates the secret -kind: Secret -apiVersion: v1 -metadata: - name: manage-tls-rc-svc-tls-ocp - annotations: - service.beta.openshift.io/originating-service-name: manage-tls-rc diff --git a/bundle/tests/scorecard/kuttl/manage-tls/03-service-ca-statefulset-with-manage-tls.yaml b/bundle/tests/scorecard/kuttl/manage-tls/03-service-ca-statefulset-with-manage-tls.yaml deleted file mode 100644 index 23297756..00000000 --- a/bundle/tests/scorecard/kuttl/manage-tls/03-service-ca-statefulset-with-manage-tls.yaml +++ /dev/null @@ -1,16 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: manage-tls-rc -spec: - applicationImage: registry.k8s.io/pause:3.2 - replicas: 1 - expose: true - service: - annotations: - service.beta.openshift.io/serving-cert-secret-name: manage-tls-rc-svc-tls-ocp # Enables usage of OpenShift service CA - port: 9443 - statefulSet: - storage: - size: "10Mi" - mountPath: "/mnt/data" \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/manage-tls/04-delete.yaml b/bundle/tests/scorecard/kuttl/manage-tls/04-delete.yaml deleted file mode 100644 index 583d5404..00000000 --- a/bundle/tests/scorecard/kuttl/manage-tls/04-delete.yaml +++ /dev/null @@ -1,7 +0,0 @@ -apiVersion: kuttl.dev/v1beta1 -kind: TestStep -delete: -- apiVersion: rc.app.stacks/v1 - kind: RuntimeComponent - metadata: - name: manage-tls-rc \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/manage-tls/05-assert.yaml b/bundle/tests/scorecard/kuttl/manage-tls/05-assert.yaml deleted file mode 100644 index fce14ba7..00000000 --- a/bundle/tests/scorecard/kuttl/manage-tls/05-assert.yaml +++ /dev/null @@ -1,43 +0,0 @@ -# Verify the pod template spec defaults and that secretName uses *-ocp naming convention -apiVersion: apps/v1 -kind: Deployment -metadata: - name: manage-tls-rc -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 -spec: - template: - spec: - containers: - - env: - - name: TLS_DIR - value: /etc/x509/certs - - name: SA_RESOURCE_VERSION - - name: SERVICE_CERT_SECRET_RESOURCE_VERSION - volumeMounts: - - name: svc-certificate - mountPath: /etc/x509/certs - readOnly: true - volumes: - - name: svc-certificate - secret: - defaultMode: 420 - secretName: manage-tls-rc-svc-tls-ocp ---- -# Verify the service annotation -kind: Service -apiVersion: v1 -metadata: - annotations: - service.beta.openshift.io/serving-cert-secret-name: manage-tls-rc-svc-tls-ocp - name: manage-tls-rc ---- -# Check that Openshift service CA generates the secret -kind: Secret -apiVersion: v1 -metadata: - name: manage-tls-rc-svc-tls-ocp - annotations: - service.beta.openshift.io/originating-service-name: manage-tls-rc diff --git a/bundle/tests/scorecard/kuttl/manage-tls/05-service-ca-with-manage-tls.yaml b/bundle/tests/scorecard/kuttl/manage-tls/05-service-ca-with-manage-tls.yaml deleted file mode 100644 index f3db22e3..00000000 --- a/bundle/tests/scorecard/kuttl/manage-tls/05-service-ca-with-manage-tls.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: manage-tls-rc -spec: - applicationImage: registry.k8s.io/pause:3.2 - replicas: 1 - expose: true - manageTLS: true - service: - annotations: - service.beta.openshift.io/serving-cert-secret-name: manage-tls-rc-svc-tls-ocp # Enables usage of OpenShift service CA - port: 9443 \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/manage-tls/06-assert.yaml b/bundle/tests/scorecard/kuttl/manage-tls/06-assert.yaml deleted file mode 100644 index e3b9fd91..00000000 --- a/bundle/tests/scorecard/kuttl/manage-tls/06-assert.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: manage-tls-rc -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 ---- -kind: Service -apiVersion: v1 -metadata: - name: manage-tls-rc diff --git a/bundle/tests/scorecard/kuttl/manage-tls/06-errors.yaml b/bundle/tests/scorecard/kuttl/manage-tls/06-errors.yaml deleted file mode 100644 index 2f6d2624..00000000 --- a/bundle/tests/scorecard/kuttl/manage-tls/06-errors.yaml +++ /dev/null @@ -1,30 +0,0 @@ -# Verify removal of Deployment -apiVersion: apps/v1 -kind: Deployment -metadata: - name: manage-tls-rc -spec: - template: - spec: - containers: - - env: - - name: TLS_DIR - value: /etc/x509/certs - - name: SA_RESOURCE_VERSION - - name: SERVICE_CERT_SECRET_RESOURCE_VERSION - - volumeMounts: - - name: svc-certificate - mountPath: /etc/x509/certs - readOnly: true - volumes: - - name: svc-certificate - secret: - secretName: manage-tls-rc-svc-tls-ocp ---- -# Verify removal of the OCP Service annotation -kind: Service -apiVersion: v1 -metadata: - annotations: - service.beta.openshift.io/serving-cert-secret-name: manage-tls-rc-svc-tls-ocp - name: manage-tls-rc \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/manage-tls/06-service-ca-without-manage-tls.yaml b/bundle/tests/scorecard/kuttl/manage-tls/06-service-ca-without-manage-tls.yaml deleted file mode 100644 index 43b29964..00000000 --- a/bundle/tests/scorecard/kuttl/manage-tls/06-service-ca-without-manage-tls.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: manage-tls-rc -spec: - applicationImage: registry.k8s.io/pause:3.2 - replicas: 1 - expose: true - manageTLS: false # Disables usage of OpenShift service CA - service: - annotations: - service.beta.openshift.io/serving-cert-secret-name: manage-tls-rc-svc-tls-ocp - port: 9443 \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/manage-tls/07-assert.yaml b/bundle/tests/scorecard/kuttl/manage-tls/07-assert.yaml deleted file mode 100644 index 0ec6f216..00000000 --- a/bundle/tests/scorecard/kuttl/manage-tls/07-assert.yaml +++ /dev/null @@ -1,27 +0,0 @@ -apiVersion: v1 -kind: Secret -metadata: - name: byo-svc-secret -data: - ca.crt: >- - LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUJjVENDQVJlZ0F3SUJBZ0lSQUxHaWxjbTVwZGlKZG9VVWNQVjZtSlF3Q2dZSUtvWkl6ajBFQXdJd0dERVcKTUJRR0ExVUVBeE1OYldGdVlXZGxMWFJzY3kxeVl6QWVGdzB5TWpBMk1qY3lNRFU0TlRKYUZ3MHlNakE1TWpVeQpNRFU0TlRKYU1CZ3hGakFVQmdOVkJBTVREVzFoYm1GblpTMTBiSE10Y21Nd1dUQVRCZ2NxaGtqT1BRSUJCZ2dxCmhrak9QUU1CQndOQ0FBU3BvZDJrc3B4eUNNZ3BST2ZRdFl5UkpxRG04YjArZWNkNXM3VUJJZ090bU52UExBankKUUl0MGlTczRHSTlkVGJSVHR4bnhLVUxCNjJDSlJZZFBGUjA2bzBJd1FEQU9CZ05WSFE4QkFmOEVCQU1DQXFRdwpEd1lEVlIwVEFRSC9CQVV3QXdFQi96QWRCZ05WSFE0RUZnUVVJQn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Y05Nekl3TmpJME1UUXpPREUxV2pBb01TWXdKQVlEVlFRREV4MXlkVzUwYVcxbFkyOXRjRzl1ClpXNTBiM0JsY21GMGIzSXVkR1Z6ZERCWk1CTUdCeXFHU000OUFnRUdDQ3FHU000OUF3RUhBMElBQklCcmRNMW0KdzVIdEZzOE1WYmJhM1pQWVp6YzMvQzBEcXJGdloralc5QjM2ZEN0TW1iLzVINFo5ZjlhRzRBcTBNZklMT1BSdQpqUk9vMlZmTGN4ZTZKbytqUWpCQU1BNEdBMVVkRHdFQi93UUVBd0lDcERBUEJnTlZIUk1CQWY4RUJUQURBUUgvCk1CMEdBMVVkRGdRV0JCU2pIS2pvVVEvSHNvcHJPbDhjK0p4OHhqZFRLVEFLQmdncWhrak9QUVFEQWdOSUFEQkYKQWlFQWhmSktPYnNLUzVZZnhBYkdpL3NrVzVSVlZzRjdCV1pkNlpOZjJydkxPZDhDSUJIeEY1UHNldm1VUU94SApFSlZxZmlMZEZkbjVFNVhZYnV4Z2pIdFQxeE5JCi0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K - tls.key: >- - LS0tLS1CRUdJTiBFQyBQUklWQVRFIEtFWS0tLS0tCk1IY0NBUUVFSUVuSmFPa1F0cFVSd3o4ZWVBQnNRbTZjdDI3bWd5R01zM3BmcDh2a21EOFBvQW9HQ0NxR1NNNDkKQXdFSG9VUURRZ0FFZ0d0MHpXYkRrZTBXend4VnR0cmRrOWhuTnpmOExRT3FzVzluNk5iMEhmcDBLMHladi9rZgpobjEvMW9iZ0NyUXg4Z3M0OUc2TkU2alpWOHR6RjdvbWp3PT0KLS0tLS1FTkQgRUMgUFJJVkFURSBLRVktLS0tLQo= -type: kubernetes.io/tls diff --git a/bundle/tests/scorecard/kuttl/manage-tls/07-secrets.yaml b/bundle/tests/scorecard/kuttl/manage-tls/07-secrets.yaml deleted file mode 100644 index 2fc0d526..00000000 --- a/bundle/tests/scorecard/kuttl/manage-tls/07-secrets.yaml +++ /dev/null @@ -1,27 +0,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ZDhDSUJIeEY1UHNldm1VUU94SApFSlZxZmlMZEZkbjVFNVhZYnV4Z2pIdFQxeE5JCi0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K - tls.key: >- - LS0tLS1CRUdJTiBFQyBQUklWQVRFIEtFWS0tLS0tCk1IY0NBUUVFSUVuSmFPa1F0cFVSd3o4ZWVBQnNRbTZjdDI3bWd5R01zM3BmcDh2a21EOFBvQW9HQ0NxR1NNNDkKQXdFSG9VUURRZ0FFZ0d0MHpXYkRrZTBXend4VnR0cmRrOWhuTnpmOExRT3FzVzluNk5iMEhmcDBLMHladi9rZgpobjEvMW9iZ0NyUXg4Z3M0OUc2TkU2alpWOHR6RjdvbWp3PT0KLS0tLS1FTkQgRUMgUFJJVkFURSBLRVktLS0tLQo= -type: kubernetes.io/tls \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/manage-tls/08-assert.yaml b/bundle/tests/scorecard/kuttl/manage-tls/08-assert.yaml deleted file mode 100644 index cdc15779..00000000 --- a/bundle/tests/scorecard/kuttl/manage-tls/08-assert.yaml +++ /dev/null @@ -1,95 +0,0 @@ -# Verify the pod template spec defaults and that secretName uses BYO secret -apiVersion: apps/v1 -kind: Deployment -metadata: - name: manage-tls-rc -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 -spec: - template: - spec: - containers: - - env: - - name: TLS_DIR - value: /etc/x509/certs - - name: SA_RESOURCE_VERSION - - name: SERVICE_CERT_SECRET_RESOURCE_VERSION - volumeMounts: - - name: svc-certificate - mountPath: /etc/x509/certs - readOnly: true - volumes: - - name: svc-certificate - secret: - defaultMode: 420 - secretName: byo-svc-secret ---- -kind: Service -apiVersion: v1 -metadata: - name: manage-tls-rc ---- -apiVersion: route.openshift.io/v1 -kind: Route -metadata: - name: manage-tls-rc -spec: - host: runtimecomponentoperator.test - to: - kind: Service - name: manage-tls-rc - weight: 100 - port: - targetPort: 9443-tcp - tls: - termination: reencrypt - certificate: | - -----BEGIN CERTIFICATE----- - MIIBkTCCATegAwIBAgIRAPGUnEd0B+EEbeiM1yJKlv8wCgYIKoZIzj0EAwIwKDEm - MCQGA1UEAxMdcnVudGltZWNvbXBvbmVudG9wZXJhdG9yLnRlc3QwHhcNMjIwNjI0 - MTQzODE1WhcNMzIwNjI0MTQzODE1WjAoMSYwJAYDVQQDEx1ydW50aW1lY29tcG9u - ZW50b3BlcmF0b3IudGVzdDBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABIBrdM1m - w5HtFs8MVbba3ZPYZzc3/C0DqrFvZ+jW9B36dCtMmb/5H4Z9f9aG4Aq0MfILOPRu - jROo2VfLcxe6Jo+jQjBAMA4GA1UdDwEB/wQEAwICpDAPBgNVHRMBAf8EBTADAQH/ - MB0GA1UdDgQWBBSjHKjoUQ/HsoprOl8c+Jx8xjdTKTAKBggqhkjOPQQDAgNIADBF - AiEAhfJKObsKS5YfxAbGi/skW5RVVsF7BWZd6ZNf2rvLOd8CIBHxF5PsevmUQOxH - EJVqfiLdFdn5E5XYbuxgjHtT1xNI - -----END CERTIFICATE----- - key: | - -----BEGIN EC PRIVATE KEY----- - MHcCAQEEIEnJaOkQtpURwz8eeABsQm6ct27mgyGMs3pfp8vkmD8PoAoGCCqGSM49 - AwEHoUQDQgAEgGt0zWbDke0WzwxVttrdk9hnNzf8LQOqsW9n6Nb0Hfp0K0yZv/kf - hn1/1obgCrQx8gs49G6NE6jZV8tzF7omjw== - -----END EC PRIVATE KEY----- - caCertificate: | - -----BEGIN CERTIFICATE----- - MIIBkTCCATegAwIBAgIRAPGUnEd0B+EEbeiM1yJKlv8wCgYIKoZIzj0EAwIwKDEm - MCQGA1UEAxMdcnVudGltZWNvbXBvbmVudG9wZXJhdG9yLnRlc3QwHhcNMjIwNjI0 - MTQzODE1WhcNMzIwNjI0MTQzODE1WjAoMSYwJAYDVQQDEx1ydW50aW1lY29tcG9u - ZW50b3BlcmF0b3IudGVzdDBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABIBrdM1m - w5HtFs8MVbba3ZPYZzc3/C0DqrFvZ+jW9B36dCtMmb/5H4Z9f9aG4Aq0MfILOPRu - jROo2VfLcxe6Jo+jQjBAMA4GA1UdDwEB/wQEAwICpDAPBgNVHRMBAf8EBTADAQH/ - MB0GA1UdDgQWBBSjHKjoUQ/HsoprOl8c+Jx8xjdTKTAKBggqhkjOPQQDAgNIADBF - AiEAhfJKObsKS5YfxAbGi/skW5RVVsF7BWZd6ZNf2rvLOd8CIBHxF5PsevmUQOxH - EJVqfiLdFdn5E5XYbuxgjHtT1xNI - -----END CERTIFICATE----- - destinationCACertificate: | - -----BEGIN CERTIFICATE----- - MIIBcTCCARegAwIBAgIRALGilcm5pdiJdoUUcPV6mJQwCgYIKoZIzj0EAwIwGDEW - MBQGA1UEAxMNbWFuYWdlLXRscy1yYzAeFw0yMjA2MjcyMDU4NTJaFw0yMjA5MjUy - MDU4NTJaMBgxFjAUBgNVBAMTDW1hbmFnZS10bHMtcmMwWTATBgcqhkjOPQIBBggq - hkjOPQMBBwNCAASpod2kspxyCMgpROfQtYyRJqDm8b0+ecd5s7UBIgOtmNvPLAjy - QIt0iSs4GI9dTbRTtxnxKULB62CJRYdPFR06o0IwQDAOBgNVHQ8BAf8EBAMCAqQw - DwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQUIBuNFnlOyfVtcaJtauqUicuICbsw - CgYIKoZIzj0EAwIDSAAwRQIhAJVelSkxxCtcp4V8dS0gIRi2ciDz/ZjPfRx866T1 - BsrmAiAtg2w17iLuxfrAmJ6cxxNqOgGs7vdgsg36tDs4hQUuow== - -----END CERTIFICATE----- - wildcardPolicy: None -status: - ingress: - - host: runtimecomponentoperator.test - conditions: - - type: Admitted - status: 'True' diff --git a/bundle/tests/scorecard/kuttl/manage-tls/08-byo-with-manage-tls.yaml b/bundle/tests/scorecard/kuttl/manage-tls/08-byo-with-manage-tls.yaml deleted file mode 100644 index 24cd57d2..00000000 --- a/bundle/tests/scorecard/kuttl/manage-tls/08-byo-with-manage-tls.yaml +++ /dev/null @@ -1,16 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: manage-tls-rc -spec: - applicationImage: registry.k8s.io/pause:3.2 - replicas: 1 - expose: true - manageTLS: true - service: - certificateSecretRef: byo-svc-secret - port: 9443 - route: - certificateSecretRef: byo-route-secret - host: runtimecomponentoperator.test - termination: reencrypt \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/manage-tls/09-delete.yaml b/bundle/tests/scorecard/kuttl/manage-tls/09-delete.yaml deleted file mode 100644 index 583d5404..00000000 --- a/bundle/tests/scorecard/kuttl/manage-tls/09-delete.yaml +++ /dev/null @@ -1,7 +0,0 @@ -apiVersion: kuttl.dev/v1beta1 -kind: TestStep -delete: -- apiVersion: rc.app.stacks/v1 - kind: RuntimeComponent - metadata: - name: manage-tls-rc \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/manage-tls/README.txt b/bundle/tests/scorecard/kuttl/manage-tls/README.txt deleted file mode 100644 index 4a326fcb..00000000 --- a/bundle/tests/scorecard/kuttl/manage-tls/README.txt +++ /dev/null @@ -1,5 +0,0 @@ -In order to run this test, the cluster must -have a storage class enabled - -In order to run this test, the user must -ensure the two self-signed certificates (`byo-svc-secret` and `byo-route-secret`) have not yet expired (June 22, 2032) \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/monitor/00-assert.yaml b/bundle/tests/scorecard/kuttl/monitor/00-assert.yaml deleted file mode 100644 index 784d1eb1..00000000 --- a/bundle/tests/scorecard/kuttl/monitor/00-assert.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: service-monitor-rc -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 diff --git a/bundle/tests/scorecard/kuttl/monitor/00-errors.yaml b/bundle/tests/scorecard/kuttl/monitor/00-errors.yaml deleted file mode 100644 index 138cb388..00000000 --- a/bundle/tests/scorecard/kuttl/monitor/00-errors.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: monitoring.coreos.com/v1 -kind: ServiceMonitor -metadata: - name: service-monitor-rc diff --git a/bundle/tests/scorecard/kuttl/monitor/00-runtime-basic.yaml b/bundle/tests/scorecard/kuttl/monitor/00-runtime-basic.yaml deleted file mode 100644 index 8ce610a2..00000000 --- a/bundle/tests/scorecard/kuttl/monitor/00-runtime-basic.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: service-monitor-rc -spec: - # Add fields here - applicationImage: icr.io/appcafe/open-liberty - service: - type: "ClusterIP" - port: 3000 - replicas: 1 - diff --git a/bundle/tests/scorecard/kuttl/monitor/01-assert.yaml b/bundle/tests/scorecard/kuttl/monitor/01-assert.yaml deleted file mode 100644 index fa3d5340..00000000 --- a/bundle/tests/scorecard/kuttl/monitor/01-assert.yaml +++ /dev/null @@ -1,14 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: service-monitor-rc -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 ---- -apiVersion: monitoring.coreos.com/v1 -kind: ServiceMonitor -metadata: - name: service-monitor-rc - diff --git a/bundle/tests/scorecard/kuttl/monitor/01-runtime-add-monitor.yaml b/bundle/tests/scorecard/kuttl/monitor/01-runtime-add-monitor.yaml deleted file mode 100644 index f99901dd..00000000 --- a/bundle/tests/scorecard/kuttl/monitor/01-runtime-add-monitor.yaml +++ /dev/null @@ -1,11 +0,0 @@ -# Adding a label should be sufficient to cause the operator -# to create the monitor -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: service-monitor-rc -spec: - monitoring: - labels: - apps-prometheus: '' - diff --git a/bundle/tests/scorecard/kuttl/monitor/02-assert.yaml b/bundle/tests/scorecard/kuttl/monitor/02-assert.yaml deleted file mode 100644 index 5c82d0d2..00000000 --- a/bundle/tests/scorecard/kuttl/monitor/02-assert.yaml +++ /dev/null @@ -1,36 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: service-monitor-rc -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 ---- -apiVersion: monitoring.coreos.com/v1 -kind: ServiceMonitor -metadata: - name: service-monitor-rc -spec: - selector: - matchLabels: - app.kubernetes.io/instance: service-monitor-rc - endpoints: - - path: "/path" - scheme: "https" - port: 3000-tcp - params: - params: - - param1 - - param2 - scrapeTimeout: 10s - interval: 30s - bearerTokenFile: myBTF - tlsConfig: - insecureSkipVerify: true - basicAuth: - password: - key: password - username: - key: username - diff --git a/bundle/tests/scorecard/kuttl/monitor/02-runtime-update-monitor.yaml b/bundle/tests/scorecard/kuttl/monitor/02-runtime-update-monitor.yaml deleted file mode 100644 index 02a66429..00000000 --- a/bundle/tests/scorecard/kuttl/monitor/02-runtime-update-monitor.yaml +++ /dev/null @@ -1,24 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: service-monitor-rc -spec: - monitoring: - endpoints: - - path: "/path" - scheme: "https" - params: - params: - - "param1" - - "param2" - interval: "30s" - scrapeTimeout: "10s" - tlsConfig: - insecureSkipVerify: true - bearerTokenFile: "myBTF" - basicAuth: - username: - key: "username" - password: - key: "password" - diff --git a/bundle/tests/scorecard/kuttl/monitor/03-assert.yaml b/bundle/tests/scorecard/kuttl/monitor/03-assert.yaml deleted file mode 100644 index 784d1eb1..00000000 --- a/bundle/tests/scorecard/kuttl/monitor/03-assert.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: service-monitor-rc -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 diff --git a/bundle/tests/scorecard/kuttl/monitor/03-errors.yaml b/bundle/tests/scorecard/kuttl/monitor/03-errors.yaml deleted file mode 100644 index 138cb388..00000000 --- a/bundle/tests/scorecard/kuttl/monitor/03-errors.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: monitoring.coreos.com/v1 -kind: ServiceMonitor -metadata: - name: service-monitor-rc diff --git a/bundle/tests/scorecard/kuttl/monitor/03-remove-monitor.yaml b/bundle/tests/scorecard/kuttl/monitor/03-remove-monitor.yaml deleted file mode 100644 index 13f1ad8c..00000000 --- a/bundle/tests/scorecard/kuttl/monitor/03-remove-monitor.yaml +++ /dev/null @@ -1,6 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: service-monitor-rc -spec: - monitoring: diff --git a/bundle/tests/scorecard/kuttl/monitor/README.txt b/bundle/tests/scorecard/kuttl/monitor/README.txt deleted file mode 100644 index f36d9c90..00000000 --- a/bundle/tests/scorecard/kuttl/monitor/README.txt +++ /dev/null @@ -1,3 +0,0 @@ -This test requires monitoring to be enabled for user projects -See the Openshift documentation for how to enable this -https://docs.openshift.com/container-platform/4.6/monitoring/configuring-the-monitoring-stack.html diff --git a/bundle/tests/scorecard/kuttl/network-policy-multiple-apps/00-assert.yaml b/bundle/tests/scorecard/kuttl/network-policy-multiple-apps/00-assert.yaml deleted file mode 100644 index 676d9bcd..00000000 --- a/bundle/tests/scorecard/kuttl/network-policy-multiple-apps/00-assert.yaml +++ /dev/null @@ -1,53 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: NetworkPolicy -metadata: - name: network-policy-frontend-rc -spec: - ingress: - - from: - - namespaceSelector: - matchLabels: - policy-group.network.openshift.io/ingress: "" - - namespaceSelector: - matchLabels: - network.openshift.io/policy-group: ingress - - podSelector: - matchLabels: - app.kubernetes.io/part-of: network-policy-test - - namespaceSelector: - matchLabels: - network.openshift.io/policy-group: monitoring - ports: - - port: 9080 - protocol: TCP - - port: 9443 - protocol: TCP - podSelector: - matchLabels: - rc.app.stacks/name: network-policy-frontend-rc - policyTypes: - - Ingress ---- -apiVersion: networking.k8s.io/v1 -kind: NetworkPolicy -metadata: - name: network-policy-backend-rc -spec: - ingress: - - from: - - podSelector: - matchLabels: - app.kubernetes.io/part-of: network-policy-test - - namespaceSelector: - matchLabels: - network.openshift.io/policy-group: monitoring - ports: - - port: 9080 - protocol: TCP - - port: 9443 - protocol: TCP - podSelector: - matchLabels: - rc.app.stacks/name: network-policy-backend-rc - policyTypes: - - Ingress diff --git a/bundle/tests/scorecard/kuttl/network-policy-multiple-apps/00-errors.yaml b/bundle/tests/scorecard/kuttl/network-policy-multiple-apps/00-errors.yaml deleted file mode 100644 index b9947363..00000000 --- a/bundle/tests/scorecard/kuttl/network-policy-multiple-apps/00-errors.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: NetworkPolicy -metadata: - name: network-policy-backend-rc -spec: - ingress: - - from: - - namespaceSelector: - matchLabels: - policy-group.network.openshift.io/ingress: "" - - namespaceSelector: - matchLabels: - network.openshift.io/policy-group: ingress diff --git a/bundle/tests/scorecard/kuttl/network-policy-multiple-apps/00-multiple-network-policies.yaml b/bundle/tests/scorecard/kuttl/network-policy-multiple-apps/00-multiple-network-policies.yaml deleted file mode 100644 index 9d312075..00000000 --- a/bundle/tests/scorecard/kuttl/network-policy-multiple-apps/00-multiple-network-policies.yaml +++ /dev/null @@ -1,26 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: network-policy-frontend-rc -spec: - applicationName: network-policy-test - applicationImage: registry.k8s.io/pause:3.2 - expose: true - service: - port: 9080 - ports: - - port: 9443 - protocol: TCP ---- -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: network-policy-backend-rc -spec: - applicationName: network-policy-test - applicationImage: registry.k8s.io/pause:3.2 - service: - port: 9080 - ports: - - port: 9443 - protocol: TCP diff --git a/bundle/tests/scorecard/kuttl/network-policy/00-assert.yaml b/bundle/tests/scorecard/kuttl/network-policy/00-assert.yaml deleted file mode 100644 index 31dbec53..00000000 --- a/bundle/tests/scorecard/kuttl/network-policy/00-assert.yaml +++ /dev/null @@ -1,21 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: NetworkPolicy -metadata: - name: network-policy-rc -spec: - ingress: - - from: - - podSelector: - matchLabels: - app.kubernetes.io/part-of: network-policy-rc - - namespaceSelector: - matchLabels: - network.openshift.io/policy-group: monitoring - ports: - - port: 8080 - protocol: TCP - podSelector: - matchLabels: - rc.app.stacks/name: network-policy-rc - policyTypes: - - Ingress diff --git a/bundle/tests/scorecard/kuttl/network-policy/00-network-policy-enabled-default.yaml b/bundle/tests/scorecard/kuttl/network-policy/00-network-policy-enabled-default.yaml deleted file mode 100644 index 735199b4..00000000 --- a/bundle/tests/scorecard/kuttl/network-policy/00-network-policy-enabled-default.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: network-policy-rc -spec: - applicationImage: registry.k8s.io/pause:3.2 - service: - port: 8080 diff --git a/bundle/tests/scorecard/kuttl/network-policy/01-assert.yaml b/bundle/tests/scorecard/kuttl/network-policy/01-assert.yaml deleted file mode 100644 index 656e8ca7..00000000 --- a/bundle/tests/scorecard/kuttl/network-policy/01-assert.yaml +++ /dev/null @@ -1,29 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: NetworkPolicy -metadata: - name: network-policy-rc -spec: - ingress: - - from: - - namespaceSelector: - matchLabels: - policy-group.network.openshift.io/ingress: "" - - namespaceSelector: - matchLabels: - network.openshift.io/policy-group: ingress - - podSelector: - matchLabels: - app.kubernetes.io/part-of: network-policy-rc - - namespaceSelector: - matchLabels: - network.openshift.io/policy-group: monitoring - ports: - - port: 8080 - protocol: TCP - - port: 9090 - protocol: TCP - podSelector: - matchLabels: - rc.app.stacks/name: network-policy-rc - policyTypes: - - Ingress diff --git a/bundle/tests/scorecard/kuttl/network-policy/01-exposed-network-policy.yaml b/bundle/tests/scorecard/kuttl/network-policy/01-exposed-network-policy.yaml deleted file mode 100644 index 551ce6d0..00000000 --- a/bundle/tests/scorecard/kuttl/network-policy/01-exposed-network-policy.yaml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: network-policy-rc -spec: - expose: true - service: - port: 8080 - ports: - - port: 9090 - protocol: TCP diff --git a/bundle/tests/scorecard/kuttl/network-policy/02-assert.yaml b/bundle/tests/scorecard/kuttl/network-policy/02-assert.yaml deleted file mode 100644 index b5406b58..00000000 --- a/bundle/tests/scorecard/kuttl/network-policy/02-assert.yaml +++ /dev/null @@ -1,31 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: NetworkPolicy -metadata: - name: network-policy-rc -spec: - ingress: - - from: - - namespaceSelector: - matchLabels: - policy-group.network.openshift.io/ingress: "" - - namespaceSelector: - matchLabels: - network.openshift.io/policy-group: ingress - - podSelector: - matchLabels: - app.kubernetes.io/part-of: network-policy-rc - - namespaceSelector: - matchLabels: - network.openshift.io/policy-group: monitoring - ports: - - port: 8080 - protocol: TCP - - port: 9090 - protocol: TCP - - port: 9091 - protocol: TCP - podSelector: - matchLabels: - rc.app.stacks/name: network-policy-rc - policyTypes: - - Ingress diff --git a/bundle/tests/scorecard/kuttl/network-policy/02-grow-network-policy.yaml b/bundle/tests/scorecard/kuttl/network-policy/02-grow-network-policy.yaml deleted file mode 100644 index 34f862b4..00000000 --- a/bundle/tests/scorecard/kuttl/network-policy/02-grow-network-policy.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: network-policy-rc -spec: - expose: true - service: - port: 8080 - ports: - - port: 9090 - protocol: TCP - - port: 9091 - protocol: TCP diff --git a/bundle/tests/scorecard/kuttl/network-policy/03-assert.yaml b/bundle/tests/scorecard/kuttl/network-policy/03-assert.yaml deleted file mode 100644 index 3b3e877c..00000000 --- a/bundle/tests/scorecard/kuttl/network-policy/03-assert.yaml +++ /dev/null @@ -1,27 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: NetworkPolicy -metadata: - name: network-policy-rc -spec: - ingress: - - from: - - namespaceSelector: - matchLabels: - policy-group.network.openshift.io/ingress: "" - - namespaceSelector: - matchLabels: - network.openshift.io/policy-group: ingress - - podSelector: - matchLabels: - app.kubernetes.io/part-of: network-policy-rc - - namespaceSelector: - matchLabels: - network.openshift.io/policy-group: monitoring - ports: - - port: 8080 - protocol: TCP - podSelector: - matchLabels: - rc.app.stacks/name: network-policy-rc - policyTypes: - - Ingress diff --git a/bundle/tests/scorecard/kuttl/network-policy/03-errors.yaml b/bundle/tests/scorecard/kuttl/network-policy/03-errors.yaml deleted file mode 100644 index 231eb59d..00000000 --- a/bundle/tests/scorecard/kuttl/network-policy/03-errors.yaml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: NetworkPolicy -metadata: - name: network-policy-rc -spec: - ingress: - - ports: - - port: 9090 - protocol: TCP - - port: 9091 - protocol: TCP diff --git a/bundle/tests/scorecard/kuttl/network-policy/03-shrink-network-policy.yaml b/bundle/tests/scorecard/kuttl/network-policy/03-shrink-network-policy.yaml deleted file mode 100644 index 461ff0e3..00000000 --- a/bundle/tests/scorecard/kuttl/network-policy/03-shrink-network-policy.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: network-policy-rc -spec: - expose: true - service: - port: 8080 - ports: [] diff --git a/bundle/tests/scorecard/kuttl/network-policy/04-assert.yaml b/bundle/tests/scorecard/kuttl/network-policy/04-assert.yaml deleted file mode 100644 index 8c741e2d..00000000 --- a/bundle/tests/scorecard/kuttl/network-policy/04-assert.yaml +++ /dev/null @@ -1,21 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: NetworkPolicy -metadata: - name: network-policy-rc -spec: - ingress: - - from: - - podSelector: - matchLabels: - app.kubernetes.io/part-of: network-policy-rc - - namespaceSelector: - matchLabels: - network.openshift.io/policy-group: monitoring - ports: - - port: 8081 - protocol: TCP - podSelector: - matchLabels: - rc.app.stacks/name: network-policy-rc - policyTypes: - - Ingress diff --git a/bundle/tests/scorecard/kuttl/network-policy/04-errors.yaml b/bundle/tests/scorecard/kuttl/network-policy/04-errors.yaml deleted file mode 100644 index 567c0a34..00000000 --- a/bundle/tests/scorecard/kuttl/network-policy/04-errors.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: NetworkPolicy -metadata: - name: network-policy-rc -spec: - ingress: - - from: - - namespaceSelector: - matchLabels: - policy-group.network.openshift.io/ingress: "" - - namespaceSelector: - matchLabels: - network.openshift.io/policy-group: ingress \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/network-policy/04-unexposed-network-policy.yaml b/bundle/tests/scorecard/kuttl/network-policy/04-unexposed-network-policy.yaml deleted file mode 100644 index c6f19f95..00000000 --- a/bundle/tests/scorecard/kuttl/network-policy/04-unexposed-network-policy.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: network-policy-rc -spec: - expose: false - service: - port: 8081 diff --git a/bundle/tests/scorecard/kuttl/network-policy/05-assert.yaml b/bundle/tests/scorecard/kuttl/network-policy/05-assert.yaml deleted file mode 100644 index bdebbf90..00000000 --- a/bundle/tests/scorecard/kuttl/network-policy/05-assert.yaml +++ /dev/null @@ -1,26 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: NetworkPolicy -metadata: - name: network-policy-rc -spec: - ingress: - - from: - - namespaceSelector: - matchLabels: - namespace: test - podSelector: - matchLabels: - foo: bar - - namespaceSelector: - matchLabels: - network.openshift.io/policy-group: monitoring - ports: - - port: 8080 - protocol: TCP - - port: 9090 - protocol: TCP - podSelector: - matchLabels: - rc.app.stacks/name: network-policy-rc - policyTypes: - - Ingress diff --git a/bundle/tests/scorecard/kuttl/network-policy/05-custom-labels-network-policy.yaml b/bundle/tests/scorecard/kuttl/network-policy/05-custom-labels-network-policy.yaml deleted file mode 100644 index 61550d1d..00000000 --- a/bundle/tests/scorecard/kuttl/network-policy/05-custom-labels-network-policy.yaml +++ /dev/null @@ -1,16 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: network-policy-rc -spec: - expose: false - networkPolicy: - namespaceLabels: - namespace: test - fromLabels: - foo: bar - service: - port: 8080 - ports: - - port: 9090 - protocol: TCP diff --git a/bundle/tests/scorecard/kuttl/network-policy/06-assert.yaml b/bundle/tests/scorecard/kuttl/network-policy/06-assert.yaml deleted file mode 100644 index eb373882..00000000 --- a/bundle/tests/scorecard/kuttl/network-policy/06-assert.yaml +++ /dev/null @@ -1,23 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: NetworkPolicy -metadata: - name: network-policy-rc -spec: - ingress: - - from: - - podSelector: - matchLabels: - foo: bar - - namespaceSelector: - matchLabels: - network.openshift.io/policy-group: monitoring - ports: - - port: 8080 - protocol: TCP - - port: 9090 - protocol: TCP - podSelector: - matchLabels: - rc.app.stacks/name: network-policy-rc - policyTypes: - - Ingress diff --git a/bundle/tests/scorecard/kuttl/network-policy/06-errors.yaml b/bundle/tests/scorecard/kuttl/network-policy/06-errors.yaml deleted file mode 100644 index 8c520ee8..00000000 --- a/bundle/tests/scorecard/kuttl/network-policy/06-errors.yaml +++ /dev/null @@ -1,10 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: NetworkPolicy -metadata: - name: network-policy-rc -spec: - ingress: - - from: - - namespaceSelector: - matchLabels: - namespace: test \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/network-policy/06-undef-network-labels-network-policy.yaml b/bundle/tests/scorecard/kuttl/network-policy/06-undef-network-labels-network-policy.yaml deleted file mode 100644 index ea1e6d94..00000000 --- a/bundle/tests/scorecard/kuttl/network-policy/06-undef-network-labels-network-policy.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: network-policy-rc -spec: - expose: false - networkPolicy: - namespaceLabels: - fromLabels: - foo: bar - service: - port: 8080 - ports: - - port: 9090 - protocol: TCP diff --git a/bundle/tests/scorecard/kuttl/network-policy/07-assert.yaml b/bundle/tests/scorecard/kuttl/network-policy/07-assert.yaml deleted file mode 100644 index 559da240..00000000 --- a/bundle/tests/scorecard/kuttl/network-policy/07-assert.yaml +++ /dev/null @@ -1,23 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: NetworkPolicy -metadata: - name: network-policy-rc -spec: - ingress: - - from: - - podSelector: - matchLabels: - app.kubernetes.io/part-of: network-policy-rc - - namespaceSelector: - matchLabels: - network.openshift.io/policy-group: monitoring - ports: - - port: 8080 - protocol: TCP - - port: 9090 - protocol: TCP - podSelector: - matchLabels: - rc.app.stacks/name: network-policy-rc - policyTypes: - - Ingress diff --git a/bundle/tests/scorecard/kuttl/network-policy/07-errors.yaml b/bundle/tests/scorecard/kuttl/network-policy/07-errors.yaml deleted file mode 100644 index 357b901b..00000000 --- a/bundle/tests/scorecard/kuttl/network-policy/07-errors.yaml +++ /dev/null @@ -1,10 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: NetworkPolicy -metadata: - name: network-policy-rc -spec: - ingress: - - from: - - podSelector: - matchLabels: - foo: bar \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/network-policy/07-undef-pod-labels-network-policy.yaml b/bundle/tests/scorecard/kuttl/network-policy/07-undef-pod-labels-network-policy.yaml deleted file mode 100644 index 1e5042e3..00000000 --- a/bundle/tests/scorecard/kuttl/network-policy/07-undef-pod-labels-network-policy.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: network-policy-rc -spec: - expose: false - networkPolicy: - fromLabels: - service: - port: 8080 - ports: - - port: 9090 - protocol: TCP diff --git a/bundle/tests/scorecard/kuttl/network-policy/08-assert.yaml b/bundle/tests/scorecard/kuttl/network-policy/08-assert.yaml deleted file mode 100644 index 31dbec53..00000000 --- a/bundle/tests/scorecard/kuttl/network-policy/08-assert.yaml +++ /dev/null @@ -1,21 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: NetworkPolicy -metadata: - name: network-policy-rc -spec: - ingress: - - from: - - podSelector: - matchLabels: - app.kubernetes.io/part-of: network-policy-rc - - namespaceSelector: - matchLabels: - network.openshift.io/policy-group: monitoring - ports: - - port: 8080 - protocol: TCP - podSelector: - matchLabels: - rc.app.stacks/name: network-policy-rc - policyTypes: - - Ingress diff --git a/bundle/tests/scorecard/kuttl/network-policy/08-undef-network-policy.yaml b/bundle/tests/scorecard/kuttl/network-policy/08-undef-network-policy.yaml deleted file mode 100644 index 9c6e5860..00000000 --- a/bundle/tests/scorecard/kuttl/network-policy/08-undef-network-policy.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: network-policy-rc -spec: - networkPolicy: - service: - ports: [] diff --git a/bundle/tests/scorecard/kuttl/network-policy/09-allow-all-pods-any-ns.yaml b/bundle/tests/scorecard/kuttl/network-policy/09-allow-all-pods-any-ns.yaml deleted file mode 100644 index b1e2808a..00000000 --- a/bundle/tests/scorecard/kuttl/network-policy/09-allow-all-pods-any-ns.yaml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: network-policy-rc -spec: - expose: false - networkPolicy: - namespaceLabels: {} - fromLabels: {} - service: - port: 8080 diff --git a/bundle/tests/scorecard/kuttl/network-policy/09-assert.yaml b/bundle/tests/scorecard/kuttl/network-policy/09-assert.yaml deleted file mode 100644 index 21afb470..00000000 --- a/bundle/tests/scorecard/kuttl/network-policy/09-assert.yaml +++ /dev/null @@ -1,16 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: NetworkPolicy -metadata: - name: network-policy-rc -spec: - ingress: - - from: - - namespaceSelector: {} - ports: - - port: 8080 - protocol: TCP - podSelector: - matchLabels: - rc.app.stacks/name: network-policy-rc - policyTypes: - - Ingress diff --git a/bundle/tests/scorecard/kuttl/network-policy/09-errors.yaml b/bundle/tests/scorecard/kuttl/network-policy/09-errors.yaml deleted file mode 100644 index 9919bedc..00000000 --- a/bundle/tests/scorecard/kuttl/network-policy/09-errors.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: NetworkPolicy -metadata: - name: network-policy-rc -spec: - ingress: - - from: - - podSelector: - matchLabels: - app.kubernetes.io/part-of: network-policy-rc - - namespaceSelector: - matchLabels: - network.openshift.io/policy-group: monitoring diff --git a/bundle/tests/scorecard/kuttl/network-policy/10-allow-labeled-pods-all-ns.yaml b/bundle/tests/scorecard/kuttl/network-policy/10-allow-labeled-pods-all-ns.yaml deleted file mode 100644 index dc5ade3d..00000000 --- a/bundle/tests/scorecard/kuttl/network-policy/10-allow-labeled-pods-all-ns.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: network-policy-rc -spec: - expose: false - networkPolicy: - namespaceLabels: {} - fromLabels: - foo: bar - service: - port: 8080 diff --git a/bundle/tests/scorecard/kuttl/network-policy/10-assert.yaml b/bundle/tests/scorecard/kuttl/network-policy/10-assert.yaml deleted file mode 100644 index 3aad9a32..00000000 --- a/bundle/tests/scorecard/kuttl/network-policy/10-assert.yaml +++ /dev/null @@ -1,22 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: NetworkPolicy -metadata: - name: network-policy-rc -spec: - ingress: - - from: - - namespaceSelector: {} - podSelector: - matchLabels: - foo: bar - - namespaceSelector: - matchLabels: - network.openshift.io/policy-group: monitoring - ports: - - port: 8080 - protocol: TCP - podSelector: - matchLabels: - rc.app.stacks/name: network-policy-rc - policyTypes: - - Ingress diff --git a/bundle/tests/scorecard/kuttl/network-policy/11-allow-any-pod-same-ns.yaml b/bundle/tests/scorecard/kuttl/network-policy/11-allow-any-pod-same-ns.yaml deleted file mode 100644 index 54ba13a1..00000000 --- a/bundle/tests/scorecard/kuttl/network-policy/11-allow-any-pod-same-ns.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: network-policy-rc -spec: - expose: false - networkPolicy: - namespaceLabels: - namespace: test - fromLabels: {} - service: - port: 8080 diff --git a/bundle/tests/scorecard/kuttl/network-policy/11-assert.yaml b/bundle/tests/scorecard/kuttl/network-policy/11-assert.yaml deleted file mode 100644 index 2197b604..00000000 --- a/bundle/tests/scorecard/kuttl/network-policy/11-assert.yaml +++ /dev/null @@ -1,22 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: NetworkPolicy -metadata: - name: network-policy-rc -spec: - ingress: - - from: - - namespaceSelector: - matchLabels: - namespace: test - podSelector: {} - - namespaceSelector: - matchLabels: - network.openshift.io/policy-group: monitoring - ports: - - port: 8080 - protocol: TCP - podSelector: - matchLabels: - rc.app.stacks/name: network-policy-rc - policyTypes: - - Ingress diff --git a/bundle/tests/scorecard/kuttl/network-policy/11-errors.yaml b/bundle/tests/scorecard/kuttl/network-policy/11-errors.yaml deleted file mode 100644 index a97e1fc8..00000000 --- a/bundle/tests/scorecard/kuttl/network-policy/11-errors.yaml +++ /dev/null @@ -1,10 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: NetworkPolicy -metadata: - name: network-policy-rc -spec: - ingress: - - from: - - podSelector: - matchLabels: - app.kubernetes.io/part-of: network-policy-rc diff --git a/bundle/tests/scorecard/kuttl/network-policy/12-disable-network-policy.yaml b/bundle/tests/scorecard/kuttl/network-policy/12-disable-network-policy.yaml deleted file mode 100644 index aeb56b1c..00000000 --- a/bundle/tests/scorecard/kuttl/network-policy/12-disable-network-policy.yaml +++ /dev/null @@ -1,10 +0,0 @@ ---- -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: network-policy-rc -spec: - networkPolicy: - disable: true - service: - port: 8081 diff --git a/bundle/tests/scorecard/kuttl/network-policy/12-errors.yaml b/bundle/tests/scorecard/kuttl/network-policy/12-errors.yaml deleted file mode 100644 index 5d81541e..00000000 --- a/bundle/tests/scorecard/kuttl/network-policy/12-errors.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: NetworkPolicy -metadata: - name: network-policy-rc diff --git a/bundle/tests/scorecard/kuttl/nodeport/00-add-nodeport.yaml b/bundle/tests/scorecard/kuttl/nodeport/00-add-nodeport.yaml deleted file mode 100644 index 19e1ef32..00000000 --- a/bundle/tests/scorecard/kuttl/nodeport/00-add-nodeport.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: nodeport-rc -spec: - applicationImage: icr.io/appcafe/open-liberty - service: - nodePort: 30000 - port: 3000 - type: NodePort - replicas: 1 - diff --git a/bundle/tests/scorecard/kuttl/nodeport/00-assert.yaml b/bundle/tests/scorecard/kuttl/nodeport/00-assert.yaml deleted file mode 100644 index 3d9a52f8..00000000 --- a/bundle/tests/scorecard/kuttl/nodeport/00-assert.yaml +++ /dev/null @@ -1,4 +0,0 @@ -kind: Service -apiVersion: v1 -metadata: - name: nodeport-rc diff --git a/bundle/tests/scorecard/kuttl/persistent-storage/00-assert.yaml b/bundle/tests/scorecard/kuttl/persistent-storage/00-assert.yaml deleted file mode 100644 index cfe1148b..00000000 --- a/bundle/tests/scorecard/kuttl/persistent-storage/00-assert.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: apps/v1 -kind: StatefulSet -metadata: - name: persistent-rc -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 diff --git a/bundle/tests/scorecard/kuttl/persistent-storage/00-errors.yaml b/bundle/tests/scorecard/kuttl/persistent-storage/00-errors.yaml deleted file mode 100644 index 3ef19baa..00000000 --- a/bundle/tests/scorecard/kuttl/persistent-storage/00-errors.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: persistent-rc diff --git a/bundle/tests/scorecard/kuttl/persistent-storage/00-persistent-storage-rc.yaml b/bundle/tests/scorecard/kuttl/persistent-storage/00-persistent-storage-rc.yaml deleted file mode 100644 index adc38e0d..00000000 --- a/bundle/tests/scorecard/kuttl/persistent-storage/00-persistent-storage-rc.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: persistent-rc -spec: - applicationImage: icr.io/appcafe/open-liberty - replicas: 1 - volumeMounts: - - name: pvc - mountPath: /data - statefulSet: - storage: - volumeClaimTemplate: - metadata: - name: pvc - spec: - accessModes: ["ReadWriteOnce"] - resources: - requests: - storage: 15Mi diff --git a/bundle/tests/scorecard/kuttl/persistent-storage/01-assert.yaml b/bundle/tests/scorecard/kuttl/persistent-storage/01-assert.yaml deleted file mode 100644 index cfe1148b..00000000 --- a/bundle/tests/scorecard/kuttl/persistent-storage/01-assert.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: apps/v1 -kind: StatefulSet -metadata: - name: persistent-rc -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 diff --git a/bundle/tests/scorecard/kuttl/persistent-storage/01-errors.yaml b/bundle/tests/scorecard/kuttl/persistent-storage/01-errors.yaml deleted file mode 100644 index 3ef19baa..00000000 --- a/bundle/tests/scorecard/kuttl/persistent-storage/01-errors.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: persistent-rc diff --git a/bundle/tests/scorecard/kuttl/persistent-storage/01-no-storage-rc.yaml b/bundle/tests/scorecard/kuttl/persistent-storage/01-no-storage-rc.yaml deleted file mode 100644 index 8c5b794d..00000000 --- a/bundle/tests/scorecard/kuttl/persistent-storage/01-no-storage-rc.yaml +++ /dev/null @@ -1,7 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: persistent-rc -spec: - volumeMounts: - statefulSet: {} diff --git a/bundle/tests/scorecard/kuttl/persistent-storage/02-assert.yaml b/bundle/tests/scorecard/kuttl/persistent-storage/02-assert.yaml deleted file mode 100644 index 359bfc65..00000000 --- a/bundle/tests/scorecard/kuttl/persistent-storage/02-assert.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: persistent-rc -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 diff --git a/bundle/tests/scorecard/kuttl/persistent-storage/02-errors.yaml b/bundle/tests/scorecard/kuttl/persistent-storage/02-errors.yaml deleted file mode 100644 index 13b1af2a..00000000 --- a/bundle/tests/scorecard/kuttl/persistent-storage/02-errors.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: apps/v1 -kind: StatefulSet -metadata: - name: persistent-rc diff --git a/bundle/tests/scorecard/kuttl/persistent-storage/02-no-statefulset-rc.yaml b/bundle/tests/scorecard/kuttl/persistent-storage/02-no-statefulset-rc.yaml deleted file mode 100644 index 77633773..00000000 --- a/bundle/tests/scorecard/kuttl/persistent-storage/02-no-statefulset-rc.yaml +++ /dev/null @@ -1,7 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: persistent-rc -spec: - volumeMounts: - statefulSet: diff --git a/bundle/tests/scorecard/kuttl/persistent-storage/README.txt b/bundle/tests/scorecard/kuttl/persistent-storage/README.txt deleted file mode 100644 index 67d3f5eb..00000000 --- a/bundle/tests/scorecard/kuttl/persistent-storage/README.txt +++ /dev/null @@ -1,2 +0,0 @@ -In order to run this test, the cluster must -have a storage class enabled diff --git a/bundle/tests/scorecard/kuttl/probe/00-assert.yaml b/bundle/tests/scorecard/kuttl/probe/00-assert.yaml deleted file mode 100644 index 79434c7f..00000000 --- a/bundle/tests/scorecard/kuttl/probe/00-assert.yaml +++ /dev/null @@ -1,22 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: probes-rc -spec: - selector: - matchLabels: - app.kubernetes.io/instance: probes-rc - template: - spec: - containers: - - readinessProbe: - initialDelaySeconds: 1 - livenessProbe: - initialDelaySeconds: 8 - startupProbe: - failureThreshold: 10 - periodSeconds: 5 -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 diff --git a/bundle/tests/scorecard/kuttl/probe/00-runtime-probe.yaml b/bundle/tests/scorecard/kuttl/probe/00-runtime-probe.yaml deleted file mode 100644 index 9e687b76..00000000 --- a/bundle/tests/scorecard/kuttl/probe/00-runtime-probe.yaml +++ /dev/null @@ -1,37 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: probes-rc -spec: - # Add fields here - applicationImage: icr.io/appcafe/open-liberty:full-java8-openj9-ubi - service: - type: "ClusterIP" - port: 3000 - replicas: 1 - probes: - startup: - failureThreshold: 10 - periodSeconds: 5 - httpGet: - path: / - port: 9080 - readiness: - httpGet: - path: / - port: 9080 - initialDelaySeconds: 1 - timeoutSeconds: 1 - periodSeconds: 5 - successThreshold: 1 - failureThreshold: 24 - liveness: - httpGet: - path: / - port: 9080 - initialDelaySeconds: 8 - timeoutSeconds: 1 - periodSeconds: 5 - successThreshold: 1 - failureThreshold: 12 - diff --git a/bundle/tests/scorecard/kuttl/probe/01-assert.yaml b/bundle/tests/scorecard/kuttl/probe/01-assert.yaml deleted file mode 100644 index e4f57bbc..00000000 --- a/bundle/tests/scorecard/kuttl/probe/01-assert.yaml +++ /dev/null @@ -1,22 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: probes-rc -spec: - selector: - matchLabels: - app.kubernetes.io/instance: probes-rc - template: - spec: - containers: - - readinessProbe: - initialDelaySeconds: 3 - livenessProbe: - initialDelaySeconds: 6 - startupProbe: - failureThreshold: 20 - periodSeconds: 10 -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 diff --git a/bundle/tests/scorecard/kuttl/probe/01-runtime-update-probe.yaml b/bundle/tests/scorecard/kuttl/probe/01-runtime-update-probe.yaml deleted file mode 100644 index a4fbfc6a..00000000 --- a/bundle/tests/scorecard/kuttl/probe/01-runtime-update-probe.yaml +++ /dev/null @@ -1,14 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: probes-rc -spec: - probes: - liveness: - initialDelaySeconds: 6 - readiness: - initialDelaySeconds: 3 - startup: - failureThreshold: 20 - periodSeconds: 10 - diff --git a/bundle/tests/scorecard/kuttl/probe/02-assert.yaml b/bundle/tests/scorecard/kuttl/probe/02-assert.yaml deleted file mode 100644 index 5cb4e5e5..00000000 --- a/bundle/tests/scorecard/kuttl/probe/02-assert.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: probes-rc -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 diff --git a/bundle/tests/scorecard/kuttl/probe/02-errors.yaml b/bundle/tests/scorecard/kuttl/probe/02-errors.yaml deleted file mode 100644 index ba9d4fd7..00000000 --- a/bundle/tests/scorecard/kuttl/probe/02-errors.yaml +++ /dev/null @@ -1,22 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: probes-rc -spec: - selector: - matchLabels: - app.kubernetes.io/instance: probes-rc - template: - spec: - containers: - - readinessProbe: - initialDelaySeconds: 3 - livenessProbe: - initialDelaySeconds: 6 - startupProbe: - failureThreshold: 20 - periodSeconds: 10 -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/probe/02-runtime-remove-probe.yaml b/bundle/tests/scorecard/kuttl/probe/02-runtime-remove-probe.yaml deleted file mode 100644 index 94c990d1..00000000 --- a/bundle/tests/scorecard/kuttl/probe/02-runtime-remove-probe.yaml +++ /dev/null @@ -1,7 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: probes-rc -spec: - # Add fields here - probes: diff --git a/bundle/tests/scorecard/kuttl/probe/03-assert.yaml b/bundle/tests/scorecard/kuttl/probe/03-assert.yaml deleted file mode 100644 index cc77ceea..00000000 --- a/bundle/tests/scorecard/kuttl/probe/03-assert.yaml +++ /dev/null @@ -1,44 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: probes-rc -spec: - selector: - matchLabels: - app.kubernetes.io/instance: probes-rc - template: - spec: - containers: - - livenessProbe: - httpGet: - path: /health/live - port: 9443 - scheme: HTTPS - initialDelaySeconds: 60 - periodSeconds: 10 - timeoutSeconds: 2 - successThreshold: 1 - failureThreshold: 3 - readinessProbe: - httpGet: - path: /health/ready - port: 9443 - scheme: HTTPS - initialDelaySeconds: 10 - periodSeconds: 10 - timeoutSeconds: 2 - successThreshold: 1 - failureThreshold: 10 - startupProbe: - httpGet: - path: /health/started - port: 9443 - scheme: HTTPS - periodSeconds: 10 - timeoutSeconds: 2 - successThreshold: 1 - failureThreshold: 20 -status: - readyReplicas: 1 - replicas: 1 - updatedReplicas: 1 diff --git a/bundle/tests/scorecard/kuttl/probe/03-runtime-probe-defaults.yaml b/bundle/tests/scorecard/kuttl/probe/03-runtime-probe-defaults.yaml deleted file mode 100644 index de0891c0..00000000 --- a/bundle/tests/scorecard/kuttl/probe/03-runtime-probe-defaults.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: probes-rc -spec: - # Add fields here - applicationImage: icr.io/appcafe/open-liberty/samples/getting-started - manageTLS: false - service: - port: 9443 - replicas: 1 - probes: - startup: {} - liveness: {} - readiness: {} diff --git a/bundle/tests/scorecard/kuttl/probe/04-assert.yaml b/bundle/tests/scorecard/kuttl/probe/04-assert.yaml deleted file mode 100644 index f7c7c2cf..00000000 --- a/bundle/tests/scorecard/kuttl/probe/04-assert.yaml +++ /dev/null @@ -1,44 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: probes-rc -spec: - selector: - matchLabels: - app.kubernetes.io/instance: probes-rc - template: - spec: - containers: - - livenessProbe: - httpGet: - path: /health/live - port: 9443 - scheme: HTTPS - initialDelaySeconds: 60 - periodSeconds: 10 - timeoutSeconds: 2 - successThreshold: 1 - failureThreshold: 5 - readinessProbe: - httpGet: - path: /health/ready - port: 9443 - scheme: HTTPS - initialDelaySeconds: 10 - periodSeconds: 10 - timeoutSeconds: 2 - successThreshold: 1 - failureThreshold: 5 - startupProbe: - httpGet: - path: /health/started - port: 9443 - scheme: HTTPS - periodSeconds: 10 - timeoutSeconds: 2 - successThreshold: 1 - failureThreshold: 5 -status: - readyReplicas: 1 - replicas: 1 - updatedReplicas: 1 diff --git a/bundle/tests/scorecard/kuttl/probe/04-runtime-probe-override.yaml b/bundle/tests/scorecard/kuttl/probe/04-runtime-probe-override.yaml deleted file mode 100644 index 8fb1e208..00000000 --- a/bundle/tests/scorecard/kuttl/probe/04-runtime-probe-override.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: probes-rc -spec: - # Add fields here - service: - port: 9443 - probes: - startup: - failureThreshold: 5 - readiness: - failureThreshold: 5 - liveness: - failureThreshold: 5 diff --git a/bundle/tests/scorecard/kuttl/probe/05-assert.yaml b/bundle/tests/scorecard/kuttl/probe/05-assert.yaml deleted file mode 100644 index cfdffa7c..00000000 --- a/bundle/tests/scorecard/kuttl/probe/05-assert.yaml +++ /dev/null @@ -1,24 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: probes-rc -spec: - selector: - matchLabels: - app.kubernetes.io/instance: probes-rc - template: - spec: - containers: - - startupProbe: - httpGet: - path: /health/started - port: 9443 - scheme: HTTPS - periodSeconds: 10 - timeoutSeconds: 2 - successThreshold: 1 - failureThreshold: 20 -status: - readyReplicas: 1 - replicas: 1 - updatedReplicas: 1 diff --git a/bundle/tests/scorecard/kuttl/probe/05-errors.yaml b/bundle/tests/scorecard/kuttl/probe/05-errors.yaml deleted file mode 100644 index 77531d71..00000000 --- a/bundle/tests/scorecard/kuttl/probe/05-errors.yaml +++ /dev/null @@ -1,19 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: probes-rc -spec: - selector: - matchLabels: - app.kubernetes.io/instance: probes-rc - template: - spec: - containers: - - livenessProbe: - failureThreshold: 5 - readinessProbe: - failureThreshold: 5 -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 diff --git a/bundle/tests/scorecard/kuttl/probe/05-runtime-probe-undef.yaml b/bundle/tests/scorecard/kuttl/probe/05-runtime-probe-undef.yaml deleted file mode 100644 index 153a9d2b..00000000 --- a/bundle/tests/scorecard/kuttl/probe/05-runtime-probe-undef.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: probes-rc -spec: - # Add fields here - service: - port: 9443 - probes: - startup: - failureThreshold: 20 - liveness: - readiness: diff --git a/bundle/tests/scorecard/kuttl/route-certificate/00-assert.yaml b/bundle/tests/scorecard/kuttl/route-certificate/00-assert.yaml deleted file mode 100644 index c644b824..00000000 --- a/bundle/tests/scorecard/kuttl/route-certificate/00-assert.yaml +++ /dev/null @@ -1,10 +0,0 @@ -apiVersion: v1 -kind: Secret -type: kubernetes.io/tls -metadata: - name: route-tls-secret -data: - ca.crt: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURQakNDQWlhZ0F3SUJBZ0lRUDJQSmg3ZWgyWHdCNDRxUVdOclFRakFOQmdrcWhraUc5dzBCQVFzRkFEQTQKTVF3d0NnWURWUVFLRXdOSlFrMHhFakFRQmdOVkJBc1RDVmRsWWxOd2FHVnlaVEVVTUJJR0ExVUVBeE1MVjB4UApJRlJsYzNRZ1EwRXdJQmNOTWpNd05ERXhNVGt4TmpJeldoZ1BNakExTXpBME1ETXhPVEUyTWpOYU1EZ3hEREFLCkJnTlZCQW9UQTBsQ1RURVNNQkFHQTFVRUN4TUpWMlZpVTNCb1pYSmxNUlF3RWdZRFZRUURFd3RYVEU4Z1ZHVnoKZENCRFFUQ0NBU0l3RFFZSktvWklodmNOQVFFQkJRQURnZ0VQQURDQ0FRb0NnZ0VCQUxKcUUyRjdaeHo5OVFYMwpUc1plWlhGanVVQ2twbWd6eGFrNGJ4M0xycklIdU1MQU5rTGlSd1BmeC9lWUFIVUtve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2lCM0sKTzNyZURVcndBdz09Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0= - tls.key: dGxza2V5Cg== diff --git a/bundle/tests/scorecard/kuttl/route-certificate/00-secret.yaml b/bundle/tests/scorecard/kuttl/route-certificate/00-secret.yaml deleted file mode 100644 index 2e2a8d82..00000000 --- a/bundle/tests/scorecard/kuttl/route-certificate/00-secret.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: v1 -kind: Secret -metadata: - name: route-tls-secret -type: kubernetes.io/tls -data: - tls.crt: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURKRENDQWd5Z0F3SUJBZ0lRWWpmS3RTdjVLeTJlOWVUNmxKR21TREFOQmdrcWhraUc5dzBCQVFzRkFEQTgKTVF3d0NnWURWUVFLRXdOSlFrMHhFakFRQmdOVkJBc1RDVmRsWWxOd2FHVnlaVEVZTUJZR0ExVUVBeE1QVjB4UApJRlJsYzNRZ1NXNTBJRU5CTUNBWERUSXpNRFF4TVRJd01qY3hPRm9ZRHpJd05UTXdNek13TURZeU56RTRXakFiCk1Sa3dGd1lEVlFRREV4QlVaWE4wSUdObGNuUnBabWxqWVhSbE1JSUJJakFOQmdrcWhraUc5dzBCQVFFRkFBT0MKQVE4QU1JSUJDZ0tDQVFFQXJ1YUZYY0o1L1ZZSkt4R1FiTGJCY1Z2N3NmbXBVM1hrWHRJT1N5VUtFTnAwMmduRgpDRHZ3UUtONkNGSkh3dmFiZmxTU2tNR1Bvc2hxSE1sWDlYMlFVSlJJOU1xb0k5aVNUejBOWTZ0LzJ5ZWRySyswCnZIelFyYXlEOVVlRUhXQXlOS3c3OTRUQi85aGFVUVEwRWhwNWpHRnFrL3AvVTJnOENUeUtNLzQxZTN3Mk9uTUEKSEFmajRqMVlNeERaNmpueEEzTDZoR3VBSndxK2JnNDhJMHhIeDljR0V0UTlzNHNlS3FhV2VTR3JseHdOVzZ1cAo0ZTE5SWNLMXdIdytLcjNOejRXcDJ4Qk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d0Fma29iTlBhcGdFTzZkcTlQZ2F6anNuS0ZFWAp1NHFDWUI1dENPb0FpZ3M5SmJKS2tmdHo3bGtJVU5WL2o1N2VvS1hXaFo3amwweUlBb2JGODhVdnVmc212SGwxCjZUT0crTkk5eDJMaW80a3RyTVI4NENDVXRWZm1sbXdvelpjOTRsQVp6Ymd6K29GWjlTcWUyTHc1emh4c2M4Z3kKZjg1cGxhMENBd0VBQWFOQ01FQXdEZ1lEVlIwUEFRSC9CQVFEQWdLa01BOEdBMVVkRXdFQi93UUZNQU1CQWY4dwpIUVlEVlIwT0JCWUVGRTQ3M2g0NXZTYXFqWUxYNFd3WS94ODhlcXlkTUEwR0NTcUdTSWIzRFFFQkN3VUFBNElCCkFRQ0s4VVVic3lsTnJ1UTdCaVV2d1MzanV1RG53T2V0UVVsOG5maVlmakd4STE2RG5UeXhtMVU4Z3FKZmU1NnkKMWNIeDdtQ0VwL1M0Tnp0MG1Iam1hWG93ZWY2bStvei9yV2dZWVVTQ3MxU1Y3YWNDdHVXTXcxNmc4SHc5VWYxbwpIUTUvd1ZkeExRU2R5azlhTW14Yy9KLzNqZTZsdXdHUU9RSDJBdHB5MHNSK1luSnJHTFhFTEVseUJkejVVVnBHCkVPL2JnN3pYekZyK01FeUVqblVPVitpRGxaMmZueTNqREZEWkRDYlN4YVM4WmpsVTl5cXJCUXVIbmNZSnRBaEQKZFNmeW5Cd2E0RTJ3RUNzWWxwQzlLbjM5RmhHWUdOcmdQRUV4dENzeVJnVHVleENhZzdoTkNGTUIzTHFCalFvdwpoUVJzQnF4d2puSzVBRkxIN3hReWhvV2MKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQ== - # 'destCAcrt' - destCA.crt: ZGVzdENBY3J0Cg== diff --git a/bundle/tests/scorecard/kuttl/route-certificate/01-assert.yaml b/bundle/tests/scorecard/kuttl/route-certificate/01-assert.yaml deleted file mode 100644 index 4e58f594..00000000 --- a/bundle/tests/scorecard/kuttl/route-certificate/01-assert.yaml +++ /dev/null @@ -1,84 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: route-with-cert-rc -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 ---- -apiVersion: route.openshift.io/v1 -kind: Route -metadata: - name: route-with-cert-rc -spec: - host: myapp.mycompany.com - tls: - caCertificate: |- - -----BEGIN CERTIFICATE----- - MIIDPjCCAiagAwIBAgIQP2PJh7eh2XwB44qQWNrQQjANBgkqhkiG9w0BAQsFADA4 - MQwwCgYDVQQKEwNJQk0xEjAQBgNVBAsTCVdlYlNwaGVyZTEUMBIGA1UEAxMLV0xP - IFRlc3QgQ0EwIBcNMjMwNDExMTkxNjIzWhgPMjA1MzA0MDMxOTE2MjNaMDgxDDAK - BgNVBAoTA0lCTTESMBAGA1UECxMJV2ViU3BoZXJlMRQwEgYDVQQDEwtXTE8gVGVz - dCBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALJqE2F7Zxz99QX3 - TsZeZXFjuUCkpmgzxak4bx3LrrIHuMLANkLiRwPfx/eYAHUKoyFVPSomYbsO4Ism - W9oMft371f8gTYw4Fhtd1CBHqUjvS2eG1cQvyp0BpyLffutXMYszt3xlvDOvJPi/ - Pi5cviPs1mOah6vWw0U/4/9bxatmBHm9fOBfwAfkobNPapgEO6dq9PgazjsnKFEX - u4qCYB5tCOoAigs9JbJKkftz7lkIUNV/j57eoKXWhZ7jl0yIAobF88UvufsmvHl1 - 6TOG+NI9x2Lio4ktrMR84CCUtVfmlmwozZc94lAZzbgz+oFZ9Sqe2Lw5zhxsc8gy - f85pla0CAwEAAaNCMEAwDgYDVR0PAQH/BAQDAgKkMA8GA1UdEwEB/wQFMAMBAf8w - HQYDVR0OBBYEFE473h45vSaqjYLX4WwY/x88eqydMA0GCSqGSIb3DQEBCwUAA4IB - AQCK8UUbsylNruQ7BiUvwS3juuDnwOetQUl8nfiYfjGxI16DnTyxm1U8gqJfe56y - 1cHx7mCEp/S4Nzt0mHjmaXowef6m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VHSMEGDAWgBRO - O94eOb0mqo2C1+FsGP8fPHqsnTANBgkqhkiG9w0BAQsFAAOCAQEAlnb2K4bCWmVf - SWIhd2n4uXkqZZ0jv4sdDyB9E7bEZVcP9LOrd2y9AzEOoj60PH34CeiAASiAdnsA - hkMhfeuuhXqmiScRZOnpGv+7Zn2QtEzuyQR4jWypbazu7f/o3/PsCT/QWHF5wjby - iRQI8vOB8plJMHlEo5+VZWwQgwVliiLH+BoOsSUgAxwfJckTfHvJ+w2G0heLly93 - tRanvHec4tOuWG+W/ndFgjUuN4ruGlwOQp1cDMqhyFLlUCxcvOPVJfQETuq09G3w - xShDUu0sZVfPbLCPBclFHqBo1hwX4O5QxF8ZhuQf2HQDzENnUSRLsZ2KQ0xsiB3K - O3reDUrwAw== - -----END CERTIFICATE----- - certificate: | - -----BEGIN CERTIFICATE----- - MIIDJDCCAgygAwIBAgIQYjfKtSv5Ky2e9eT6lJGmSDANBgkqhkiG9w0BAQsFADA8 - MQwwCgYDVQQKEwNJQk0xEjAQBgNVBAsTCVdlYlNwaGVyZTEYMBYGA1UEAxMPV0xP - IFRlc3QgSW50IENBMCAXDTIzMDQxMTIwMjcxOFoYDzIwNTMwMzMwMDYyNzE4WjAb - MRkwFwYDVQQDExBUZXN0IGNlcnRpZmljYXRlMIIBIjANBgkqhkiG9w0BAQEFAAOC - AQ8AMIIBCgKCAQEAruaFXcJ5/VYJKxGQbLbBcVv7sfmpU3XkXtIOSyUKENp02gnF - CDvwQKN6CFJHwvabflSSkMGPoshqHMlX9X2QUJRI9MqoI9iSTz0NY6t/2yedrK+0 - vHzQrayD9UeEHWAyNKw794TB/9haUQQ0Ehp5jGFqk/p/U2g8CTyKM/41e3w2OnMA - HAfj4j1YMxDZ6jnxA3L6hGuAJwq+bg48I0xHx9cGEtQ9s4seKqaWeSGrlxwNW6up - 4e19IcK1wHw+Kr3Nz4Wp2xBMLxae7632jrwkzWwsHankVYbo/ldqT7bXtKXB3vsZ - Fekqv/rPH8zdIN3absSlX+79VCokR95JrxjkFwIDAQABo0EwPzAOBgNVHQ8BAf8E - BAMCBaAwDAYDVR0TAQH/BAIwADAfBgNVHSMEGDAWgBQwrZjlaIwdBnegir6ZX4rf - wg8YQzANBgkqhkiG9w0BAQsFAAOCAQEASccwVEJ5L18vjkmkUGcZOuGZfchM4mqY - pHSQpJEmRalKE6Ci9mhUY9ijHVx19h8JYCUycK7shK2a024Jxj80tgUH7lvt3CUU - 3fka3H8rqenGfYvKcQGu4/sp5G6C7Urt73y05n4itqojqX/EH5ie5lVCmnLaTD5O - rGbu5/wxlCL7U5pOE6AHOK8rHryRNIcy5WUmEtg834s68GOzU3lURDveITSRxH9U - FXuigxlTSyvbs4Kb/KIuZVo71IKvmg19NW086lja1NlI/Cvhiz6G7lzWZHYkWFAT - ytPQmBKGWBDeEph/kBi52auhlh1cpBguzXSufe0vB159nk6I+O43aQ== - -----END CERTIFICATE----- - destinationCACertificate: | - destCAcrt - key: | - tlskey - termination: reencrypt - diff --git a/bundle/tests/scorecard/kuttl/route-certificate/01-rc-with-cert.yaml b/bundle/tests/scorecard/kuttl/route-certificate/01-rc-with-cert.yaml deleted file mode 100644 index 895105c6..00000000 --- a/bundle/tests/scorecard/kuttl/route-certificate/01-rc-with-cert.yaml +++ /dev/null @@ -1,14 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: route-with-cert-rc -spec: - # Add fields here - applicationImage: registry.k8s.io/pause:3.2 - replicas: 1 - expose: true - route: - host: myapp.mycompany.com - certificateSecretRef: route-tls-secret - termination: reencrypt - diff --git a/bundle/tests/scorecard/kuttl/route-certificate/02-assert.yaml b/bundle/tests/scorecard/kuttl/route-certificate/02-assert.yaml deleted file mode 100644 index 51186be4..00000000 --- a/bundle/tests/scorecard/kuttl/route-certificate/02-assert.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: route-with-cert-rc -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 diff --git a/bundle/tests/scorecard/kuttl/route-certificate/02-delete-route.yaml b/bundle/tests/scorecard/kuttl/route-certificate/02-delete-route.yaml deleted file mode 100644 index 927fd0f5..00000000 --- a/bundle/tests/scorecard/kuttl/route-certificate/02-delete-route.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: route-with-cert-rc -spec: - # Add fields here - expose: true - route: - diff --git a/bundle/tests/scorecard/kuttl/route-certificate/02-errors.yaml b/bundle/tests/scorecard/kuttl/route-certificate/02-errors.yaml deleted file mode 100644 index e0805a20..00000000 --- a/bundle/tests/scorecard/kuttl/route-certificate/02-errors.yaml +++ /dev/null @@ -1,16 +0,0 @@ -apiVersion: route.openshift.io/v1 -kind: Route -metadata: - name: route-with-cert-rc -spec: - tls: - caCertificate: | - cacrt - certificate: | - tlscrt - destinationCACertificate: | - destCAcrt - key: | - tlskey - termination: reencrypt - diff --git a/bundle/tests/scorecard/kuttl/route-certificate/03-delete-secret.yaml b/bundle/tests/scorecard/kuttl/route-certificate/03-delete-secret.yaml deleted file mode 100644 index 01b127de..00000000 --- a/bundle/tests/scorecard/kuttl/route-certificate/03-delete-secret.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: kuttl.dev/v1beta1 -kind: TestStep -delete: -- apiVersion: rc.app.stacks/v1 - kind: RuntimeComponent -- apiVersion: v1 - kind: Secret - name: route-tls-secret - diff --git a/bundle/tests/scorecard/kuttl/routes/00-assert.yaml b/bundle/tests/scorecard/kuttl/routes/00-assert.yaml deleted file mode 100644 index 877238be..00000000 --- a/bundle/tests/scorecard/kuttl/routes/00-assert.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: route -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 ---- -apiVersion: route.openshift.io/v1 -kind: Route -metadata: - name: route -spec: - host: myapp.mycompany.com \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/routes/00-route.yaml b/bundle/tests/scorecard/kuttl/routes/00-route.yaml deleted file mode 100644 index 60cdaa2b..00000000 --- a/bundle/tests/scorecard/kuttl/routes/00-route.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: route -spec: - # Add fields here - applicationImage: registry.k8s.io/pause:3.2 - replicas: 1 - expose: true - route: - host: myapp.mycompany.com - - diff --git a/bundle/tests/scorecard/kuttl/routes/01-add-path.yaml b/bundle/tests/scorecard/kuttl/routes/01-add-path.yaml deleted file mode 100644 index ab1e3f05..00000000 --- a/bundle/tests/scorecard/kuttl/routes/01-add-path.yaml +++ /dev/null @@ -1,10 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: route -spec: - route: - host: myapp.mycompany.com - path: /mypath - - diff --git a/bundle/tests/scorecard/kuttl/routes/01-assert.yaml b/bundle/tests/scorecard/kuttl/routes/01-assert.yaml deleted file mode 100644 index d5c74d71..00000000 --- a/bundle/tests/scorecard/kuttl/routes/01-assert.yaml +++ /dev/null @@ -1,16 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: route -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 ---- -apiVersion: route.openshift.io/v1 -kind: Route -metadata: - name: route -spec: - host: myapp.mycompany.com - path: /mypath diff --git a/bundle/tests/scorecard/kuttl/routes/02-assert.yaml b/bundle/tests/scorecard/kuttl/routes/02-assert.yaml deleted file mode 100644 index ddea1af7..00000000 --- a/bundle/tests/scorecard/kuttl/routes/02-assert.yaml +++ /dev/null @@ -1,19 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: route - annotations: - step: "02" -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 ---- -apiVersion: route.openshift.io/v1 -kind: Route -metadata: - name: route - annotations: - step: "02" -spec: - host: myapp.mycompany.com diff --git a/bundle/tests/scorecard/kuttl/routes/02-errors.yaml b/bundle/tests/scorecard/kuttl/routes/02-errors.yaml deleted file mode 100644 index 5af9067f..00000000 --- a/bundle/tests/scorecard/kuttl/routes/02-errors.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: route.openshift.io/v1 -kind: Route -metadata: - name: route - annotations: - step: "02" -spec: - path: /mypath - diff --git a/bundle/tests/scorecard/kuttl/routes/02-remove-route-spec.yaml b/bundle/tests/scorecard/kuttl/routes/02-remove-route-spec.yaml deleted file mode 100644 index 0cbe90ee..00000000 --- a/bundle/tests/scorecard/kuttl/routes/02-remove-route-spec.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: route - annotations: - step: "02" -spec: - # Add fields here - applicationImage: registry.k8s.io/pause:3.2 - replicas: 1 - expose: true - route: diff --git a/bundle/tests/scorecard/kuttl/routes/03-assert.yaml b/bundle/tests/scorecard/kuttl/routes/03-assert.yaml deleted file mode 100644 index cb36302e..00000000 --- a/bundle/tests/scorecard/kuttl/routes/03-assert.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: route -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 diff --git a/bundle/tests/scorecard/kuttl/routes/03-delete-route.yaml b/bundle/tests/scorecard/kuttl/routes/03-delete-route.yaml deleted file mode 100644 index 5c0955d2..00000000 --- a/bundle/tests/scorecard/kuttl/routes/03-delete-route.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: route -spec: - # Add fields here - expose: false - diff --git a/bundle/tests/scorecard/kuttl/routes/03-errors.yaml b/bundle/tests/scorecard/kuttl/routes/03-errors.yaml deleted file mode 100644 index ca63ca6e..00000000 --- a/bundle/tests/scorecard/kuttl/routes/03-errors.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: route.openshift.io/v1 -kind: Route -metadata: - name: route diff --git a/bundle/tests/scorecard/kuttl/runtime_pullpolicy/00-always.yaml b/bundle/tests/scorecard/kuttl/runtime_pullpolicy/00-always.yaml deleted file mode 100644 index 7a2ef158..00000000 --- a/bundle/tests/scorecard/kuttl/runtime_pullpolicy/00-always.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: example-runtime-component -spec: - applicationImage: icr.io/appcafe/open-liberty:full-java8-openj9-ubi - replicas: 1 - pullPolicy: "Always" -# Setting affinity to ensure the pods are created on the same node as on Z and P if not the "never" stage -# may fail due to replication of image repository taking too long - affinity: - nodeAffinityLabels: - kuttlTest: test1 diff --git a/bundle/tests/scorecard/kuttl/runtime_pullpolicy/00-assert.yaml b/bundle/tests/scorecard/kuttl/runtime_pullpolicy/00-assert.yaml deleted file mode 100644 index 1a391448..00000000 --- a/bundle/tests/scorecard/kuttl/runtime_pullpolicy/00-assert.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: example-runtime-component -status: - readyReplicas: 1 ---- -apiVersion: v1 -kind: Pod -spec: - containers: - - imagePullPolicy: "Always" -metadata: - labels: - app.kubernetes.io/instance: example-runtime-component diff --git a/bundle/tests/scorecard/kuttl/runtime_pullpolicy/01-assert.yaml b/bundle/tests/scorecard/kuttl/runtime_pullpolicy/01-assert.yaml deleted file mode 100644 index 5c111ca9..00000000 --- a/bundle/tests/scorecard/kuttl/runtime_pullpolicy/01-assert.yaml +++ /dev/null @@ -1,17 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: example-runtime-component -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 ---- -apiVersion: v1 -kind: Pod -spec: - containers: - - imagePullPolicy: "IfNotPresent" -metadata: - labels: - app.kubernetes.io/instance: example-runtime-component diff --git a/bundle/tests/scorecard/kuttl/runtime_pullpolicy/01-ifNotPresent.yaml b/bundle/tests/scorecard/kuttl/runtime_pullpolicy/01-ifNotPresent.yaml deleted file mode 100644 index a1c5e98e..00000000 --- a/bundle/tests/scorecard/kuttl/runtime_pullpolicy/01-ifNotPresent.yaml +++ /dev/null @@ -1,6 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: example-runtime-component -spec: - pullPolicy: "IfNotPresent" diff --git a/bundle/tests/scorecard/kuttl/runtime_pullpolicy/02-assert.yaml b/bundle/tests/scorecard/kuttl/runtime_pullpolicy/02-assert.yaml deleted file mode 100644 index 005c670d..00000000 --- a/bundle/tests/scorecard/kuttl/runtime_pullpolicy/02-assert.yaml +++ /dev/null @@ -1,17 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: example-runtime-component -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 ---- -apiVersion: v1 -kind: Pod -spec: - containers: - - imagePullPolicy: "Never" -metadata: - labels: - app.kubernetes.io/instance: example-runtime-component diff --git a/bundle/tests/scorecard/kuttl/runtime_pullpolicy/02-never.yaml b/bundle/tests/scorecard/kuttl/runtime_pullpolicy/02-never.yaml deleted file mode 100644 index b51bedd4..00000000 --- a/bundle/tests/scorecard/kuttl/runtime_pullpolicy/02-never.yaml +++ /dev/null @@ -1,6 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: example-runtime-component -spec: - pullPolicy: "Never" \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/runtime_pullpolicy/03-assert.yaml b/bundle/tests/scorecard/kuttl/runtime_pullpolicy/03-assert.yaml deleted file mode 100644 index 5e84dffa..00000000 --- a/bundle/tests/scorecard/kuttl/runtime_pullpolicy/03-assert.yaml +++ /dev/null @@ -1,17 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: example-runtime-component -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 ---- -apiVersion: v1 -kind: Pod -spec: - containers: - - imagePullPolicy: IfNotPresent -metadata: - labels: - app.kubernetes.io/instance: example-runtime-component diff --git a/bundle/tests/scorecard/kuttl/runtime_pullpolicy/03-default.yaml b/bundle/tests/scorecard/kuttl/runtime_pullpolicy/03-default.yaml deleted file mode 100644 index ff322c0f..00000000 --- a/bundle/tests/scorecard/kuttl/runtime_pullpolicy/03-default.yaml +++ /dev/null @@ -1,6 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: example-runtime-component -spec: - pullPolicy: null \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/security-context/00-assert.yaml b/bundle/tests/scorecard/kuttl/security-context/00-assert.yaml deleted file mode 100644 index dd1791b6..00000000 --- a/bundle/tests/scorecard/kuttl/security-context/00-assert.yaml +++ /dev/null @@ -1,22 +0,0 @@ -# Check the default security context -apiVersion: apps/v1 -kind: Deployment -metadata: - name: security-context-rc -spec: - template: - spec: - containers: - - name: app - securityContext: - allowPrivilegeEscalation: false - capabilities: - drop: - - ALL - privileged: false - readOnlyRootFilesystem: false - runAsNonRoot: true -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 diff --git a/bundle/tests/scorecard/kuttl/security-context/00-default.yaml b/bundle/tests/scorecard/kuttl/security-context/00-default.yaml deleted file mode 100644 index de2a75da..00000000 --- a/bundle/tests/scorecard/kuttl/security-context/00-default.yaml +++ /dev/null @@ -1,7 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: security-context-rc -spec: - applicationImage: registry.k8s.io/pause:3.2 - replicas: 1 \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/security-context/01-assert.yaml b/bundle/tests/scorecard/kuttl/security-context/01-assert.yaml deleted file mode 100644 index 0a5239a3..00000000 --- a/bundle/tests/scorecard/kuttl/security-context/01-assert.yaml +++ /dev/null @@ -1,17 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: security-context-rc -spec: - template: - spec: - containers: - - name: app - securityContext: - allowPrivilegeEscalation: true - readOnlyRootFilesystem: true - runAsNonRoot: false -status: - replicas: 1 - readyReplicas: 1 - availableReplicas: 1 diff --git a/bundle/tests/scorecard/kuttl/security-context/01-override.yaml b/bundle/tests/scorecard/kuttl/security-context/01-override.yaml deleted file mode 100644 index 5e384add..00000000 --- a/bundle/tests/scorecard/kuttl/security-context/01-override.yaml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: security-context-rc -spec: - applicationImage: registry.k8s.io/pause:3.2 - replicas: 1 - securityContext: - allowPrivilegeEscalation: true - readOnlyRootFilesystem: true - runAsNonRoot: false \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/security-context/02-assert.yaml b/bundle/tests/scorecard/kuttl/security-context/02-assert.yaml deleted file mode 100644 index 6605c7ba..00000000 --- a/bundle/tests/scorecard/kuttl/security-context/02-assert.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: security-context-rc -spec: - template: - spec: - containers: - - name: app - securityContext: - privileged: true -status: - replicas: 1 - readyReplicas: 1 - availableReplicas: 1 diff --git a/bundle/tests/scorecard/kuttl/security-context/02-privileged-override.yaml b/bundle/tests/scorecard/kuttl/security-context/02-privileged-override.yaml deleted file mode 100644 index 328c6717..00000000 --- a/bundle/tests/scorecard/kuttl/security-context/02-privileged-override.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: security-context-rc -spec: - applicationImage: registry.k8s.io/pause:3.2 - replicas: 1 - securityContext: - privileged: true \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/security-context/03-assert.yaml b/bundle/tests/scorecard/kuttl/security-context/03-assert.yaml deleted file mode 100644 index ae87654c..00000000 --- a/bundle/tests/scorecard/kuttl/security-context/03-assert.yaml +++ /dev/null @@ -1,18 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: security-context-rc -spec: - template: - spec: - containers: - - name: app - securityContext: - capabilities: - add: - - NET_ADMIN - - SYS_TIME -status: - replicas: 1 - readyReplicas: 1 - availableReplicas: 1 diff --git a/bundle/tests/scorecard/kuttl/security-context/03-capabilities-override.yaml b/bundle/tests/scorecard/kuttl/security-context/03-capabilities-override.yaml deleted file mode 100644 index 884a0312..00000000 --- a/bundle/tests/scorecard/kuttl/security-context/03-capabilities-override.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: security-context-rc -spec: - applicationImage: registry.k8s.io/pause:3.2 - replicas: 1 - securityContext: - capabilities: - add: - - NET_ADMIN - - SYS_TIME \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/security-context/04-assert.yaml b/bundle/tests/scorecard/kuttl/security-context/04-assert.yaml deleted file mode 100644 index 9d80245d..00000000 --- a/bundle/tests/scorecard/kuttl/security-context/04-assert.yaml +++ /dev/null @@ -1,21 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: security-context-rc -spec: - template: - spec: - containers: - - name: app - securityContext: - allowPrivilegeEscalation: false - capabilities: - drop: - - ALL - privileged: false - readOnlyRootFilesystem: false - runAsNonRoot: true -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 diff --git a/bundle/tests/scorecard/kuttl/security-context/04-restore-default.yaml b/bundle/tests/scorecard/kuttl/security-context/04-restore-default.yaml deleted file mode 100644 index a76c046f..00000000 --- a/bundle/tests/scorecard/kuttl/security-context/04-restore-default.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: security-context-rc -spec: - applicationImage: registry.k8s.io/pause:3.2 - replicas: 1 - securityContext: - allowPrivilegeEscalation: null - capabilities: null - privileged: null - readOnlyRootFilesystem: null - runAsNonRoot: null \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/service-account-name/00-assert.yaml b/bundle/tests/scorecard/kuttl/service-account-name/00-assert.yaml deleted file mode 100644 index 219be4d9..00000000 --- a/bundle/tests/scorecard/kuttl/service-account-name/00-assert.yaml +++ /dev/null @@ -1,17 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: sa-name-rc -spec: - template: - spec: - serviceAccountName: sa-name-rc -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 ---- -kind: ServiceAccount -apiVersion: v1 -metadata: - name: sa-name-rc diff --git a/bundle/tests/scorecard/kuttl/service-account-name/00-default-sa-name.yaml b/bundle/tests/scorecard/kuttl/service-account-name/00-default-sa-name.yaml deleted file mode 100644 index f0746a44..00000000 --- a/bundle/tests/scorecard/kuttl/service-account-name/00-default-sa-name.yaml +++ /dev/null @@ -1,10 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: sa-name-rc - # Add fields here -spec: - applicationImage: registry.k8s.io/pause:3.2 - replicas: 1 - service: - port: 9080 \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/service-account-name/01-add-sa-name-deployment.yaml b/bundle/tests/scorecard/kuttl/service-account-name/01-add-sa-name-deployment.yaml deleted file mode 100644 index f76d5da7..00000000 --- a/bundle/tests/scorecard/kuttl/service-account-name/01-add-sa-name-deployment.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: sa-name-rc -spec: - # Add fields here - serviceAccountName: new-sa-name-rc ---- -kind: ServiceAccount -apiVersion: v1 -metadata: - name: new-sa-name-rc diff --git a/bundle/tests/scorecard/kuttl/service-account-name/01-assert.yaml b/bundle/tests/scorecard/kuttl/service-account-name/01-assert.yaml deleted file mode 100644 index 8ce22a1f..00000000 --- a/bundle/tests/scorecard/kuttl/service-account-name/01-assert.yaml +++ /dev/null @@ -1,17 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: sa-name-rc -spec: - template: - spec: - serviceAccountName: new-sa-name-rc -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 ---- -kind: ServiceAccount -apiVersion: v1 -metadata: - name: new-sa-name-rc diff --git a/bundle/tests/scorecard/kuttl/service-account-name/01-errors.yaml b/bundle/tests/scorecard/kuttl/service-account-name/01-errors.yaml deleted file mode 100644 index bd348fd3..00000000 --- a/bundle/tests/scorecard/kuttl/service-account-name/01-errors.yaml +++ /dev/null @@ -1,4 +0,0 @@ -kind: ServiceAccount -apiVersion: v1 -metadata: - name: sa-name-rc \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/service-account-name/02-assert.yaml b/bundle/tests/scorecard/kuttl/service-account-name/02-assert.yaml deleted file mode 100644 index 219be4d9..00000000 --- a/bundle/tests/scorecard/kuttl/service-account-name/02-assert.yaml +++ /dev/null @@ -1,17 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: sa-name-rc -spec: - template: - spec: - serviceAccountName: sa-name-rc -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 ---- -kind: ServiceAccount -apiVersion: v1 -metadata: - name: sa-name-rc diff --git a/bundle/tests/scorecard/kuttl/service-account-name/02-remove-sa-name.yaml b/bundle/tests/scorecard/kuttl/service-account-name/02-remove-sa-name.yaml deleted file mode 100644 index 9128efa2..00000000 --- a/bundle/tests/scorecard/kuttl/service-account-name/02-remove-sa-name.yaml +++ /dev/null @@ -1,7 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: sa-name-rc -spec: - # Add fields here - serviceAccountName: diff --git a/bundle/tests/scorecard/kuttl/service-account-name/03-add-sa-name-statefulset.yaml b/bundle/tests/scorecard/kuttl/service-account-name/03-add-sa-name-statefulset.yaml deleted file mode 100644 index c8a6ceaa..00000000 --- a/bundle/tests/scorecard/kuttl/service-account-name/03-add-sa-name-statefulset.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: sa-name-rc -spec: - # Add fields here - serviceAccountName: new-sa-name-rc - statefulSet: {} \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/service-account-name/03-assert.yaml b/bundle/tests/scorecard/kuttl/service-account-name/03-assert.yaml deleted file mode 100644 index d3fe3b53..00000000 --- a/bundle/tests/scorecard/kuttl/service-account-name/03-assert.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: apps/v1 -kind: StatefulSet -metadata: - name: sa-name-rc -spec: - template: - spec: - serviceAccountName: new-sa-name-rc -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 diff --git a/bundle/tests/scorecard/kuttl/service-account-name/03-errors.yaml b/bundle/tests/scorecard/kuttl/service-account-name/03-errors.yaml deleted file mode 100644 index bd348fd3..00000000 --- a/bundle/tests/scorecard/kuttl/service-account-name/03-errors.yaml +++ /dev/null @@ -1,4 +0,0 @@ -kind: ServiceAccount -apiVersion: v1 -metadata: - name: sa-name-rc \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/service-account-name/04-assert.yaml b/bundle/tests/scorecard/kuttl/service-account-name/04-assert.yaml deleted file mode 100644 index 5cef5585..00000000 --- a/bundle/tests/scorecard/kuttl/service-account-name/04-assert.yaml +++ /dev/null @@ -1,17 +0,0 @@ -apiVersion: apps/v1 -kind: StatefulSet -metadata: - name: sa-name-rc -spec: - template: - spec: - serviceAccountName: sa-name-rc -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 ---- -kind: ServiceAccount -apiVersion: v1 -metadata: - name: sa-name-rc diff --git a/bundle/tests/scorecard/kuttl/service-account-name/04-remove-sa-name.yaml b/bundle/tests/scorecard/kuttl/service-account-name/04-remove-sa-name.yaml deleted file mode 100644 index 9128efa2..00000000 --- a/bundle/tests/scorecard/kuttl/service-account-name/04-remove-sa-name.yaml +++ /dev/null @@ -1,7 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: sa-name-rc -spec: - # Add fields here - serviceAccountName: diff --git a/bundle/tests/scorecard/kuttl/service-account-name/05-delete.yaml b/bundle/tests/scorecard/kuttl/service-account-name/05-delete.yaml deleted file mode 100644 index 4ceddff3..00000000 --- a/bundle/tests/scorecard/kuttl/service-account-name/05-delete.yaml +++ /dev/null @@ -1,10 +0,0 @@ -# Need to manually delete resources as kuttl does not automatically delete these at the end of the test -apiVersion: kuttl.dev/v1beta1 -kind: TestStep -delete: -- apiVersion: rc.app.stacks/v1 - kind: RuntimeComponent - name: sa-name-rc -- apiVersion: v1 - kind: ServiceAccount - name: new-sa-name-rc \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/service-binding1/00-assert.yaml b/bundle/tests/scorecard/kuttl/service-binding1/00-assert.yaml deleted file mode 100644 index 93dc9c5d..00000000 --- a/bundle/tests/scorecard/kuttl/service-binding1/00-assert.yaml +++ /dev/null @@ -1,21 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: service-binding-rc -status: - binding: - name: service-binding-rc-expose-binding ---- -apiVersion: v1 -kind: Service -metadata: - name: service-binding-rc -spec: - ports: - - port: 8080 ---- -apiVersion: v1 -kind: Secret -type: Opaque -metadata: - name: service-binding-rc-expose-binding diff --git a/bundle/tests/scorecard/kuttl/service-binding1/00-service-binding.yaml b/bundle/tests/scorecard/kuttl/service-binding1/00-service-binding.yaml deleted file mode 100644 index 741a0c68..00000000 --- a/bundle/tests/scorecard/kuttl/service-binding1/00-service-binding.yaml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: service-binding-rc -spec: - # Add fields here - applicationImage: registry.k8s.io/pause:3.2 - replicas: 1 - service: - bindable: true - port: 8080 \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/service-binding1/01-assert.yaml b/bundle/tests/scorecard/kuttl/service-binding1/01-assert.yaml deleted file mode 100644 index 0eaf2007..00000000 --- a/bundle/tests/scorecard/kuttl/service-binding1/01-assert.yaml +++ /dev/null @@ -1,7 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: service-binding-rc -spec: - ports: - - port: 8080 diff --git a/bundle/tests/scorecard/kuttl/service-binding1/01-errors.yaml b/bundle/tests/scorecard/kuttl/service-binding1/01-errors.yaml deleted file mode 100644 index cc4867c4..00000000 --- a/bundle/tests/scorecard/kuttl/service-binding1/01-errors.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: service-binding-rc -status: - binding: - name: service-binding-rc-expose-binding ---- -apiVersion: v1 -kind: Secret -type: Opaque -metadata: - name: service-binding-rc-expose-binding \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/service-binding1/01-remove-service-binding.yaml b/bundle/tests/scorecard/kuttl/service-binding1/01-remove-service-binding.yaml deleted file mode 100644 index 1a15f78c..00000000 --- a/bundle/tests/scorecard/kuttl/service-binding1/01-remove-service-binding.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: service-binding-rc -spec: - # Add fields here - replicas: 1 - service: - bindable: false \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/service-binding2/00-assert.yaml b/bundle/tests/scorecard/kuttl/service-binding2/00-assert.yaml deleted file mode 100644 index 93dc9c5d..00000000 --- a/bundle/tests/scorecard/kuttl/service-binding2/00-assert.yaml +++ /dev/null @@ -1,21 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: service-binding-rc -status: - binding: - name: service-binding-rc-expose-binding ---- -apiVersion: v1 -kind: Service -metadata: - name: service-binding-rc -spec: - ports: - - port: 8080 ---- -apiVersion: v1 -kind: Secret -type: Opaque -metadata: - name: service-binding-rc-expose-binding diff --git a/bundle/tests/scorecard/kuttl/service-binding2/00-service-binding.yaml b/bundle/tests/scorecard/kuttl/service-binding2/00-service-binding.yaml deleted file mode 100644 index 741a0c68..00000000 --- a/bundle/tests/scorecard/kuttl/service-binding2/00-service-binding.yaml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: service-binding-rc -spec: - # Add fields here - applicationImage: registry.k8s.io/pause:3.2 - replicas: 1 - service: - bindable: true - port: 8080 \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/service-binding2/01-assert.yaml b/bundle/tests/scorecard/kuttl/service-binding2/01-assert.yaml deleted file mode 100644 index 0eaf2007..00000000 --- a/bundle/tests/scorecard/kuttl/service-binding2/01-assert.yaml +++ /dev/null @@ -1,7 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: service-binding-rc -spec: - ports: - - port: 8080 diff --git a/bundle/tests/scorecard/kuttl/service-binding2/01-errors.yaml b/bundle/tests/scorecard/kuttl/service-binding2/01-errors.yaml deleted file mode 100644 index cc4867c4..00000000 --- a/bundle/tests/scorecard/kuttl/service-binding2/01-errors.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: service-binding-rc -status: - binding: - name: service-binding-rc-expose-binding ---- -apiVersion: v1 -kind: Secret -type: Opaque -metadata: - name: service-binding-rc-expose-binding \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/service-binding2/01-remove-service-binding.yaml b/bundle/tests/scorecard/kuttl/service-binding2/01-remove-service-binding.yaml deleted file mode 100644 index ea7bb198..00000000 --- a/bundle/tests/scorecard/kuttl/service-binding2/01-remove-service-binding.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: service-binding-rc -spec: - # Add fields here - replicas: 1 - service: - bindable: \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/service-certificate/00-assert.yaml b/bundle/tests/scorecard/kuttl/service-certificate/00-assert.yaml deleted file mode 100644 index 24793678..00000000 --- a/bundle/tests/scorecard/kuttl/service-certificate/00-assert.yaml +++ /dev/null @@ -1,10 +0,0 @@ -apiVersion: v1 -kind: Secret -type: kubernetes.io/tls -metadata: - name: service-tls-secret -data: - ca.crt: Y2FjcnQK - destCA.crt: ZGVzdENBY3J0Cg== - tls.crt: dGxzY3J0Cg== - tls.key: dGxza2V5Cg== diff --git a/bundle/tests/scorecard/kuttl/service-certificate/00-secret.yaml b/bundle/tests/scorecard/kuttl/service-certificate/00-secret.yaml deleted file mode 100644 index 2af32618..00000000 --- a/bundle/tests/scorecard/kuttl/service-certificate/00-secret.yaml +++ /dev/null @@ -1,14 +0,0 @@ -apiVersion: v1 -kind: Secret -metadata: - name: service-tls-secret -type: kubernetes.io/tls -data: - # 'tlscrt' - tls.crt: dGxzY3J0Cg== - # 'tlskey' - tls.key: dGxza2V5Cg== - # 'cacrt' - ca.crt: Y2FjcnQK - # 'destCAcrt' - destCA.crt: ZGVzdENBY3J0Cg== diff --git a/bundle/tests/scorecard/kuttl/service-certificate/01-assert.yaml b/bundle/tests/scorecard/kuttl/service-certificate/01-assert.yaml deleted file mode 100644 index 66c22a4e..00000000 --- a/bundle/tests/scorecard/kuttl/service-certificate/01-assert.yaml +++ /dev/null @@ -1,26 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: service-with-cert-rc -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 -spec: - template: - spec: - containers: - - env: - - name: TLS_DIR - value: /etc/x509/certs - - name: SA_RESOURCE_VERSION - - name: SERVICE_CERT_SECRET_RESOURCE_VERSION - volumeMounts: - - name: svc-certificate - mountPath: /etc/x509/certs - readOnly: true - volumes: - - name: svc-certificate - secret: - defaultMode: 420 - secretName: service-tls-secret diff --git a/bundle/tests/scorecard/kuttl/service-certificate/01-rc-with-cert.yaml b/bundle/tests/scorecard/kuttl/service-certificate/01-rc-with-cert.yaml deleted file mode 100644 index 75dba305..00000000 --- a/bundle/tests/scorecard/kuttl/service-certificate/01-rc-with-cert.yaml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: service-with-cert-rc -spec: - # Add fields here - applicationImage: registry.k8s.io/pause:3.2 - replicas: 1 - service: - certificateSecretRef: service-tls-secret - diff --git a/bundle/tests/scorecard/kuttl/service-certificate/02-assert.yaml b/bundle/tests/scorecard/kuttl/service-certificate/02-assert.yaml deleted file mode 100644 index 804808ea..00000000 --- a/bundle/tests/scorecard/kuttl/service-certificate/02-assert.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: service-with-cert-rc -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 diff --git a/bundle/tests/scorecard/kuttl/service-certificate/02-errors.yaml b/bundle/tests/scorecard/kuttl/service-certificate/02-errors.yaml deleted file mode 100644 index ca7cdf18..00000000 --- a/bundle/tests/scorecard/kuttl/service-certificate/02-errors.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: service-with-cert-rc -spec: - template: - spec: - volumes: - - name: svc-certificate - secret: - defaultMode: 420 - secretName: service-tls-secret diff --git a/bundle/tests/scorecard/kuttl/service-certificate/02-remove-cert.yaml b/bundle/tests/scorecard/kuttl/service-certificate/02-remove-cert.yaml deleted file mode 100644 index 59acec1a..00000000 --- a/bundle/tests/scorecard/kuttl/service-certificate/02-remove-cert.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: service-with-cert-rc -spec: - # Add fields here - service: - certificateSecretRef: - diff --git a/bundle/tests/scorecard/kuttl/service-certificate/03-delete-secret.yaml b/bundle/tests/scorecard/kuttl/service-certificate/03-delete-secret.yaml deleted file mode 100644 index cc63ddfa..00000000 --- a/bundle/tests/scorecard/kuttl/service-certificate/03-delete-secret.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: kuttl.dev/v1beta1 -kind: TestStep -delete: -- apiVersion: rc.app.stacks/v1 - kind: RuntimeComponent -- apiVersion: v1 - kind: Secret - name: service-tls-secret - diff --git a/bundle/tests/scorecard/kuttl/sidecar-deployment/00-assert.yaml b/bundle/tests/scorecard/kuttl/sidecar-deployment/00-assert.yaml deleted file mode 100644 index f9a1978f..00000000 --- a/bundle/tests/scorecard/kuttl/sidecar-deployment/00-assert.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: sidecar-runtime-deployment -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 diff --git a/bundle/tests/scorecard/kuttl/sidecar-deployment/00-runtime-basic.yaml b/bundle/tests/scorecard/kuttl/sidecar-deployment/00-runtime-basic.yaml deleted file mode 100644 index 0566b8b6..00000000 --- a/bundle/tests/scorecard/kuttl/sidecar-deployment/00-runtime-basic.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: sidecar-runtime-deployment -spec: - # Add fields here - applicationImage: registry.k8s.io/pause:3.2 - replicas: 1 - diff --git a/bundle/tests/scorecard/kuttl/sidecar-deployment/01-add-sidecar.yaml b/bundle/tests/scorecard/kuttl/sidecar-deployment/01-add-sidecar.yaml deleted file mode 100644 index 737e9f6d..00000000 --- a/bundle/tests/scorecard/kuttl/sidecar-deployment/01-add-sidecar.yaml +++ /dev/null @@ -1,10 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: sidecar-runtime-deployment -spec: - # Add fields here - sidecarContainers: - - image: registry.k8s.io/pause:3.2 - name: sidecar-container - diff --git a/bundle/tests/scorecard/kuttl/sidecar-deployment/01-assert.yaml b/bundle/tests/scorecard/kuttl/sidecar-deployment/01-assert.yaml deleted file mode 100644 index 8f34a328..00000000 --- a/bundle/tests/scorecard/kuttl/sidecar-deployment/01-assert.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: sidecar-runtime-deployment -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 ---- -apiVersion: v1 -kind: Pod -spec: - containers: - - name: app - - name: sidecar-container diff --git a/bundle/tests/scorecard/kuttl/sidecar-deployment/02-assert.yaml b/bundle/tests/scorecard/kuttl/sidecar-deployment/02-assert.yaml deleted file mode 100644 index c9190315..00000000 --- a/bundle/tests/scorecard/kuttl/sidecar-deployment/02-assert.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: v1 -kind: Pod -spec: - containers: - - name: app -metadata: - labels: - app.kubernetes.io/instance: sidecar-runtime-deployment diff --git a/bundle/tests/scorecard/kuttl/sidecar-deployment/02-errors.yaml b/bundle/tests/scorecard/kuttl/sidecar-deployment/02-errors.yaml deleted file mode 100644 index dcfed09a..00000000 --- a/bundle/tests/scorecard/kuttl/sidecar-deployment/02-errors.yaml +++ /dev/null @@ -1,6 +0,0 @@ -apiVersion: v1 -kind: Pod -spec: - containers: - - name: app - - name: sidecar-container diff --git a/bundle/tests/scorecard/kuttl/sidecar-deployment/02-remove-sidecar.yaml b/bundle/tests/scorecard/kuttl/sidecar-deployment/02-remove-sidecar.yaml deleted file mode 100644 index 380c0fb8..00000000 --- a/bundle/tests/scorecard/kuttl/sidecar-deployment/02-remove-sidecar.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: sidecar-runtime-deployment -spec: - # Add fields here - sidecarContainers: - diff --git a/bundle/tests/scorecard/kuttl/sidecar-stateful/00-assert.yaml b/bundle/tests/scorecard/kuttl/sidecar-stateful/00-assert.yaml deleted file mode 100644 index f8ba0f8c..00000000 --- a/bundle/tests/scorecard/kuttl/sidecar-stateful/00-assert.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: apps/v1 -kind: StatefulSet -metadata: - name: sidecar-runtime-component -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 diff --git a/bundle/tests/scorecard/kuttl/sidecar-stateful/00-runtime-basic.yaml b/bundle/tests/scorecard/kuttl/sidecar-stateful/00-runtime-basic.yaml deleted file mode 100644 index c02c03b2..00000000 --- a/bundle/tests/scorecard/kuttl/sidecar-stateful/00-runtime-basic.yaml +++ /dev/null @@ -1,10 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: sidecar-runtime-component -spec: - # Add fields here - applicationImage: registry.k8s.io/pause:3.2 - replicas: 1 - statefulSet: {} - diff --git a/bundle/tests/scorecard/kuttl/sidecar-stateful/01-add-sidecar.yaml b/bundle/tests/scorecard/kuttl/sidecar-stateful/01-add-sidecar.yaml deleted file mode 100644 index f69ecef3..00000000 --- a/bundle/tests/scorecard/kuttl/sidecar-stateful/01-add-sidecar.yaml +++ /dev/null @@ -1,10 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: sidecar-runtime-component -spec: - # Add fields here - sidecarContainers: - - image: registry.k8s.io/pause:3.2 - name: sidecar-container - diff --git a/bundle/tests/scorecard/kuttl/sidecar-stateful/01-assert.yaml b/bundle/tests/scorecard/kuttl/sidecar-stateful/01-assert.yaml deleted file mode 100644 index bb3600a8..00000000 --- a/bundle/tests/scorecard/kuttl/sidecar-stateful/01-assert.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: apps/v1 -kind: StatefulSet -metadata: - name: sidecar-runtime-component -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 ---- -apiVersion: v1 -kind: Pod -spec: - containers: - - name: app - - name: sidecar-container diff --git a/bundle/tests/scorecard/kuttl/sidecar-stateful/02-assert.yaml b/bundle/tests/scorecard/kuttl/sidecar-stateful/02-assert.yaml deleted file mode 100644 index 14140095..00000000 --- a/bundle/tests/scorecard/kuttl/sidecar-stateful/02-assert.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: v1 -kind: Pod -spec: - containers: - - name: app -metadata: - labels: - app.kubernetes.io/instance: sidecar-runtime-component diff --git a/bundle/tests/scorecard/kuttl/sidecar-stateful/02-errors.yaml b/bundle/tests/scorecard/kuttl/sidecar-stateful/02-errors.yaml deleted file mode 100644 index dcfed09a..00000000 --- a/bundle/tests/scorecard/kuttl/sidecar-stateful/02-errors.yaml +++ /dev/null @@ -1,6 +0,0 @@ -apiVersion: v1 -kind: Pod -spec: - containers: - - name: app - - name: sidecar-container diff --git a/bundle/tests/scorecard/kuttl/sidecar-stateful/02-remove-sidecar.yaml b/bundle/tests/scorecard/kuttl/sidecar-stateful/02-remove-sidecar.yaml deleted file mode 100644 index 7e3beec6..00000000 --- a/bundle/tests/scorecard/kuttl/sidecar-stateful/02-remove-sidecar.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: sidecar-runtime-component -spec: - # Add fields here - sidecarContainers: - diff --git a/bundle/tests/scorecard/kuttl/statefulset-strategy/00-assert.yaml b/bundle/tests/scorecard/kuttl/statefulset-strategy/00-assert.yaml deleted file mode 100644 index 81ed8b83..00000000 --- a/bundle/tests/scorecard/kuttl/statefulset-strategy/00-assert.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: apps/v1 -kind: StatefulSet -metadata: - name: statefulset-strategy-rc -spec: - updateStrategy: - type: RollingUpdate - rollingUpdate: - partition: 0 -status: - replicas: 3 - readyReplicas: 3 - updatedReplicas: 3 diff --git a/bundle/tests/scorecard/kuttl/statefulset-strategy/00-runtime-rolling-update.yaml b/bundle/tests/scorecard/kuttl/statefulset-strategy/00-runtime-rolling-update.yaml deleted file mode 100644 index 2931363f..00000000 --- a/bundle/tests/scorecard/kuttl/statefulset-strategy/00-runtime-rolling-update.yaml +++ /dev/null @@ -1,16 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: statefulset-strategy-rc -spec: - # Add fields here - applicationImage: registry.k8s.io/pause:3.2 - replicas: 3 - statefulSet: - updateStrategy: - type: RollingUpdate - rollingUpdate: - partition: 0 - storage: - size: 100Mi - mountPath: /data diff --git a/bundle/tests/scorecard/kuttl/statefulset-strategy/01-assert.yaml b/bundle/tests/scorecard/kuttl/statefulset-strategy/01-assert.yaml deleted file mode 100644 index 952a9943..00000000 --- a/bundle/tests/scorecard/kuttl/statefulset-strategy/01-assert.yaml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: apps/v1 -kind: StatefulSet -metadata: - name: statefulset-strategy-rc -spec: - updateStrategy: - type: OnDelete -status: - replicas: 3 - readyReplicas: 3 - updatedReplicas: 3 diff --git a/bundle/tests/scorecard/kuttl/statefulset-strategy/01-runtime-ondelete-update.yaml b/bundle/tests/scorecard/kuttl/statefulset-strategy/01-runtime-ondelete-update.yaml deleted file mode 100644 index 6c9c4be1..00000000 --- a/bundle/tests/scorecard/kuttl/statefulset-strategy/01-runtime-ondelete-update.yaml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: statefulset-strategy-rc -spec: - # Add fields here - replicas: 3 - statefulSet: - updateStrategy: - rollingUpdate: null - type: OnDelete \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/statefulset-strategy/02-assert.yaml b/bundle/tests/scorecard/kuttl/statefulset-strategy/02-assert.yaml deleted file mode 100644 index df7c14fc..00000000 --- a/bundle/tests/scorecard/kuttl/statefulset-strategy/02-assert.yaml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: apps/v1 -kind: StatefulSet -metadata: - name: statefulset-strategy-rc -spec: - updateStrategy: - type: RollingUpdate -status: - replicas: 3 - readyReplicas: 3 - updatedReplicas: 3 diff --git a/bundle/tests/scorecard/kuttl/statefulset-strategy/02-remove-strategy.yaml b/bundle/tests/scorecard/kuttl/statefulset-strategy/02-remove-strategy.yaml deleted file mode 100644 index d3ff5c6f..00000000 --- a/bundle/tests/scorecard/kuttl/statefulset-strategy/02-remove-strategy.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: statefulset-strategy-rc -spec: - # Add fields here - replicas: 3 - statefulSet: - updateStrategy: \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/statefulset-strategy/README.txt b/bundle/tests/scorecard/kuttl/statefulset-strategy/README.txt deleted file mode 100644 index 67d3f5eb..00000000 --- a/bundle/tests/scorecard/kuttl/statefulset-strategy/README.txt +++ /dev/null @@ -1,2 +0,0 @@ -In order to run this test, the cluster must -have a storage class enabled diff --git a/bundle/tests/scorecard/kuttl/storage/00-assert.yaml b/bundle/tests/scorecard/kuttl/storage/00-assert.yaml deleted file mode 100644 index 25ab2e91..00000000 --- a/bundle/tests/scorecard/kuttl/storage/00-assert.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: apps/v1 -kind: StatefulSet -metadata: - name: storage-rc -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 diff --git a/bundle/tests/scorecard/kuttl/storage/00-runtime-storage.yaml b/bundle/tests/scorecard/kuttl/storage/00-runtime-storage.yaml deleted file mode 100644 index 93c34100..00000000 --- a/bundle/tests/scorecard/kuttl/storage/00-runtime-storage.yaml +++ /dev/null @@ -1,15 +0,0 @@ -# With some storage configured, the operator -# should create a stateful set -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: storage-rc -spec: - # Add fields here - applicationImage: registry.k8s.io/pause:3.2 - replicas: 1 - statefulSet: - storage: - size: "10Mi" - mountPath: "/mnt/data" - diff --git a/bundle/tests/scorecard/kuttl/storage/01-assert.yaml b/bundle/tests/scorecard/kuttl/storage/01-assert.yaml deleted file mode 100644 index f5234311..00000000 --- a/bundle/tests/scorecard/kuttl/storage/01-assert.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: storage-rc -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 diff --git a/bundle/tests/scorecard/kuttl/storage/01-runtime-no-storage.yaml b/bundle/tests/scorecard/kuttl/storage/01-runtime-no-storage.yaml deleted file mode 100644 index d6cd3c0a..00000000 --- a/bundle/tests/scorecard/kuttl/storage/01-runtime-no-storage.yaml +++ /dev/null @@ -1,10 +0,0 @@ -# Removing the storage, and the operator should -# move from a stateful set back to a deployment -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: storage-rc -spec: - # Add fields here - statefulSet: - diff --git a/bundle/tests/scorecard/kuttl/storage/02-delete-pvc.yaml b/bundle/tests/scorecard/kuttl/storage/02-delete-pvc.yaml deleted file mode 100644 index 1359771c..00000000 --- a/bundle/tests/scorecard/kuttl/storage/02-delete-pvc.yaml +++ /dev/null @@ -1,8 +0,0 @@ -# Persistent Volume Claims do not get deleted when the statefulset get deleted so manually delete it -# to pass the next test stage -apiVersion: kuttl.dev/v1beta1 -kind: TestStep -delete: -- apiVersion: v1 - kind: PersistentVolumeClaim - name: pvc-storage-rc-0 \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/storage/02-errors.yaml b/bundle/tests/scorecard/kuttl/storage/02-errors.yaml deleted file mode 100644 index e526755c..00000000 --- a/bundle/tests/scorecard/kuttl/storage/02-errors.yaml +++ /dev/null @@ -1,11 +0,0 @@ -kind: PersistentVolumeClaim -apiVersion: v1 -metadata: - name: pvc-storage-rc-0 -spec: - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 10Mi - volumeMode: Filesystem \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/storage/03-assert.yaml b/bundle/tests/scorecard/kuttl/storage/03-assert.yaml deleted file mode 100644 index cc256f21..00000000 --- a/bundle/tests/scorecard/kuttl/storage/03-assert.yaml +++ /dev/null @@ -1,25 +0,0 @@ -apiVersion: apps/v1 -kind: StatefulSet -metadata: - name: storage-rc - annotations: - testStep: storage-03 -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 ---- -kind: PersistentVolumeClaim -apiVersion: v1 -metadata: - name: pvc-storage-rc-0 -spec: - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 10Mi - storageClassName: rook-cephfs - volumeMode: Filesystem -status: - phase: Bound diff --git a/bundle/tests/scorecard/kuttl/storage/03-runtime-storage-class-name.yaml b/bundle/tests/scorecard/kuttl/storage/03-runtime-storage-class-name.yaml deleted file mode 100644 index fe773ea1..00000000 --- a/bundle/tests/scorecard/kuttl/storage/03-runtime-storage-class-name.yaml +++ /dev/null @@ -1,17 +0,0 @@ -# With some storage.className configured, the operator -# should create a PVC with the configured storageClassName -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: storage-rc - annotations: - testStep: storage-03 -spec: - # Add fields here - applicationImage: registry.k8s.io/pause:3.2 - replicas: 1 - statefulSet: - storage: - size: "10Mi" - mountPath: "/mnt/data" - className: rook-cephfs diff --git a/bundle/tests/scorecard/kuttl/storage/04-delete-pvc.yaml b/bundle/tests/scorecard/kuttl/storage/04-delete-pvc.yaml deleted file mode 100644 index 0cc18dba..00000000 --- a/bundle/tests/scorecard/kuttl/storage/04-delete-pvc.yaml +++ /dev/null @@ -1,10 +0,0 @@ -# Clean up the Runtime Component and PVC as you cannot change the Persistent Storage once created -apiVersion: kuttl.dev/v1beta1 -kind: TestStep -delete: -- apiVersion: rc.app.stacks/v1 - kind: RuntimeComponent - name: storage-rc -- apiVersion: v1 - kind: PersistentVolumeClaim - name: pvc-storage-rc-0 \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/storage/04-errors.yaml b/bundle/tests/scorecard/kuttl/storage/04-errors.yaml deleted file mode 100644 index 17404752..00000000 --- a/bundle/tests/scorecard/kuttl/storage/04-errors.yaml +++ /dev/null @@ -1,16 +0,0 @@ -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: storage-rc ---- -kind: PersistentVolumeClaim -apiVersion: v1 -metadata: - name: pvc-storage-rc-0 -spec: - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 10Mi - volumeMode: Filesystem \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/storage/05-assert.yaml b/bundle/tests/scorecard/kuttl/storage/05-assert.yaml deleted file mode 100644 index ac33989c..00000000 --- a/bundle/tests/scorecard/kuttl/storage/05-assert.yaml +++ /dev/null @@ -1,23 +0,0 @@ -apiVersion: apps/v1 -kind: StatefulSet -metadata: - name: storage-rc -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 ---- -kind: PersistentVolumeClaim -apiVersion: v1 -metadata: - name: pvc-storage-rc-0 -spec: - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 15Mi - storageClassName: rook-cephfs - volumeMode: Filesystem -status: - phase: Bound diff --git a/bundle/tests/scorecard/kuttl/storage/05-pvc-overwrite.yaml b/bundle/tests/scorecard/kuttl/storage/05-pvc-overwrite.yaml deleted file mode 100644 index 100b8f12..00000000 --- a/bundle/tests/scorecard/kuttl/storage/05-pvc-overwrite.yaml +++ /dev/null @@ -1,26 +0,0 @@ -# Check that if voulmeClaimTemplate exists it overrides storage.size and storage.className -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: storage-rc -spec: - # Add fields here - applicationImage: registry.k8s.io/pause:3.2 - replicas: 1 - volumeMounts: - - name: pvc - mountPath: /data - statefulSet: - storage: - size: "10Mi" - mountPath: "/mnt/data" - className: rook-ceph-block - volumeClaimTemplate: - metadata: - name: pvc - spec: - accessModes: ["ReadWriteOnce"] - resources: - requests: - storage: 15Mi - storageClassName: rook-cephfs \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/storage/06-delete-pvc.yaml b/bundle/tests/scorecard/kuttl/storage/06-delete-pvc.yaml deleted file mode 100644 index c07a5826..00000000 --- a/bundle/tests/scorecard/kuttl/storage/06-delete-pvc.yaml +++ /dev/null @@ -1,10 +0,0 @@ -# Clean up the Persistent Volume Claim after tests end -apiVersion: kuttl.dev/v1beta1 -kind: TestStep -delete: -- apiVersion: rc.app.stacks/v1 - kind: RuntimeComponent - name: storage-rc -- apiVersion: v1 - kind: PersistentVolumeClaim - name: pvc-storage-rc-0 \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/storage/README.txt b/bundle/tests/scorecard/kuttl/storage/README.txt deleted file mode 100644 index 67d3f5eb..00000000 --- a/bundle/tests/scorecard/kuttl/storage/README.txt +++ /dev/null @@ -1,2 +0,0 @@ -In order to run this test, the cluster must -have a storage class enabled diff --git a/bundle/tests/scorecard/kuttl/volume/00-assert.yaml b/bundle/tests/scorecard/kuttl/volume/00-assert.yaml deleted file mode 100644 index e8659ee5..00000000 --- a/bundle/tests/scorecard/kuttl/volume/00-assert.yaml +++ /dev/null @@ -1,10 +0,0 @@ -apiVersion: v1 -kind: Secret -type: kubernetes.io/tls -metadata: - name: test-volume-secret -data: - ca.crt: Y2FjcnQK - destCA.crt: ZGVzdENBY3J0Cg== - tls.crt: dGxzY3J0Cg== - tls.key: dGxza2V5Cg== diff --git a/bundle/tests/scorecard/kuttl/volume/00-secret.yaml b/bundle/tests/scorecard/kuttl/volume/00-secret.yaml deleted file mode 100644 index 3f448366..00000000 --- a/bundle/tests/scorecard/kuttl/volume/00-secret.yaml +++ /dev/null @@ -1,14 +0,0 @@ -apiVersion: v1 -kind: Secret -metadata: - name: test-volume-secret -type: kubernetes.io/tls -data: - # 'tlscrt' - tls.crt: dGxzY3J0Cg== - # 'tlskey' - tls.key: dGxza2V5Cg== - # 'cacrt' - ca.crt: Y2FjcnQK - # 'destCAcrt' - destCA.crt: ZGVzdENBY3J0Cg== diff --git a/bundle/tests/scorecard/kuttl/volume/01-assert.yaml b/bundle/tests/scorecard/kuttl/volume/01-assert.yaml deleted file mode 100644 index e0bd3fc8..00000000 --- a/bundle/tests/scorecard/kuttl/volume/01-assert.yaml +++ /dev/null @@ -1,23 +0,0 @@ - -apiVersion: apps/v1 -kind: Deployment -metadata: - name: volume-rc -spec: - template: - spec: - containers: - - volumeMounts: - - name: test-volume - mountPath: /test - subPath: test - - name: svc-certificate - volumes: - - name: test-volume - secret: - secretName: test-volume-secret - - name: svc-certificate -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 diff --git a/bundle/tests/scorecard/kuttl/volume/01-runtime-deployment-volume.yaml b/bundle/tests/scorecard/kuttl/volume/01-runtime-deployment-volume.yaml deleted file mode 100644 index a107ae4a..00000000 --- a/bundle/tests/scorecard/kuttl/volume/01-runtime-deployment-volume.yaml +++ /dev/null @@ -1,17 +0,0 @@ -# Creating deployment with volume -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: volume-rc -spec: - # Add fields here - applicationImage: registry.k8s.io/pause:3.2 - replicas: 1 - volumeMounts: - - name: test-volume - mountPath: /test - subPath: test - volumes: - - name: test-volume - secret: - secretName: test-volume-secret \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/volume/02-assert.yaml b/bundle/tests/scorecard/kuttl/volume/02-assert.yaml deleted file mode 100644 index 768d7d0b..00000000 --- a/bundle/tests/scorecard/kuttl/volume/02-assert.yaml +++ /dev/null @@ -1,9 +0,0 @@ - -apiVersion: apps/v1 -kind: Deployment -metadata: - name: volume-rc -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 diff --git a/bundle/tests/scorecard/kuttl/volume/02-errors.yaml b/bundle/tests/scorecard/kuttl/volume/02-errors.yaml deleted file mode 100644 index 58807c16..00000000 --- a/bundle/tests/scorecard/kuttl/volume/02-errors.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: volume-rc -spec: - template: - spec: - containers: - - volumeMounts: - - name: test-volume - volumes: - - name: test-volume \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/volume/02-runtime-deployment-no-volume.yaml b/bundle/tests/scorecard/kuttl/volume/02-runtime-deployment-no-volume.yaml deleted file mode 100644 index 2ddc6467..00000000 --- a/bundle/tests/scorecard/kuttl/volume/02-runtime-deployment-no-volume.yaml +++ /dev/null @@ -1,8 +0,0 @@ -# Removing volumes field should remove deployment's volume -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: volume-rc -spec: - volumeMounts: - volumes: \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/volume/03-assert.yaml b/bundle/tests/scorecard/kuttl/volume/03-assert.yaml deleted file mode 100644 index 57589800..00000000 --- a/bundle/tests/scorecard/kuttl/volume/03-assert.yaml +++ /dev/null @@ -1,23 +0,0 @@ - -apiVersion: apps/v1 -kind: StatefulSet -metadata: - name: volume-rc -spec: - template: - spec: - containers: - - volumeMounts: - - name: test-volume - mountPath: /test - subPath: test - - name: svc-certificate - volumes: - - name: test-volume - secret: - secretName: test-volume-secret - - name: svc-certificate -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 diff --git a/bundle/tests/scorecard/kuttl/volume/03-runtime-statefulset-volume.yaml b/bundle/tests/scorecard/kuttl/volume/03-runtime-statefulset-volume.yaml deleted file mode 100644 index b1e4817e..00000000 --- a/bundle/tests/scorecard/kuttl/volume/03-runtime-statefulset-volume.yaml +++ /dev/null @@ -1,15 +0,0 @@ -# Creating statefulset with volume -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: volume-rc -spec: - statefulSet: {} - volumeMounts: - - name: test-volume - mountPath: /test - subPath: test - volumes: - - name: test-volume - secret: - secretName: test-volume-secret \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/volume/04-assert.yaml b/bundle/tests/scorecard/kuttl/volume/04-assert.yaml deleted file mode 100644 index 41d6f78d..00000000 --- a/bundle/tests/scorecard/kuttl/volume/04-assert.yaml +++ /dev/null @@ -1,9 +0,0 @@ - -apiVersion: apps/v1 -kind: StatefulSet -metadata: - name: volume-rc -status: - replicas: 1 - readyReplicas: 1 - updatedReplicas: 1 diff --git a/bundle/tests/scorecard/kuttl/volume/04-errors.yaml b/bundle/tests/scorecard/kuttl/volume/04-errors.yaml deleted file mode 100644 index 3d9c6d76..00000000 --- a/bundle/tests/scorecard/kuttl/volume/04-errors.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: apps/v1 -kind: StatefulSet -metadata: - name: volume-rc -spec: - template: - spec: - containers: - - volumeMounts: - - name: test-volume - volumes: - - name: test-volume diff --git a/bundle/tests/scorecard/kuttl/volume/04-runtime-statefulset-no-volume.yaml b/bundle/tests/scorecard/kuttl/volume/04-runtime-statefulset-no-volume.yaml deleted file mode 100644 index 560ccb22..00000000 --- a/bundle/tests/scorecard/kuttl/volume/04-runtime-statefulset-no-volume.yaml +++ /dev/null @@ -1,8 +0,0 @@ -# Removing volumes field should remove statefulset's volume -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: volume-rc -spec: - volumeMounts: - volumes: \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/volume/05-assert.yaml b/bundle/tests/scorecard/kuttl/volume/05-assert.yaml deleted file mode 100644 index 9640892b..00000000 --- a/bundle/tests/scorecard/kuttl/volume/05-assert.yaml +++ /dev/null @@ -1,17 +0,0 @@ - -apiVersion: serving.knative.dev/v1 -kind: Service -metadata: - name: volume-rc -spec: - template: - spec: - containers: - - volumeMounts: - - name: test-volume - mountPath: /test - subPath: test - volumes: - - name: test-volume - secret: - secretName: test-volume-secret \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/volume/05-runtime-knative-volume.yaml b/bundle/tests/scorecard/kuttl/volume/05-runtime-knative-volume.yaml deleted file mode 100644 index 0a51721d..00000000 --- a/bundle/tests/scorecard/kuttl/volume/05-runtime-knative-volume.yaml +++ /dev/null @@ -1,16 +0,0 @@ -# Creating Knative service with volume -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: volume-rc -spec: - createKnativeService: true - statefulSet: - volumeMounts: - - name: test-volume - mountPath: /test - subPath: test - volumes: - - name: test-volume - secret: - secretName: test-volume-secret \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/volume/06-assert.yaml b/bundle/tests/scorecard/kuttl/volume/06-assert.yaml deleted file mode 100644 index 050f3923..00000000 --- a/bundle/tests/scorecard/kuttl/volume/06-assert.yaml +++ /dev/null @@ -1,5 +0,0 @@ - -apiVersion: serving.knative.dev/v1 -kind: Service -metadata: - name: volume-rc \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/volume/06-errors.yaml b/bundle/tests/scorecard/kuttl/volume/06-errors.yaml deleted file mode 100644 index 6c87ecd6..00000000 --- a/bundle/tests/scorecard/kuttl/volume/06-errors.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: serving.knative.dev/v1 -kind: Service -metadata: - name: volume-rc -spec: - template: - spec: - containers: - - volumeMounts: - - name: test-volume - volumes: - - name: test-volume \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/volume/06-runtime-knative-no-volume.yaml b/bundle/tests/scorecard/kuttl/volume/06-runtime-knative-no-volume.yaml deleted file mode 100644 index d26cb44f..00000000 --- a/bundle/tests/scorecard/kuttl/volume/06-runtime-knative-no-volume.yaml +++ /dev/null @@ -1,8 +0,0 @@ -# Removing volumes field should remove knative service's volume -apiVersion: rc.app.stacks/v1 -kind: RuntimeComponent -metadata: - name: volume-rc -spec: - volumeMounts: - volumes: \ No newline at end of file diff --git a/bundle/tests/scorecard/kuttl/volume/07-delete.yaml b/bundle/tests/scorecard/kuttl/volume/07-delete.yaml deleted file mode 100644 index cfdab5b8..00000000 --- a/bundle/tests/scorecard/kuttl/volume/07-delete.yaml +++ /dev/null @@ -1,10 +0,0 @@ -# Need to manually delete resources as kuttl does not automatically delete these at the end of the test -apiVersion: kuttl.dev/v1beta1 -kind: TestStep -delete: -- apiVersion: v1 - kind: Secret - name: test-volume-secret -- apiVersion: rc.app.stacks/v1 - kind: RuntimeComponent - name: volume-rc \ No newline at end of file diff --git a/config/rbac/kind-kuttl-rbac.yaml b/config/rbac/kind-kuttl-rbac.yaml index 73446454..9bcc8113 100644 --- a/config/rbac/kind-kuttl-rbac.yaml +++ b/config/rbac/kind-kuttl-rbac.yaml @@ -38,11 +38,18 @@ rules: resources: - namespaces - pods - - services - routes verbs: - get - list +- apiGroups: + - "" + resources: + - services + verbs: + - get + - list + - patch - apiGroups: - apps resources: @@ -89,6 +96,8 @@ rules: - services verbs: - get + - create + - delete - apiGroups: - rc.app.stacks resources: @@ -127,3 +136,4 @@ rules: verbs: - get - list + - delete diff --git a/config/rbac/kuttl-rbac.yaml b/config/rbac/kuttl-rbac.yaml index 73be24d9..efc61e17 100644 --- a/config/rbac/kuttl-rbac.yaml +++ b/config/rbac/kuttl-rbac.yaml @@ -38,11 +38,18 @@ rules: resources: - namespaces - pods - - services - routes verbs: - get - list +- apiGroups: + - "" + resources: + - services + verbs: + - get + - list + - patch - apiGroups: - apps resources: @@ -126,3 +133,4 @@ rules: verbs: - get - list + - delete diff --git a/scripts/acceptance-test.sh b/scripts/acceptance-test.sh deleted file mode 100755 index 92cb3b1a..00000000 --- a/scripts/acceptance-test.sh +++ /dev/null @@ -1,84 +0,0 @@ -#!/usr/bin/env bash - -set -e -o pipefail - -echo "acceptance-test" - -# Build e2e runner image -docker build -t e2e-runner:latest -f Dockerfile.e2e --build-arg GO_VERSION="${GO_VERSION}" . || { - echo "Error: Failed to build e2e runner" - exit 1 -} - -declare -A E2E_TESTS=( - [ocp-e2e-run-${ARCHITECTURE}]=$(cat <<-EOF - --volume /var/run/docker.sock:/var/run/docker.sock \ - --env PIPELINE_USERNAME=${PIPELINE_USERNAME} \ - --env PIPELINE_PASSWORD=${PIPELINE_PASSWORD} \ - --env PIPELINE_REGISTRY=${PIPELINE_REGISTRY} \ - --env PIPELINE_OPERATOR_IMAGE=${PIPELINE_OPERATOR_IMAGE} \ - --env DOCKER_USERNAME=${DOCKER_USERNAME} \ - --env DOCKER_PASSWORD=${DOCKER_PASSWORD} \ - --env CLUSTER_URL=${CLUSTER_URL} \ - --env CLUSTER_USER=${CLUSTER_USER} \ - --env CLUSTER_TOKEN=${CLUSTER_TOKEN} \ - --env TRAVIS_BUILD_NUMBER=${BUILD_NUMBER} \ - --env RELEASE_TARGET=${RELEASE_TARGET} \ - --env CATALOG_IMAGE=${PIPELINE_REGISTRY}/${PIPELINE_OPERATOR_IMAGE}-catalog:${RELEASE_TARGET} \ - --env DEBUG_FAILURE=${DEBUG_FAILURE} \ - --env INSTALL_MODE=${INSTALL_MODE} \ - --env ARCHITECTURE=${ARCHITECTURE} \ - --env DIGEST=${DIGEST} \ - e2e-runner:latest \ - make test-pipeline-e2e - EOF - ) -) - -if [[ "${SKIP_KIND_E2E_TEST}" != true && "${ARCHITECTURE}" == "X" ]]; then - E2E_TESTS[kind-e2e-run]=$(cat <<- EOF - --volume /var/run/docker.sock:/var/run/docker.sock \ - --env FYRE_USER=${FYRE_USER} \ - --env FYRE_KEY=${FYRE_KEY} \ - --env FYRE_PASS=${FYRE_PASS} \ - --env FYRE_PRODUCT_GROUP_ID=${FYRE_PRODUCT_GROUP_ID} \ - --env TRAVIS_BUILD_NUMBER=${BUILD_NUMBER} \ - --env VM_SIZE=l \ - --env DEBUG_FAILURE=${DEBUG_FAILURE} \ - e2e-runner:latest \ - make kind-e2e-test - EOF - ) -else - echo "SKIP_KIND_E2E was set or architecture is not X. Skipping kind e2e..." -fi - -echo "****** Starting e2e tests" -for test in "${!E2E_TESTS[@]}"; do - docker run -d --name ${test} ${E2E_TESTS[${test}]} || { - echo "Error: Failed to start ${test}" - exit 1 - } -done - -echo "****** Waiting for e2e tests to finish" -for test in "${!E2E_TESTS[@]}"; do - until docker ps --all --no-trunc --filter name="^/${test}$" --format='{{.Status}}' | grep -q Exited; do - sleep 60 - done - echo "${test} finished" - docker logs ${test} -done - -echo "****** Test results" -exit_code=0 -for test in "${!E2E_TESTS[@]}"; do - status="$(docker ps --all --no-trunc --filter name="^/${test}$" --format='{{.Status}}')" - if echo "${status}" | grep -q "Exited (0)"; then - echo "[PASSED] ${test}" - else - echo "[FAILED] ${test}: ${status}" - exit_code=1 - fi -done -exit ${exit_code} diff --git a/scripts/create-fyre-stack.sh b/scripts/create-fyre-stack.sh deleted file mode 100755 index 7c4b0bd9..00000000 --- a/scripts/create-fyre-stack.sh +++ /dev/null @@ -1,163 +0,0 @@ -#!/usr/bin/env bash - -set -e -o pipefail - -usage() { - echo "usage: $0 --cluster-name --user --key --product-group-id " - echo - echo "OPTIONAL ARGUMENTS" - echo " --os-name Desired OS. Defaults to 'Ubuntu 22.04'" - echo " --size Valid options: s (2CPU, 2GB, 250GB), m (2CPU, 4GB, 250GB), l (4CPU, 8GB, 250GB), or x (8CPU, 16GB, 250GB). Defaults to 's'" - echo " --count Desired number of nodes. Defaults to '1'" - echo " --init-script Init script to configure new node(s). Requires --pass to be set" - echo " --pass Fyre password to ssh onto VM" - exit 1 -} - -# PRODUCT_GROUP_ID for 'WAS - ALL' -> 52 - -main() { - parse_args "${@}" - - BUILD_DATA="""{ - \"type\" : \"simple\", - \"cluster_prefix\" :\"${CLUSTER_NAME}\", - \"instance_type\" : \"virtual_server\", - \"size\" : \"${VM_SIZE}\", - \"platform\": \"x\", - \"os\" : \"${VM_OS_NAME}\", - \"count\" : \"${VM_COUNT}\", - \"product_group_id\": \"${PRODUCT_GROUP_ID}\" - }""" - - BUILD_TIME_START=${SECONDS} - CURL_OPTS="-s -k -u ${FYRE_USER}:${FYRE_KEY}" - - # Avoid creating cluster if it already exists - BUILD_REQUEST_STATUS="$(curl ${CURL_OPTS} "https://api.fyre.ibm.com/rest/v1/?operation=query&request=showclusters" | jq -r --arg cluster_name "${CLUSTER_NAME}" '.clusters[] | select(.name == $cluster_name) | .status')" - if [[ -z "${BUILD_REQUEST_STATUS}" ]]; then - # Build the single-VM cluster - echo "Sending build request to Fyre..." - echo "${BUILD_DATA}" - echo - BUILD_REQUEST_URL="$(curl ${CURL_OPTS} -X POST 'https://api.fyre.ibm.com/rest/v1/?operation=build' --data "${BUILD_DATA}" | jq '.details' | sed 's/"//g')" - BUILD_REQUEST_INFO="$(curl ${CURL_OPTS} ${BUILD_REQUEST_URL})" - BUILD_REQUEST_STATUS="$(echo ${BUILD_REQUEST_INFO} | jq -r '.request[0].status')" - if [[ "${BUILD_REQUEST_STATUS}" == "error" ]]; then - echo "Build request failed:" - echo "${BUILD_REQUEST_INFO}" | jq -r '.request[0].error_details' - exit 1 - fi - - BUILD_COMPLETE_PERCENT="$(curl ${CURL_OPTS} "https://fyre.ibm.com/embers/checkbuild?cluster=${CLUSTER_NAME}")" - - until [ ${BUILD_COMPLETE_PERCENT} -eq 100 ] - do - BUILD_COMPLETE_PERCENT="$(curl ${CURL_OPTS} "https://fyre.ibm.com/embers/checkbuild?cluster=${CLUSTER_NAME}")" - BUILD_REQUEST_STATUS="$(curl ${CURL_OPTS} "https://api.fyre.ibm.com/rest/v1/?operation=query&request=showclusters" | jq --arg cluster_name "${CLUSTER_NAME}" '.clusters[] | select(.name == $cluster_name) | .status' | sed 's/"//g')" - echo "VM status is ${BUILD_REQUEST_STATUS} (${BUILD_COMPLETE_PERCENT}%)" - sleep 5 - done - fi - - if [[ -n "${INIT_SCRIPT}" ]]; then - for i in $(seq 1 "${VM_COUNT}"); do - local cluster_instance="${CLUSTER_NAME}${i}" - sshpass -p "${FYRE_PASS}" ssh -o LogLevel=ERROR -o StrictHostKeyChecking=no "root@${cluster_instance}.fyre.ibm.com" 'bash -s' < "${INIT_SCRIPT}" - done - fi - - BUILD_TIME_END=${SECONDS} - BUILD_TIME_DIFF=$((BUILD_TIME_END-STBUILD_TIME_STARTART)) - BUILD_TIME_MINUTES=$((BUILD_TIME_DIFF/60)) - BUILD_TIME_COUNTED_MINUTES=$((BUILD_TIME_MINUTES*60)) - BUILD_TIME_SECONDS=$((BUILD_TIME_DIFF-BUILD_TIME_COUNTED_MINUTES)) - - echo "Your VM was built in ${BUILD_TIME_MINUTES} minutes, ${BUILD_TIME_SECONDS} seconds." -} - -parse_args() { - while [ $# -gt 0 ]; do - case "${1}" in - -n|--cluster-name) - shift - readonly CLUSTER_NAME="${1}" - ;; - -u|--user) - shift - readonly FYRE_USER="${1}" - ;; - -k|--key) - shift - readonly FYRE_KEY="${1}" - ;; - -p|--pass) - shift - readonly FYRE_PASS="${1}" - ;; - -pgid|--product-group-id) - shift - readonly PRODUCT_GROUP_ID="${1}" - ;; - -os|--os-name) - shift - readonly VM_OS_NAME="${1}" - ;; - -s|--size) - shift - readonly VM_SIZE="${1}" - ;; - -c|--count) - shift - readonly VM_COUNT="${1}" - ;; - -i|--init-script) - shift - readonly INIT_SCRIPT="${1}" - ;; - *) - echo "Error: Invalid argument - ${1}" - echo "$usage" - exit 1 - ;; - esac - shift - done - - if [[ -z "${CLUSTER_NAME}" ]] || - [[ -z "${FYRE_USER}" ]] || - [[ -z "${FYRE_KEY}" ]] || - [[ -z "${PRODUCT_GROUP_ID}" ]]; then - usage - fi - - if [[ -n "${INIT_SCRIPT}" ]] && [[ -z "${FYRE_PASS}" ]]; then - echo "Error: Fyre password required with --init-script" - usage - fi - - if [[ -n "${INIT_SCRIPT}" ]] && [[ ! -f "${INIT_SCRIPT}" ]]; then - echo "Error: Init script does not exist" - usage - fi - - if [[ -z "${VM_OS_NAME}" ]]; then - readonly VM_OS_NAME="Ubuntu 22.04" - fi - - if [[ -z "${VM_SIZE}" ]]; then - readonly VM_SIZE="m" - elif [[ "${VM_SIZE}" != "s" ]] && [[ "${VM_SIZE}" != "m" ]] && [[ "${VM_SIZE}" != "l" ]] && [[ "${VM_SIZE}" != "x" ]]; then - echo "Error: Expected size of 's', 'm', 'l', or 'x'; got '${VM_SIZE}'" - usage - fi - - if [[ -z "${VM_COUNT}" ]]; then - readonly VM_COUNT="1" - elif [[ "${VM_COUNT}" -lt 1 ]] || [[ "${VM_COUNT}" -gt 100 ]]; then - echo "Error: VM count must be between [1, 100]; got ${VM_COUNT}" - usage - fi -} - -main "${@}" diff --git a/scripts/delete-fyre-stack.sh b/scripts/delete-fyre-stack.sh deleted file mode 100755 index 1c1ab0b7..00000000 --- a/scripts/delete-fyre-stack.sh +++ /dev/null @@ -1,53 +0,0 @@ -#!/usr/bin/env bash - -set -e - -usage() { - echo "usage: $0 --cluster-name --user --key " - exit 1 -} - -# PRODUCT_GROUP_ID for 'WAS - ALL' -> 52 - -main() { - parse_args "${@}" - - CURL_OPTS="-s -k -u ${FYRE_USER}:${FYRE_KEY}" - - # Build the single-VM cluster - echo "Sending delete request to Fyre..." - curl ${CURL_OPTS} -X POST 'https://api.fyre.ibm.com/rest/v1/?operation=delete' --data "{\"cluster_name\":\"${CLUSTER_NAME}\"}" > /dev/null -} - -parse_args() { - while [ $# -gt 0 ]; do - case "${1}" in - -n|--cluster-name) - shift - readonly CLUSTER_NAME="${1}" - ;; - -u|--user) - shift - readonly FYRE_USER="${1}" - ;; - -k|--key) - shift - readonly FYRE_KEY="${1}" - ;; - *) - echo "Error: Invalid argument - ${1}" - echo "$usage" - exit 1 - ;; - esac - shift - done - - if [[ -z "${CLUSTER_NAME}" ]] || - [[ -z "${FYRE_USER}" ]] || - [[ -z "${FYRE_KEY}" ]]; then - usage - fi -} - -main "${@}" diff --git a/scripts/e2e-kind.sh b/scripts/e2e-kind.sh deleted file mode 100755 index 449905df..00000000 --- a/scripts/e2e-kind.sh +++ /dev/null @@ -1,247 +0,0 @@ -#!/bin/bash - -readonly usage="Usage: scripts/e2e-kind.sh --test-tag -u -k -p -pgid " - -readonly KUBE_CLUSTER_NAME="kind-e2e-cluster" -readonly BUILD_IMAGE="runtime-component-operator:latest" - -readonly RUNASUSER="\n securityContext:\n runAsUser: 1001" -readonly APPIMAGE='applicationImage:\s' -readonly IMAGE='registry.k8s.io\/pause:3.2' - -main() { - parse_args "$@" - - if [[ "${DEBUG_FAILURE}" != true ]]; then - trap trap_cleanup EXIT - else - echo "#####################################################################################" - echo "WARNING: --debug-failure is set. If e2e tests fail, the Fyre VM used will not be" - echo "cleaned up for debugging/troubleshooting. YOU MUST DELETE THE KIND CLUSTER VM when" - echo "you're done, or else provisioning new test VMs will eventually fail. To cleanup" - echo "manually, just delete run the following command:" - echo "$(dirname $0)/delete-fyre-stack.sh --cluster-name ${REMOTE_CLUSTER_NAME} --user ${FYRE_USER} --key " - echo "#####################################################################################" - fi - - echo "****** Setting up test environment..." - setup_env - install_tools - build_push - install_rco - setup_test - - if [[ "${SETUP_ONLY}" == true ]]; then - exit 0 - fi - - echo "****** Starting kind scorecard tests..." - operator-sdk scorecard --verbose --kubeconfig ${HOME}/.kube/config --selector=suite=kuttlsuite --namespace "${TEST_NAMESPACE}" --service-account scorecard-kuttl --wait-time 45m ./bundle || { - echo "****** Scorecard tests failed..." - exit 1 - } - - exit 0 -} - -# setup_env: Create a Fyre VM with kind installed and -setup_env() { - if test -f "/usr/share/keyrings/docker-archive-keyring.gpg"; then - rm /usr/share/keyrings/docker-archive-keyring.gpg - fi - curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg - local release="$(cat /etc/os-release | grep UBUNTU_CODENAME | cut -d '=' -f 2)" - echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu ${release} stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null - - sudo apt-get update -y - sudo apt-get install -y docker-ce docker-ce-cli containerd.io sshpass jq - - if ! command -v kubectl &> /dev/null; then - echo "****** Installing kubectl v1.24.2..." - curl -Lo /usr/local/bin/kubectl https://storage.googleapis.com/kubernetes-release/release/v1.24.2/bin/linux/amd64/kubectl && chmod +x /usr/local/bin/kubectl - fi - - # Create a remote Kind cluster - $(dirname $0)/create-fyre-stack.sh --cluster-name "${REMOTE_CLUSTER_NAME}" --user "${FYRE_USER}" --key "${FYRE_KEY}" --pass "${FYRE_PASS}" --product-group-id "${FYRE_PRODUCT_GROUP_ID}" --init-script $(dirname $0)/setup-kind-cluster.sh || { - echo "Error: unable to build kind cluster" - exit 1 - } - - # Grab kube config - mkdir -p ${HOME}/.kube - sshpass -p "${FYRE_PASS}" scp -o LogLevel=ERROR -o StrictHostKeyChecking=no root@${REMOTE_CLUSTER}:/root/.kube/config ${HOME}/.kube/config - - kubectl config set-context ${KUBE_CLUSTER_NAME} --namespace="${TEST_NAMESPACE}" || { - echo "Error: Failed to set kube context" - exit 1 - } - - ## Add label to node for affinity test - kubectl label node --overwrite "e2e-cluster-worker" kuttlTest=test1 - - - ## Create service account for Kuttl tests - kubectl apply -f config/rbac/kind-kuttl-rbac.yaml -} - -install_tools() { - echo "****** Installing Prometheus" - kubectl apply --server-side -f https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/main/bundle.yaml - - echo "****** Installing Knative" - kubectl apply -f https://github.com/knative/serving/releases/download/knative-v1.7.4/serving-crds.yaml - kubectl apply -f https://github.com/knative/eventing/releases/download/knative-v1.7.4/eventing-crds.yaml - - echo "****** Installing Cert Manager" - kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.9.2/cert-manager.yaml - - echo "****** Enabling Ingress" - kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/main/deploy/static/provider/kind/deploy.yaml - wait_for ingress-nginx ingress-nginx-controller -} - -build_push() { - ## Build Docker image and push to private registry - docker build -t "${LOCAL_REGISTRY}/${BUILD_IMAGE}" . || { - echo "Error: Failed to build Runtime Component Operator" - exit 1 - } - - docker save ${LOCAL_REGISTRY}/${BUILD_IMAGE} | sshpass -p "${FYRE_PASS}" ssh -o LogLevel=ERROR -o StrictHostKeyChecking=no -C ${REMOTE_CLUSTER} "docker load && docker push ${LOCAL_REGISTRY}/${BUILD_IMAGE}" || { - echo "Error: Failed to push Runtime Component Operator" - exit 1 - } -} - -# install_rco: Kustomize and install RuntimeComponent-Operator -install_rco() { - echo "****** Installing RCO in namespace: ${TEST_NAMESPACE}" - kubectl create -f bundle/manifests/rc.app.stacks_runtimecomponents.yaml - kubectl create -f bundle/manifests/rc.app.stacks_runtimeoperations.yaml - - sed -i "s|image: .*|image: ${LOCAL_REGISTRY}/${BUILD_IMAGE}| - s|namespace: .*|namespace: ${TEST_NAMESPACE}|" internal/deploy/kustomize/daily/base/runtime-component-operator.yaml - - sed -i "s|namespace: .*|namespace: ${TEST_NAMESPACE}|" internal/deploy/kustomize/daily/base/runtime-component-roles.yaml - - kubectl create -f internal/deploy/kustomize/daily/base/runtime-component-operator.yaml -n ${TEST_NAMESPACE} - kubectl create -f internal/deploy/kustomize/daily/base/runtime-component-roles.yaml -n ${TEST_NAMESPACE} - - # Wait for operator deployment to be ready - wait_for ${TEST_NAMESPACE} rco-controller-manager -} - -setup_test() { - echo "****** Installing kuttl" - mkdir krew && cd krew - curl -OL https://github.com/kubernetes-sigs/krew/releases/latest/download/krew-linux_amd64.tar.gz \ - && tar -xvzf krew-linux_amd64.tar.gz \ - && ./krew-linux_amd64 install krew - cd .. && rm -rf krew - export PATH="$HOME/.krew/bin:$PATH" - kubectl krew install kuttl - - ## Add tests for kind cluster - mv bundle/tests/scorecard/kind-kuttl/ingress bundle/tests/scorecard/kuttl/ - mv bundle/tests/scorecard/kind-kuttl/ingress-certificate bundle/tests/scorecard/kuttl/ - mv bundle/tests/scorecard/kind-kuttl/ingress-manage-tls bundle/tests/scorecard/kuttl/ - - ## Remove tests that do not apply for kind cluster - mv bundle/tests/scorecard/kuttl/network-policy bundle/tests/scorecard/kind-kuttl/ - mv bundle/tests/scorecard/kuttl/network-policy-multiple-apps bundle/tests/scorecard/kind-kuttl/ - mv bundle/tests/scorecard/kuttl/routes bundle/tests/scorecard/kind-kuttl/ - mv bundle/tests/scorecard/kuttl/route-certificate bundle/tests/scorecard/kind-kuttl/ - mv bundle/tests/scorecard/kuttl/manage-tls bundle/tests/scorecard/kind-kuttl/ - mv bundle/tests/scorecard/kuttl/image-stream bundle/tests/scorecard/kind-kuttl/ - - files=($(grep -rwl 'bundle/tests/scorecard/kuttl/' -e $APPIMAGE$IMAGE)) - for file in "${files[@]}"; do - sed -i "s/$IMAGE/$IMAGE$RUNASUSER/" $file - done -} - -## cleanup: Delete generated resources that are not bound to a test TEST_NAMESPACE. -cleanup() { - echo - echo "****** Cleaning up test environment..." - $(dirname $0)/delete-fyre-stack.sh --cluster-name ${REMOTE_CLUSTER_NAME} --user "${FYRE_USER}" --key "${FYRE_KEY}" - - ## Restore tests and configs - git clean -fd bundle/tests/scorecard - git restore bundle/tests/scorecard internal/deploy -} - -trap_cleanup() { - # Preserve exit code - last_status=$? - - if [[ "${SETUP_ONLY}" != true ]]; then - cleanup - fi - - exit ${last_status} -} - -wait_for() { - local namespace="${1}" - local deployment="${2}" - - while [[ $(kubectl get deploy -n "${namespace}" "${deployment}" -o jsonpath='{.status.readyReplicas}') -ne "1" ]]; do - echo "****** Waiting for ${namespace}/${deployment} to be ready..." - sleep 10 - done - echo "****** ${namespace}/${deployment} is ready..." -} - - -parse_args() { - while [ $# -gt 0 ]; do - case "$1" in - --test-tag) - shift - readonly TEST_TAG="${1}" - ;; - -u|--user) - shift - readonly FYRE_USER="${1}" - ;; - -k|--key) - shift - readonly FYRE_KEY="${1}" - ;; - -p|--pass) - shift - readonly FYRE_PASS="${1}" - ;; - -pgid|--product-group-id) - shift - readonly FYRE_PRODUCT_GROUP_ID="${1}" - ;; - --setup-only) - readonly SETUP_ONLY=true - ;; - --debug-failure) - readonly DEBUG_FAILURE=true - ;; - *) - echo "Error: Invalid argument - $1" - echo "$usage" - exit 1 - ;; - esac - shift - done - - if [[ -z "${TEST_TAG}" ]]; then - echo "****** Missing test id, see usage" - echo "${usage}" - exit 1 - fi - - readonly TEST_NAMESPACE="rco-test" - readonly REMOTE_CLUSTER_NAME="rco-test-${TEST_TAG}-cluster" - readonly REMOTE_CLUSTER="${REMOTE_CLUSTER_NAME}1.fyre.ibm.com" - readonly LOCAL_REGISTRY="localhost:5000" -} - -main "$@" diff --git a/scripts/pipeline/clusterWait.sh b/scripts/pipeline/clusterWait.sh deleted file mode 100755 index e63fec0a..00000000 --- a/scripts/pipeline/clusterWait.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/usr/bin/env bash -arch=$1 - - -rco_demand_id=$(get_env RCO_DEMAND_ID_$arch) -export demandId=$rco_demand_id -echo "calling ebc_waitForDemand.sh for $arch" -cd ebc-gateway-http - -export ebcEnvironment=prod - -json=$(./ebc_waitForDemand.sh) -rc=$? -echo "return from ebc_waitForDemand.sh for $arch" - -cd .. - -if [[ "$rc" == 0 ]]; then - echo "EBC create of id: $rco_demand_id cluster successful" -else - echo "EBC create of id: $rco_demand_id cluster failed, ask #was-ebc slack channel for help mentioning your demand id: $rco_demand_id" - exit 1 -fi - -status=$(jq -c '.status' <<< $json) -ip=$(jq -c '.machineAddresses.ocpinf' <<< $json) -ip=$(echo "$ip" | tr -d '"') - -PRIVATE_KEY="$(get_env private_key "")" -echo -n "${PRIVATE_KEY}" | base64 -d > id_rsa - -chmod 600 id_rsa -pwd -ls -l id_rsa - -echo "oc version:" -oc version - -token=$(ssh -o StrictHostKeyChecking=no -i id_rsa root@$ip "cat ~/auth/kubeadmin-password") - -echo "json=$json" -echo "status=$status" -echo "token=$token" -echo $ip - diff --git a/scripts/pipeline/getCluster.sh b/scripts/pipeline/getCluster.sh deleted file mode 100755 index 1880b41c..00000000 --- a/scripts/pipeline/getCluster.sh +++ /dev/null @@ -1,87 +0,0 @@ -#!/usr/bin/env bash -arch=$1 -timestamp=$(date +%s) -echo $timestamp -rco_demand_id="rco_$timestamp"_"$arch" -echo "rco_demand_id=$rco_demand_id" - -#git clone https://$(get_env git-token)@github.ibm.com/elastic-build-cloud/ebc-gateway-http.git -cd ebc-gateway-http - -echo "PRE_RELEASE=$PRE_RELEASE" -echo "arch=$arch" - -export intranetId_USR=$(get_env ebc_id) -export intranetId_PSW=$(get_env ebc_pw) - -export demandId=$rco_demand_id -set_env RCO_DEMAND_ID_$arch "$rco_demand_id" -echo "rco_demand_id=$rco_demand_id" - -PRE_RELEASE=$(get_env pre-release) -PRE_RELEASE="$(echo "$PRE_RELEASE" | tr '[:upper:]' '[:lower:]')" -if [[ ! -z "$PRE_RELEASE" && "$PRE_RELEASE" != "false" && "$PRE_RELEASE" != "no" ]]; then - echo "<<1>>" - rhcos_level=$(get_env pre-release-rhcos-url) - ocp_level=$(get_env pre-release-ocp-url) - echo "this is a pre-release OCP cluster build" - echo "ocp level: $ocp_level" - echo "core os level: $rhcos_level" - export ebc_fyre_install_url=${ocp_level}/openshift-install-linux.tar.gz - export ebc_fyre_client_url=${ocp_level}/openshift-client-linux.tar.gz - if [[ "$arch" == "X" ]]; then - # X values - echo "<<1a>>" - export ebc_plan=svl-onepipeline-ocpplus_x_custom.yml - export ebc_fyre_kernel_url=${rhcos_level}/rhcos-live-kernel-x86_64 - export ebc_fyre_initramfs_url=${rhcos_level}/rhcos-live-initramfs.x86_64.img - export ebc_fyre_metal_url=${rhcos_level}/rhcos-metal.x86_64.raw.gz - export ebc_fyre_rootfs_url=${rhcos_level}/rhcos-live-rootfs.x86_64.img - fi - if [[ "$arch" == "Z" ]]; then - # Z values - export ebc_shortlist=onepipeline-ocpplus_z_custom.yml - export ebc_fyre_kernel_url=${rhcos_level_z}/rhcos-live-kernel-s390x - export ebc_fyre_initramfs_url=${rhcos_level_z}/rhcos-live-initramfs.s390x.img - export ebc_fyre_metal_url=${rhcos_level_z}/rhcos-metal.s390x.raw.gz - export ebc_fyre_rootfs_url=${rhcos_level_z}/rhcos-live-rootfs.s390x.img - fi - if [[ "$arch" == "P" ]]; then - # P - export ebc_plan=svl-onepipeline-ocpplus_p_custom.yml - export ebc_fyre_kernel_url=${rhcos_level_p}/rhcos-live-kernel-ppc64le - export ebc_fyre_initramfs_url=${rhcos_level_p}/rhcos-live-initramfs.ppc64le.img - export ebc_fyre_metal_url=${rhcos_level_p}/rhcos-metal.ppc64le.raw.gz - export ebc_fyre_rootfs_url=${rhcos_level_p}/rhcos-live-rootfs.ppc64le.img - fi -else - if [[ "$arch" == "X" ]]; then - export ebc_plan=svl-onepipeline-ocpplus_x.yml - echo "setting ebc plan for X: $ebc_plan" - fi - if [[ "$arch" == "Z" ]]; then - # export ebc_plan=svl-onepipeline-ocpplus_z.yml - export ebc_shortlist=onepipeline-ocpplus_z.yml - fi - if [[ "$arch" == "P" ]]; then - export ebc_plan=svl-onepipeline-ocpplus_p.yml - fi - export ebc_ocp_version=$(get_env ocp_version) -fi -# prod or dev, start out with dev -export ebcEnvironment=prod -# priority is 30 to start, prod priority may be 100 -export ebc_priority=30 -export ebc_autoCompleteAfterXHours=$(get_env ebc_autocomplete_hours "6") -# gather pipeline URL and place in following env var -reason="https://cloud.ibm.com/devops/pipelines/tekton/${PIPELINE_ID}/runs/${PIPELINE_RUN_ID}" -export ebc_reasonForEnvironment=$reason - -./ebc_demand.sh -rc=$? -if [[ "$rc" == 0 ]]; then - echo "cluster requested" -else - echo "Outage impacting demand of cluster, try again later" - exit 1 -fi diff --git a/scripts/pipeline/ocp-cluster-e2e.sh b/scripts/pipeline/ocp-cluster-e2e.sh deleted file mode 100755 index bd3b7105..00000000 --- a/scripts/pipeline/ocp-cluster-e2e.sh +++ /dev/null @@ -1,445 +0,0 @@ -#!/bin/bash - -readonly usage="Usage: ocp-cluster-e2e.sh -u -p --cluster-url --cluster-token --registry-name --registry-image --registry-user --registry-password --release --test-tag --catalog-image --channel --architecture --digest --version " -readonly OC_CLIENT_VERSION="latest-4.10" -readonly CONTROLLER_MANAGER_NAME="rco-controller-manager" - -# setup_env: Download oc cli, log into our persistent cluster, and create a test project -setup_env() { - echo "****** Installing OC CLI..." - # Install kubectl and oc - curl -L https://mirror.openshift.com/pub/openshift-v4/clients/ocp/${OC_CLIENT_VERSION}/openshift-client-linux.tar.gz | tar xvz - sudo mv oc kubectl /usr/local/bin/ - - if [[ "$ARCHITECTURE" == "Z" ]]; then - { - echo "****** Installing kubectl-kuttl..." - curl -L -o kubectl-kuttl https://github.com/kudobuilder/kuttl/releases/download/v0.15.0/kubectl-kuttl_0.15.0_linux_x86_64 - chmod +x kubectl-kuttl - sudo mv kubectl-kuttl /usr/local/bin - } - fi - - # Start a cluster and login - echo "****** Logging into remote cluster..." - oc login "${CLUSTER_URL}" -u "${CLUSTER_USER:-kubeadmin}" -p "${CLUSTER_TOKEN}" --insecure-skip-tls-verify=true - - # Set variables for rest of script to use - readonly TEST_NAMESPACE="rco-test-${TEST_TAG}" - if [[ $INSTALL_MODE = "SingleNamespace" ]]; then - readonly INSTALL_NAMESPACE="rco-test-single-namespace-${TEST_TAG}" - elif [[ $INSTALL_MODE = "AllNamespaces" ]]; then - readonly INSTALL_NAMESPACE="openshift-operators" - else - readonly INSTALL_NAMESPACE="rco-test-${TEST_TAG}" - fi - - if [ $INSTALL_MODE != "AllNamespaces" ]; then - echo "****** Creating install namespace: ${INSTALL_NAMESPACE} for release ${RELEASE}" - oc new-project "${INSTALL_NAMESPACE}" || oc project "${INSTALL_NAMESPACE}" - fi - - echo "****** Creating test namespace: ${TEST_NAMESPACE} for release ${RELEASE}" - oc new-project "${TEST_NAMESPACE}" || oc project "${TEST_NAMESPACE}" - - ## Create service account for Kuttl tests - oc -n $TEST_NAMESPACE apply -f config/rbac/kuttl-rbac.yaml -} - -## cleanup_env : Delete generated resources that are not bound to a test INSTALL_NAMESPACE. -cleanup_env() { - ## Delete CRDs - RCO_CRD_NAMES=$(oc get crd -o name | grep rc.app.stacks | cut -d/ -f2) - echo "*** Deleting CRDs ***" - echo "*** ${RCO_CRD_NAMES}" - oc delete crd $RCO_CRD_NAMES - - ## Delete Subscription - RCO_SUBSCRIPTION_NAME=$(oc -n $INSTALL_NAMESPACE get subscription -o name | grep runtime-component | cut -d/ -f2) - echo "*** Deleting Subscription ***" - echo "*** ${RCO_SUBSCRIPTION_NAME}" - oc -n $INSTALL_NAMESPACE delete subscription $RCO_SUBSCRIPTION_NAME - - ## Delete CSVs - RCO_CSV_NAME=$(oc -n $INSTALL_NAMESPACE get csv -o name | grep runtime-component | cut -d/ -f2) - echo "*** Deleting CSVs ***" - echo "*** ${RCO_CSV_NAME}" - oc -n $INSTALL_NAMESPACE delete csv $RCO_CSV_NAME - - if [ $INSTALL_MODE != "OwnNamespace" ]; then - echo "*** Deleting project ${TEST_NAMESPACE}" - oc delete project "${TEST_NAMESPACE}" - fi - - if [ $INSTALL_MODE != "AllNamespaces" ]; then - echo "*** Deleting project ${INSTALL_NAMESPACE}" - oc delete project "${INSTALL_NAMESPACE}" - fi -} - -## trap_cleanup : Call cleanup_env and exit. For use by a trap to detect if the script is exited at any point. -trap_cleanup() { - last_status=$? - if [[ $last_status != 0 ]]; then - cleanup_env - fi - exit $last_status -} - -#push_images() { -# echo "****** Logging into private registry..." -# oc sa get-token "${SERVICE_ACCOUNT}" -n default | docker login -u unused --password-stdin "${DEFAULT_REGISTRY}" || { -# echo "Failed to log into docker registry as ${SERVICE_ACCOUNT}, exiting..." -# exit 1 -# } - -# echo "****** Creating pull secret using Docker config..." -# oc create secret generic regcred --from-file=.dockerconfigjson="${HOME}/.docker/config.json" --type=kubernetes.io/dockerconfigjson - -# docker push "${BUILD_IMAGE}" || { -# echo "Failed to push ref: ${BUILD_IMAGE} to docker registry, exiting..." -# exit 1 -# } - -# docker push "${BUNDLE_IMAGE}" || { -# echo "Failed to push ref: ${BUNDLE_IMAGE} to docker registry, exiting..." -# exit 1 -# } -#} - -main() { - parse_args "$@" - - if [[ -z "${RELEASE}" ]]; then - echo "****** Missing release, see usage" - fi - - if [[ -z "${DOCKER_USERNAME}" || -z "${DOCKER_PASSWORD}" ]]; then - echo "****** Missing docker authentication information, see usage" - echo "${usage}" - exit 1 - fi - - if [[ -z "${CLUSTER_URL}" ]] || [[ -z "${CLUSTER_TOKEN}" ]]; then - echo "****** Missing OCP URL or token, see usage" - echo "${usage}" - exit 1 - fi - - if [[ -z "${REGISTRY_NAME}" ]]; then - echo "****** Missing OCP registry name, see usage" - echo "${usage}" - exit 1 - fi - - if [[ -z "${REGISTRY_IMAGE}" ]]; then - echo "****** Missing REGISTRY_IMAGE definition, see usage" - echo "${usage}" - exit 1 - fi - - if [[ -z "${REGISTRY_USER}" ]] || [[ -z "${REGISTRY_PASSWORD}" ]]; then - echo "****** Missing registry authentication information, see usage" - echo "${usage}" - exit 1 - fi - - if [[ -z "${TEST_TAG}" ]]; then - echo "****** Missing test tag, see usage" - echo "${usage}" - exit 1 - fi - - if [[ -z "${CATALOG_IMAGE}" ]]; then - echo "****** Missing catalog image, see usage" - echo "${usage}" - exit 1 - fi - - if [[ -z "${CHANNEL}" ]]; then - echo "****** Missing channel, see usage" - echo "${usage}" - exit 1 - fi - - if [[ -z "${INSTALL_MODE}" ]]; then - echo "****** Missing install-mode, see usage" - echo "${usage}" - exit 1 - fi - - if [[ -z "${ARCHITECTURE}" ]]; then - echo "****** Missing architecture, see usage" - echo "${usage}" - exit 1 - fi - - if [[ -z "${DIGEST}" ]]; then - echo "****** Missing digest, see usage" - echo "${usage}" - exit 1 - fi - - if [[ -z "${VERSION}" ]]; then - echo "****** Missing version, see usage" - echo "${usage}" - exit 1 - fi - - echo "****** Setting up test environment..." - setup_env - - if [[ "${ARCHITECTURE}" != "X" ]]; then - echo "****** Setting up tests for ${ARCHITECTURE} architecture" - setup_tests - fi - - if [[ -z "${DEBUG_FAILURE}" ]]; then - trap trap_cleanup EXIT - else - echo "#####################################################################################" - echo "WARNING: --debug-failure is set. If e2e tests fail, any created resources will remain" - echo "on the cluster for debugging/troubleshooting. YOU MUST DELETE THESE RESOURCES when" - echo "you're done, or else they will cause future tests to fail. To cleanup manually, just" - echo "delete the namespace \"${INSTALL_NAMESPACE}\": oc delete project \"${INSTALL_NAMESPACE}\" " - echo "#####################################################################################" - fi - - # login to docker to avoid rate limiting during build - echo "${DOCKER_PASSWORD}" | docker login -u "${DOCKER_USERNAME}" --password-stdin - - trap "rm -f /tmp/pull-secret-*.yaml" EXIT - - echo "****** Logging into private registry..." - echo "${REGISTRY_PASSWORD}" | docker login ${REGISTRY_NAME} -u "${REGISTRY_USER}" --password-stdin - - echo "sleep for 3 minutes to wait for rook-cepth, knative and cert-manager to start installing, then start monitoring for completion" - sleep 3m - echo "monitoring knative" - scripts/pipeline/wait.sh deployment knative-serving - rc_kn=$? - echo "rc_kn=$rc_kn" - if [[ "$rc_kn" == 0 ]]; then - echo "knative up" - fi - if [[ "${ARCHITECTURE}" == "X" ]]; then - echo "monitoring rook-ceph if architecture is ${ARCHITECTURE}" - scripts/pipeline/wait.sh deployment rook-ceph - rc_rk=$? - echo "rc_rk=$rc_rk" - if [[ "$rc_rk" == 0 ]]; then - echo "rook-ceph up" - fi - fi - echo "****** Installing operator from catalog: ${CATALOG_IMAGE} using install mode of ${INSTALL_MODE}" - echo "****** Install namespace is ${INSTALL_NAMESPACE}. Test namespace is ${TEST_NAMESPACE}" - install_operator - - # Wait for operator deployment to be ready - while [[ $(oc -n $INSTALL_NAMESPACE get deploy "${CONTROLLER_MANAGER_NAME}" -o jsonpath='{ .status.readyReplicas }') -ne "1" ]]; do - echo "****** Waiting for ${CONTROLLER_MANAGER_NAME} to be ready..." - sleep 10 - done - - # Check correct version of the operator has been installed - img_digest="icr.io/appcafe/runtime-component-operator@${DIGEST}" - echo "Expect operator image version: ${img_digest}" - pod=$(oc get pods -n "${TEST_NAMESPACE}" | awk '{print $1}' | grep rco-controller-manager) - install_img="$(oc get pod -n "${TEST_NAMESPACE}" ${pod} -o jsonpath={.spec.containers..image})" - echo "Actual installed operation image version: ${install_img}" - if [[ "${install_img}" != "${img_digest}" ]]; then - echo "Install Operator image ${install_img} does not match correct image ${img_digest}" - exit 1 - else - echo "Correct Operator image running" - fi - - echo "****** ${CONTROLLER_MANAGER_NAME} deployment is ready..." - - if [[ "$ARCHITECTURE" != "Z" ]]; then - echo "****** Testing on ${ARCHITECTURE} so starting scorecard tests..." - operator-sdk scorecard --verbose --kubeconfig ${HOME}/.kube/config --selector=suite=kuttlsuite --namespace="${TEST_NAMESPACE}" --service-account="scorecard-kuttl" --wait-time 45m ./bundle || { - echo "****** Scorecard tests failed..." - exit 1 - } - else - echo "****** Testing on ${ARCHITECTURE} so running kubectl-kuttl tests..." - kubectl-kuttl test ./bundle/tests/scorecard/kuttl --namespace "${TEST_NAMESPACE}" --timeout 200 --suppress-log=events --parallel 1 || { - echo "****** kubectl kuttl tests failed..." - exit 1 - } - fi - result=$? - - echo "****** Cleaning up test environment..." - if [[ "${ARCHITECTURE}" != "X" ]]; then - revert_tests - fi - cleanup_env - - return $result -} - -install_operator() { - # Apply the catalog - echo "****** Applying the catalog source..." - cat < accceptance test failure see below "}' $(get_env slack_web_hook_url) - echo " " - done - pipeline_url="https://cloud.ibm.com/devops/pipelines/tekton/${PIPELINE_ID}/runs/${PIPELINE_RUN_ID}?env_id=ibm:yp:us-south" - curl -X POST -H 'Content-type: application/json' --data '{"text":"Your acceptance test failed."}' $(get_env slack_web_hook_url) /dev/null - - while [ $? -ne 0 ]; do - if [ $count -eq $MAX_RETRIES ]; then - echo "Timeout and exit due to maximum retires reached." - return 1 - fi - - count=$((count+1)) - - echo "Unable to get ${type} ${namespace}: retry ${count} of ${MAX_RETRIES}." - sleep 5s - kubectl get ${type} -n ${namespace} - done - - echo "The ${type} ${namespace} is ready." - - if [[ "${type}" == *"deploy"* ]]; then - echo "Waiting for deployment ${name} pods to be ready..." - count=0 - replicas="$(kubectl get deploy -n ${namespace} -o=jsonpath='{.items[*].status.readyReplicas}')" - readyReplicas="$(kubectl get deploy -n ${namespace} -o=jsonpath='{.items[*].status.replicas}')" - echo "replicas: $replicas,readyReplicas: $readyReplicas; Retry ${count} of ${MAX_RETRIES}." - - while true; - do - if [ "$replicas" = "$readyReplicas" ]; then - echo "all deployments ready" - exit 0 - fi - if [ $count -eq $MAX_RETRIES ]; then - echo "Timeout and exit due to maximum retires reached." - exit 1 - fi - - count=$((count+1)) - - echo "replicas: $replicas,readyReplicas: $readyReplicas; Retry ${count} of ${MAX_RETRIES}." - sleep 5s - replicas="$(kubectl get deploy -n ${namespace} -o=jsonpath='{.items[*].status.readyReplicas}')" - readyReplicas="$(kubectl get deploy -n ${namespace} -o=jsonpath='{.items[*].status.replicas}')" - done - - echo "All pods ready for deployment ${name}." - fi diff --git a/scripts/setup-kind-cluster.sh b/scripts/setup-kind-cluster.sh deleted file mode 100755 index 9a36cc53..00000000 --- a/scripts/setup-kind-cluster.sh +++ /dev/null @@ -1,293 +0,0 @@ -#!/usr/bin/env bash - -set -e -o pipefail - -main() { - install_kind -} - -install_kind() { - install_dependencies - setup_env - create_kind_cluster - install_rook_ceph - - kubectl cluster-info --context kind-e2e-cluster -} - -install_dependencies() { - # Without this, pods may fail with 'too many open files' - # https://kind.sigs.k8s.io/docs/user/known-issues/#pod-errors-due-to-too-many-open-files - sysctl fs.inotify.max_user_watches=524288 - sysctl fs.inotify.max_user_instances=512 - ## Install docker - if ! command -v docker &> /dev/null; then - echo "****** Installing Docker..." - if test -f "/usr/share/keyrings/docker-archive-keyring.gpg"; then - rm /usr/share/keyrings/docker-archive-keyring.gpg - fi - curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg - local release="$(cat /etc/os-release | grep UBUNTU_CODENAME | cut -d '=' -f 2)" - echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \ - ${release} stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null - sudo apt-get update -y && sudo apt-get install -y docker-ce docker-ce-cli containerd.io conntrack - fi - - ## Install kubectl - if ! command -v kubectl &> /dev/null; then - echo "****** Installing kubectl v1.24.2..." - curl -Lo /usr/local/bin/kubectl https://storage.googleapis.com/kubernetes-release/release/v1.24.2/bin/linux/amd64/kubectl && chmod +x /usr/local/bin/kubectl - fi - - # Install kind - if ! command -v kind &> /dev/null; then - echo "****** Installing kind..." - curl -Lo /usr/local/bin/kind https://kind.sigs.k8s.io/dl/v0.16.0/kind-linux-amd64 - chmod +x /usr/local/bin/kind - fi -} - -setup_env() { - if lvs | grep -q kind-lv; then - return 0 - fi - - # Create LVM used for Ceph - rm -rf /cephfs; mkdir /cephfs && dd if=/dev/zero of=/cephfs/vdisk.img bs=100M count=55 || { - echo "Error: unable to create virtual disk for Ceph" - exit 1 - } - - losetup -f /cephfs/vdisk.img || { - echo "Error: unable to create loop device" - exit 1 - } - - local loop_dev_name="$(losetup -a | grep '/cephfs/vdisk.img' | cut -d ':' -f 1)" - - pvcreate "${loop_dev_name}" && vgcreate kind-vg "${loop_dev_name}" && lvcreate -L 5G -n kind-lv kind-vg || { - echo "Error: unable logical volume" - exit 1 - } -} - -create_kind_cluster() { - # Create registry container unless it already exists - local reg_name='kind-registry' - local reg_port='5000' - if [ "$(docker inspect -f '{{.State.Running}}' "${reg_name}" 2>/dev/null || true)" != 'true' ]; then - docker run -d --restart=always -p "${reg_port}:5000" --name "${reg_name}" registry:2 - fi - - if [[ -z "$(kind get clusters | grep e2e-cluster)" ]]; then - # Create a cluster with the local registry enabled in containerd - cat << EOF | kind create cluster --name e2e-cluster --image kindest/node:v1.24.2 --config=- -kind: Cluster -apiVersion: kind.x-k8s.io/v1alpha4 -nodes: -- role: control-plane - kubeadmConfigPatches: - - | - kind: InitConfiguration - nodeRegistration: - kubeletExtraArgs: - node-labels: "ingress-ready=true" - extraPortMappings: - - containerPort: 80 - hostPort: 80 - protocol: TCP - - containerPort: 443 - hostPort: 443 - protocol: TCP -- role: worker -- role: worker -networking: - apiServerAddress: "$(dig +noall +answer +short $(hostname))" - apiServerPort: 6443 -containerdConfigPatches: -- |- - [plugins."io.containerd.grpc.v1.cri".registry.mirrors."localhost:${reg_port}"] - endpoint = ["http://${reg_name}:5000"] -EOF - - kubectl config set-context kind-e2e-cluster - - sleep 5 - - kubectl wait --namespace kube-system \ - --for=condition=ready pod \ - --selector=component=kube-controller-manager \ - --timeout=300s || { - echo "Error: Failed to deploy kind cluster" - exit 1 - } - - # Connect the registry to the cluster network if not already connected - if [ "$(docker inspect -f='{{json .NetworkSettings.Networks.kind}}' "${reg_name}")" = 'null' ]; then - docker network connect "kind" "${reg_name}" - fi - -# Document the local registry -# https://github.com/kubernetes/enhancements/tree/master/keps/sig-cluster-lifecycle/generic/1755-communicating-a-local-registry - cat <