Skip to content

Commit b9c0a1a

Browse files
committed
up doc, up selectors
1 parent a7b1cab commit b9c0a1a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

docker-plain/Jenkinsfile.template

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,12 @@ odsComponentPipeline(
2020
*/
2121
odsComponentStageBuildOpenShiftImage(context)
2222
}
23+
def releaseName = context.componentId // can be customized as needed
24+
def componentId = context.componentId // needs to match name in Chart.yaml
2325
odsComponentStageRolloutOpenShiftDeployment(context, [
24-
'selector': "app.kubernetes.io/name=${context.componentId}",
26+
'selector': "app.kubernetes.io/instance=${releaseName},app.kubernetes.io/name=${componentId}",
2527
'helmEnvBasedValuesFiles': ["values.env.yaml"],
28+
'helmReleaseName': releaseName
2629
])
2730
}
2831

docker-plain/files/chart/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
## The number of replicas to deploy.
77
## For high availability use more than 1 replica
8+
## Before enabling check the official ODS documentation about replicate support: https://www.opendevstack.org/ods-documentation/opendevstack/latest/jenkins-shared-library/orchestration-pipeline.html#_known_limitations
89
replicaCount: 1
910

1011
imagePullSecrets: []
@@ -111,6 +112,7 @@ resources:
111112
memory: 16Mi
112113
ephemeral-storage: 1Mi
113114

115+
## Before enabling check the official ODS documentation about replicate support: https://www.opendevstack.org/ods-documentation/opendevstack/latest/jenkins-shared-library/orchestration-pipeline.html#_known_limitations
114116
autoscaling:
115117
enabled: false
116118
minReplicas: 1

0 commit comments

Comments
 (0)