.tekton/task.yaml in instana-1.216.0 vs .tekton/task.yaml in instana-1.217.0

- old
+ new

@@ -55,10 +55,14 @@ sidecars: # MySQL (compatible Mariadb) - name: mariadb # mariadb:11.3.2 image: mariadb@sha256:851f05fe1e4cb290442c1b12b7108436a33fd8f6a733d4989950322d06d45c65 + startupProbe: + initialDelaySeconds: 10 + tcpSocket: + port: 3306 env: - name: MYSQL_ROOT_PASSWORD # or MARIADB_ROOT_PASSWORD value: passw0rd - name: MYSQL_DATABASE # or MARIADB_DATABASE value: ci_test @@ -91,10 +95,14 @@ spec: sidecars: - name: postgres # postgres:16.2-bookworm image: postgres@sha256:6b841c8f6a819884207402f1209a8116844365df15fca8cf556fc54a24c70800 + startupProbe: + initialDelaySeconds: 10 + tcpSocket: + port: 5432 env: - name: POSTGRES_DB value: 'ci_test' - name: POSTGRES_USER value: 'root' @@ -180,10 +188,14 @@ sidecars: # Redis - name: redis # redis:7.2.4-bookworm image: redis@sha256:fe98b2d39d462d06a7360e2860dd6ceff930745e3731eccb3c1406dd0dd7f744 + startupProbe: + initialDelaySeconds: 10 + tcpSocket: + port: 6379 params: - name: imageDigest type: string - name: gemfile type: string @@ -243,10 +255,14 @@ spec: sidecars: - name: mongo # mongo:5.0.25-focal image: mongo@sha256:d1b8a7b77424347397653ab8ff500c66b1e9979b4cebf826951d37b0d3966721 + startupProbe: + initialDelaySeconds: 10 + tcpSocket: + port: 27017 params: - name: imageDigest type: string - name: gemfile type: string @@ -286,9 +302,77 @@ env: - name: TEST_CONFIGURATION value: $(params.configuration) - name: BUNDLE_GEMFILE value: $(params.gemfile) + workingDir: /workspace/ruby-sensor/ + command: + - /workspace/ruby-sensor/.tekton/run_unittests.sh +--- +apiVersion: tekton.dev/v1 +kind: Task +metadata: + name: ruby-tracer-unittest-sequel-sqlite3-task +spec: + params: + - name: imageDigest + type: string + - name: gemfile + type: string + workspaces: + - name: task-pvc + mountPath: /workspace + steps: + - name: unittest + image: ruby@$(params.imageDigest) + env: + - name: TEST_CONFIGURATION + value: libraries + - name: BUNDLE_GEMFILE + value: $(params.gemfile) + - name: DATABASE_URL + value: "sqlite3::memory:" + workingDir: /workspace/ruby-sensor/ + command: + - /workspace/ruby-sensor/.tekton/run_unittests.sh +--- +apiVersion: tekton.dev/v1 +kind: Task +metadata: + name: ruby-tracer-unittest-sequel-mysql2-task +spec: + sidecars: + # MySQL (compatible Mariadb) + - name: mariadb + # mariadb:11.3.2 + image: mariadb@sha256:851f05fe1e4cb290442c1b12b7108436a33fd8f6a733d4989950322d06d45c65 + startupProbe: + initialDelaySeconds: 10 + tcpSocket: + port: 3306 + env: + - name: MYSQL_ROOT_PASSWORD # or MARIADB_ROOT_PASSWORD + value: passw0rd + - name: MYSQL_DATABASE # or MARIADB_DATABASE + value: ci_test + params: + - name: imageDigest + type: string + - name: gemfile + type: string + workspaces: + - name: task-pvc + mountPath: /workspace + steps: + - name: unittest + image: ruby@$(params.imageDigest) + env: + - name: TEST_CONFIGURATION + value: libraries + - name: BUNDLE_GEMFILE + value: $(params.gemfile) + - name: DATABASE_URL + value: "mysql2://root:passw0rd@127.0.0.1:3306/ci_test" workingDir: /workspace/ruby-sensor/ command: - /workspace/ruby-sensor/.tekton/run_unittests.sh --- apiVersion: tekton.dev/v1