Skip to content

Commit

Permalink
Cr 7472 sync argo v3.1.14 (#67)
Browse files Browse the repository at this point in the history
* fix: do not delete expr tag tmpl values. Fixes argoproj#6909 (argoproj#6921)

Signed-off-by: Alex Collins <[email protected]>

* update image registry

* result of `make pre-commit -B`

* Retrigger CI pipeline

* result of `make codegen -B STATIC_FILES=false`

Co-authored-by: Alex Collins <[email protected]>
Co-authored-by: Ilya Gorban <[email protected]>
  • Loading branch information
3 people authored Nov 10, 2021
1 parent 97b0ec6 commit 524d2e6
Show file tree
Hide file tree
Showing 13 changed files with 35 additions and 29 deletions.
2 changes: 1 addition & 1 deletion examples/k8s-orchestration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ spec:
parameters:
- name: job-uid
container:
image: argoproj/argoexec:latest
image: quay.io/codefresh/argoexec:latest
command: [sh, -c]
args: ["
for i in `kubectl get pods -l controller-uid={{inputs.parameters.job-uid}} -o name`; do
Expand Down
2 changes: 1 addition & 1 deletion manifests/base/argo-server/argo-server-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
serviceAccountName: argo-server
containers:
- name: argo-server
image: docker.io/argoproj/argocli:latest
image: quay.io/codefresh/argocli:latest
securityContext:
capabilities:
drop:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
serviceAccountName: argo
containers:
- name: workflow-controller
image: docker.io/argoproj/workflow-controller:latest
image: quay.io/codefresh/workflow-controller:latest
securityContext:
readOnlyRootFilesystem: true
runAsNonRoot: true
Expand All @@ -28,7 +28,7 @@ spec:
- --configmap
- workflow-controller-configmap
- --executor-image
- argoproj/argoexec:latest
- quay.io/codefresh/argoexec:latest
env:
- name: LEADER_ELECTION_IDENTITY
valueFrom:
Expand Down
6 changes: 3 additions & 3 deletions manifests/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ spec:
containers:
- args:
- server
image: docker.io/argoproj/argocli:latest
image: quay.io/codefresh/argocli:latest
name: argo-server
ports:
- containerPort: 2746
Expand Down Expand Up @@ -605,7 +605,7 @@ spec:
- --configmap
- workflow-controller-configmap
- --executor-image
- argoproj/argoexec:latest
- quay.io/codefresh/argoexec:latest
command:
- workflow-controller
env:
Expand All @@ -614,7 +614,7 @@ spec:
fieldRef:
apiVersion: v1
fieldPath: metadata.name
image: docker.io/argoproj/workflow-controller:latest
image: quay.io/codefresh/workflow-controller:latest
livenessProbe:
failureThreshold: 3
httpGet:
Expand Down
6 changes: 3 additions & 3 deletions manifests/namespace-install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ spec:
- args:
- server
- --namespaced
image: docker.io/argoproj/argocli:latest
image: quay.io/codefresh/argocli:latest
name: argo-server
ports:
- containerPort: 2746
Expand Down Expand Up @@ -499,7 +499,7 @@ spec:
- --configmap
- workflow-controller-configmap
- --executor-image
- argoproj/argoexec:latest
- quay.io/codefresh/argoexec:latest
- --namespaced
command:
- workflow-controller
Expand All @@ -509,7 +509,7 @@ spec:
fieldRef:
apiVersion: v1
fieldPath: metadata.name
image: docker.io/argoproj/workflow-controller:latest
image: quay.io/codefresh/workflow-controller:latest
livenessProbe:
failureThreshold: 3
httpGet:
Expand Down
6 changes: 3 additions & 3 deletions manifests/quick-start-minimal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,7 @@ spec:
- server
- --auth-mode
- client
image: docker.io/argoproj/argocli:latest
image: quay.io/codefresh/argocli:latest
name: argo-server
ports:
- containerPort: 2746
Expand Down Expand Up @@ -873,7 +873,7 @@ spec:
- --configmap
- workflow-controller-configmap
- --executor-image
- argoproj/argoexec:latest
- quay.io/codefresh/argoexec:latest
- --namespaced
command:
- workflow-controller
Expand All @@ -883,7 +883,7 @@ spec:
fieldRef:
apiVersion: v1
fieldPath: metadata.name
image: docker.io/argoproj/workflow-controller:latest
image: quay.io/codefresh/workflow-controller:latest
livenessProbe:
failureThreshold: 3
httpGet:
Expand Down
6 changes: 3 additions & 3 deletions manifests/quick-start-mysql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,7 @@ spec:
- server
- --auth-mode
- client
image: docker.io/argoproj/argocli:latest
image: quay.io/codefresh/argocli:latest
name: argo-server
ports:
- containerPort: 2746
Expand Down Expand Up @@ -962,7 +962,7 @@ spec:
- --configmap
- workflow-controller-configmap
- --executor-image
- argoproj/argoexec:latest
- quay.io/codefresh/argoexec:latest
- --namespaced
command:
- workflow-controller
Expand All @@ -972,7 +972,7 @@ spec:
fieldRef:
apiVersion: v1
fieldPath: metadata.name
image: docker.io/argoproj/workflow-controller:latest
image: quay.io/codefresh/workflow-controller:latest
livenessProbe:
failureThreshold: 3
httpGet:
Expand Down
6 changes: 3 additions & 3 deletions manifests/quick-start-postgres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,7 @@ spec:
- server
- --auth-mode
- client
image: docker.io/argoproj/argocli:latest
image: quay.io/codefresh/argocli:latest
name: argo-server
ports:
- containerPort: 2746
Expand Down Expand Up @@ -954,7 +954,7 @@ spec:
- --configmap
- workflow-controller-configmap
- --executor-image
- argoproj/argoexec:latest
- quay.io/codefresh/argoexec:latest
- --namespaced
command:
- workflow-controller
Expand All @@ -964,7 +964,7 @@ spec:
fieldRef:
apiVersion: v1
fieldPath: metadata.name
image: docker.io/argoproj/workflow-controller:latest
image: quay.io/codefresh/workflow-controller:latest
livenessProbe:
failureThreshold: 3
httpGet:
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/functional/json-argument.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ spec:
- name: json1
- name: json2
container:
image: argoproj/argoexec:latest
image: quay.io/codefresh/argoexec:latest
command: [sh, -c]
args: ["echo '{{inputs.parameters.json1}}' | jq . ; echo '{{inputs.parameters.json2}}' | jq ."]

2 changes: 1 addition & 1 deletion test/e2e/functional/output-jqfilter-parameters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ spec:
- name: key
- name: value
container:
image: argoproj/argoexec:latest
image: quay.io/codefresh/argoexec:latest
command: [sh, -c]
args: ["
echo '<{{inputs.parameters.key}}>' > /tmp/input;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ spec:
args:
- --loglevel=warn
- --configmap=workflow-controller-configmap
- --executor-image=argoproj/argoexec:latest
- --executor-image=quay.io/codefresh/argoexec:latest
- --namespaced
- --burst=2048
- --qps=512
Expand Down
2 changes: 1 addition & 1 deletion util/expand/expand.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func removeConflicts(m map[string]interface{}) map[string]interface{} {
for i := 0; i < len(keys)-1; i++ {
k := keys[i]
// remove any parent that has a child
if strings.HasPrefix(keys[i+1]+".", k) {
if strings.HasPrefix(keys[i+1], k+".") {
delete(n, k)
}
}
Expand Down
18 changes: 12 additions & 6 deletions util/expand/expand_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,26 @@ import (
)

func TestExpand(t *testing.T) {
for i := 0; i < 100; i++ { // loop 100 times, because map ordering is not determisitic
for i := 0; i < 1; i++ { // loop 100 times, because map ordering is not determisitic
t.Run(fmt.Sprint(i), func(t *testing.T) {
before := map[string]interface{}{
"a.b": 1,
"a": 2,
"ab": 3,
"a.b": 1,
"a.c.d": 2,
"a": 3, // should be deleted
"ab": 4,
"abb": 5, // should be kept
}
after := Expand(before)
assert.Len(t, before, 3, "original map unchanged")
assert.Len(t, before, 5, "original map unchanged")
assert.Equal(t, map[string]interface{}{
"a": map[string]interface{}{
"b": 1,
"c": map[string]interface{}{
"d": 2,
},
},
"ab": 3,
"ab": 4,
"abb": 5,
}, after)
})
}
Expand Down

0 comments on commit 524d2e6

Please sign in to comment.