Skip to content

Commit

Permalink
fix: selector string pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
Filipe Forattini committed May 3, 2022
1 parent d52b535 commit 5d8e61b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions deploy/as-k8s/service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@

#@ globalLabels = {}
#@ globalLabels.update({ "ecosystem": data.values.ecosystem })
#@ globalLabels.update({ "environment": data.values.environment })

#@ globalAnnotations = {}
#@ globalAnnotations.update({ "pipe/ecosystem": data.values.ecosystem })
#@ globalAnnotations.update({ "pipe/config-md5": configMD5 })
#@ globalAnnotations.update({ "pipe/config-sha256": configSHA256 })
#@ globalAnnotations.update({ "pipe/ecosystem": data.values.ecosystem })
#@ globalAnnotations.update({ "pipe/environment": data.values.environment })
#@ globalAnnotations.update({ "pipe/updated-at": data.values.pipelineControl.datetime })
#@ globalAnnotations.update({ "kubectl.kubernetes.io/last-applied-configuration": data.values.pipelineControl.datetime })

Expand Down Expand Up @@ -84,15 +86,15 @@ spec:
matchLabels: #@ data.values.deployment.matchLabels.labels
#@ else:
#@ deploymentMatchLabels = {}
#@ deploymentMatchLabels.update({ "pipe/selector": data.values.repository + "/" + data.values.deployment.name })
#@ deploymentMatchLabels.update({ "pipe/selector": data.values.repository + "." + data.values.deployment.name })
matchLabels: #@ deploymentMatchLabels
#@ end
template:
metadata:
#@ deploymentTemplateLabels = {}
#@ deploymentTemplateLabels.update(globalLabels)
#@ deploymentTemplateLabels.update({ "pipe/ecosystem": data.values.ecosystem })
#@ deploymentTemplateLabels.update({ "pipe/selector": data.values.repository })
#@ deploymentTemplateLabels.update({ "pipe/selector": data.values.repository + "." + data.values.deployment.name })
#@ deploymentTemplateLabels.update(data.values.deployment.templateLabels)
labels: #@ deploymentTemplateLabels
spec:
Expand Down

0 comments on commit 5d8e61b

Please sign in to comment.