Skip to content

Commit

Permalink
updated canary tests
Browse files Browse the repository at this point in the history
  • Loading branch information
diegolagospagopa committed Mar 22, 2024
1 parent 9577e07 commit f3ced22
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 5 deletions.
6 changes: 6 additions & 0 deletions tests/v5-java-helm-complete-test-canary/helm/Chart.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
dependencies:
- name: microservice-chart
repository: file://../../../charts/microservice-chart
version: 5.8.0
digest: sha256:46c7d2f553b97fc0468723c8b315743f5d6869ed941d534ba31e065642933a0c
generated: "2024-03-22T16:28:50.78491+01:00"
4 changes: 2 additions & 2 deletions tests/v5-java-helm-complete-test-canary/helm/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
apiVersion: v2
name: v5-java-helm-complete-test-foo
name: v5-java-helm-complete-test-canary
description: An example application with Java spring boot
type: application
version: 1.0.0
appVersion: 1.0.0
dependencies:
- name: microservice-chart
version: 5.7.0
version: 5.8.0
repository: file://../../../charts/microservice-chart
2 changes: 1 addition & 1 deletion tests/v5-java-helm-complete-test-canary/helm/run.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash

../../../scripts/run.sh values-devopslab-dev.yaml blueprint v5-java-helm-complete-test-foo
../../../scripts/run.sh values-devopslab-dev.yaml blueprint v5-java-helm-complete-test-canary
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ microservice-chart:
replicas: 1

envConfig:
APP: foo
MY_APP_COLOR: "green"
TO_OVERWRITE: "original-value"
COMMON: "same"

envSecret:
SEC_TO_OVERWRITE: dvopla-d-neu-dev01-aks-apiserver-url
MY_KV_SECRET: dvopla-d-neu-dev01-aks-apiserver-url

externalConfigMapFiles:
Expand Down Expand Up @@ -155,3 +156,21 @@ microservice-chart:
aadpodidbinding: blueprint-pod-identity
namespaces: ["blueprint"]
topologyKey: topology.kubernetes.io/zone

canaryDelivery:
create: true
ingress:
headerName: X-Canary
headerValue: canary
weightPercent: 50
image:
repository: ghcr.io/pagopa/devops-java-springboot-color
tag: 0.9.0
envConfig:
TO_OVERWRITE: "over-witten"
NEW_ITEM: "new item"
MY_MANDATORY_VALUE: "mandatory"
envSecret:
SEC_NEW_ITEM: 'canary-new-item'
SEC_TO_OVERWRITE: 'canary'
MY_MANDATORY_SECRET: 'canary'

0 comments on commit f3ced22

Please sign in to comment.