Skip to content

Commit 11b4b94

Browse files
arias-mMiguel Arias
andauthored
FDN-4233: revert sources order for argo cd UI visibility (#959)
Co-authored-by: Miguel Arias <[email protected]>
1 parent 525d137 commit 11b4b94

File tree

3 files changed

+81
-92
lines changed

3 files changed

+81
-92
lines changed

Jenkinsfile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
@Library('lib-jenkins-pipeline') _
22

3-
4-
// => Mandatory to use a definition before the node or Blue Ocean doesn't show the expected info
5-
def newTagEveryRunMainBranch = "yes" // Force a new version and deploy clicking on Build Now in Jenkins
63
def sbtOnMain = "no"
74

85
// we can remove the pod_template block if we end up having only one template
@@ -24,7 +21,7 @@ podTemplate(
2421

2522
// => tagging function to identify what actions to take depending on the nature of the changes
2623
stage ('tagging') {
27-
semversion = taggingv2(newTagEveryMainRun: "${newTagEveryRunMainBranch}")
24+
semversion = taggingv2()
2825
println(semversion)
2926
}
3027

deploy/apibuilder-api/app.yaml

Lines changed: 40 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -4,68 +4,64 @@ metadata:
44
name: apibuilder-api
55
namespace: argocd
66
finalizers:
7-
- resources-finalizer.argocd.argoproj.io
7+
- resources-finalizer.argocd.argoproj.io
8+
labels:
9+
team: foundation
810
spec:
911
destination:
1012
namespace: apicollective
1113
server: 'https://kubernetes.default.svc'
1214
ignoreDifferences:
13-
- group: networking.istio.io
14-
kind: VirtualService
15-
jsonPointers:
16-
- /spec/http/0
17-
- group: datadoghq.com
18-
kind: DatadogMonitor
19-
jqPathExpressions:
20-
- .spec.tags
21-
# Required if enable KEDA autoscaler to avoid conflicts between
22-
# ArgoCD and HPA managing the number of replicas
23-
- group: "apps"
24-
kind: "Deployment"
25-
jsonPointers:
26-
- /spec/replicas
27-
- group: argoproj.io
28-
kind: Rollout
29-
jsonPointers:
30-
- /spec/replicas
15+
- group: networking.istio.io
16+
kind: VirtualService
17+
jsonPointers:
18+
- /spec/http/0
19+
- group: "apps"
20+
kind: "Deployment"
21+
jsonPointers:
22+
- /spec/replicas
23+
- group: argoproj.io
24+
kind: Rollout
25+
jsonPointers:
26+
- /spec/replicas
3127
# Ignore cluster IP changes
32-
- group: ""
33-
kind: Service
34-
jsonPointers:
35-
- /spec/clusterIP
28+
- group: ""
29+
kind: Service
30+
jsonPointers:
31+
- /spec/clusterIP
3632
#This is a common issue with Argo Rollouts and Istio DestinationRule resources.
3733
#The rollouts-pod-template-hash label is automatically managed
3834
#by the Argo Rollouts controller and gets added dynamically during rollout operations
39-
- group: networking.istio.io
40-
kind: DestinationRule
41-
jqPathExpressions:
42-
- .spec.subsets[].labels["rollouts-pod-template-hash"]
35+
- group: networking.istio.io
36+
kind: DestinationRule
37+
jqPathExpressions:
38+
- .spec.subsets[].labels["rollouts-pod-template-hash"]
4339
###################################
4440
sources:
45-
- repoURL: '[email protected]:flowcommerce/generic-charts.git'
46-
path: charts/flow-generic
47-
targetRevision: v2.0.0
48-
helm:
49-
parameters:
50-
- name: deployments.live.version
51-
value: "0.16.59"
52-
valueFiles:
53-
- $values/deploy/apibuilder-api/values.yaml
54-
- repoURL: '[email protected]:apicollective/apibuilder.git'
55-
targetRevision: main
56-
ref: values
41+
- repoURL: '[email protected]:apicollective/apibuilder.git'
42+
targetRevision: main
43+
ref: values
5744

45+
- repoURL: '[email protected]:flowcommerce/generic-charts.git'
46+
path: charts/flow-generic
47+
targetRevision: v2.0.0
48+
helm:
49+
parameters:
50+
- name: deployments.live.version
51+
value: "Jenkins_will_update_the_version"
52+
valueFiles:
53+
- $values/deploy/apibuilder-api/values.yaml
5854
project: production
5955

6056
## Keep it commenting out during the transition process to avoid auto
6157
## sync applying changes automatically until transition is completed.
6258
syncPolicy:
6359
syncOptions:
64-
- RespectIgnoreDifferences=true
65-
- CreateNamespace=false # Namespace exists
66-
- ApplyOutOfSyncOnly=true # Only sync out-of-sync resources
67-
- ServerSideApply=true # Use server-side apply
68-
- PruneLast=true # Prune after successful sync
60+
- RespectIgnoreDifferences=true
61+
- CreateNamespace=false # Namespace exists
62+
- ApplyOutOfSyncOnly=true # Only sync out-of-sync resources
63+
- ServerSideApply=true # Use server-side apply
64+
- PruneLast=true # Prune after successful sync
6965
automated:
7066
prune: true
7167
selfHeal: true

deploy/apibuilder-app/app.yaml

Lines changed: 40 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -4,68 +4,64 @@ metadata:
44
name: apibuilder-app
55
namespace: argocd
66
finalizers:
7-
- resources-finalizer.argocd.argoproj.io
7+
- resources-finalizer.argocd.argoproj.io
8+
labels:
9+
team: foundation
810
spec:
911
destination:
1012
namespace: apicollective
1113
server: 'https://kubernetes.default.svc'
1214
ignoreDifferences:
13-
- group: networking.istio.io
14-
kind: VirtualService
15-
jsonPointers:
16-
- /spec/http/0
17-
- group: datadoghq.com
18-
kind: DatadogMonitor
19-
jqPathExpressions:
20-
- .spec.tags
21-
# Required if enable KEDA autoscaler to avoid conflicts between
22-
# ArgoCD and HPA managing the number of replicas
23-
- group: "apps"
24-
kind: "Deployment"
25-
jsonPointers:
26-
- /spec/replicas
27-
- group: argoproj.io
28-
kind: Rollout
29-
jsonPointers:
30-
- /spec/replicas
15+
- group: networking.istio.io
16+
kind: VirtualService
17+
jsonPointers:
18+
- /spec/http/0
19+
- group: "apps"
20+
kind: "Deployment"
21+
jsonPointers:
22+
- /spec/replicas
23+
- group: argoproj.io
24+
kind: Rollout
25+
jsonPointers:
26+
- /spec/replicas
3127
# Ignore cluster IP changes
32-
- group: ""
33-
kind: Service
34-
jsonPointers:
35-
- /spec/clusterIP
28+
- group: ""
29+
kind: Service
30+
jsonPointers:
31+
- /spec/clusterIP
3632
#This is a common issue with Argo Rollouts and Istio DestinationRule resources.
3733
#The rollouts-pod-template-hash label is automatically managed
3834
#by the Argo Rollouts controller and gets added dynamically during rollout operations
39-
- group: networking.istio.io
40-
kind: DestinationRule
41-
jqPathExpressions:
42-
- .spec.subsets[].labels["rollouts-pod-template-hash"]
35+
- group: networking.istio.io
36+
kind: DestinationRule
37+
jqPathExpressions:
38+
- .spec.subsets[].labels["rollouts-pod-template-hash"]
4339
###################################
4440
sources:
45-
- repoURL: '[email protected]:flowcommerce/generic-charts.git'
46-
path: charts/flow-generic
47-
targetRevision: v2.0.0
48-
helm:
49-
parameters:
50-
- name: deployments.live.version
51-
value: "0.16.59"
52-
valueFiles:
53-
- $values/deploy/apibuilder-app/values.yaml
54-
- repoURL: '[email protected]:apicollective/apibuilder.git'
55-
targetRevision: main
56-
ref: values
41+
- repoURL: '[email protected]:apicollective/apibuilder.git'
42+
targetRevision: main
43+
ref: values
5744

45+
- repoURL: '[email protected]:flowcommerce/generic-charts.git'
46+
path: charts/flow-generic
47+
targetRevision: v2.0.0
48+
helm:
49+
parameters:
50+
- name: deployments.live.version
51+
value: "Jenkins_will_update_the_version"
52+
valueFiles:
53+
- $values/deploy/apibuilder-app/values.yaml
5854
project: production
5955

6056
## Keep it commenting out during the transition process to avoid auto
6157
## sync applying changes automatically until transition is completed.
6258
syncPolicy:
6359
syncOptions:
64-
- RespectIgnoreDifferences=true
65-
- CreateNamespace=false # Namespace exists
66-
- ApplyOutOfSyncOnly=true # Only sync out-of-sync resources
67-
- ServerSideApply=true # Use server-side apply
68-
- PruneLast=true # Prune after successful sync
60+
- RespectIgnoreDifferences=true
61+
- CreateNamespace=false # Namespace exists
62+
- ApplyOutOfSyncOnly=true # Only sync out-of-sync resources
63+
- ServerSideApply=true # Use server-side apply
64+
- PruneLast=true # Prune after successful sync
6965
automated:
7066
prune: true
7167
selfHeal: true

0 commit comments

Comments
 (0)