Skip to content

Commit 6d4e8de

Browse files
authored
Merge pull request #1177 from rackerlabs/workflows-update
feat(argo-workflows): support multiple namespaces / bump to 3.6.10
2 parents 6308505 + 22203e7 commit 6d4e8de

12 files changed

+76
-149
lines changed

components/argo-events/argo-server-rb.yaml

Lines changed: 0 additions & 8 deletions
This file was deleted.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
apiVersion: rbac.authorization.k8s.io/v1
3+
kind: RoleBinding
4+
metadata:
5+
name: argo-server-binding
6+
roleRef:
7+
apiGroup: rbac.authorization.k8s.io
8+
kind: ClusterRole
9+
name: argo-server-cluster-role
10+
subjects:
11+
- kind: ServiceAccount
12+
name: argo-server
13+
namespace: argo

components/argo-events/controller-rb.yaml

Lines changed: 0 additions & 8 deletions
This file was deleted.

components/argo-events/kustomization.yaml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ resources:
88
- https://github.com/argoproj/argo-events/releases/download/v1.9.7/install-validating-webhook.yaml
99

1010
# grant the argo-workflows the ability to run workflows in this namespace
11-
- https://github.com/argoproj/argo-workflows/manifests/namespace-install/argo-server-rbac?ref=v3.5.10
12-
- https://github.com/argoproj/argo-workflows/manifests/namespace-install/workflow-controller-rbac?ref=v3.5.10
11+
- workflow-controller-rolebinding.yaml
12+
# grant the argo-server the ability to see workflows in this namespace
13+
- argo-server-rolebinding.yaml
1314

1415
## configure webhook Sensor and associated role
1516
- sensor-workflow-role.yaml
@@ -19,14 +20,3 @@ resources:
1920

2021
## copy openstack/cinder-netapp-config to argo-events/netapp-config
2122
- secret-netapp.yaml
22-
23-
patches:
24-
- target:
25-
kind: RoleBinding
26-
name: argo-binding
27-
path: controller-rb.yaml
28-
29-
- target:
30-
kind: RoleBinding
31-
name: argo-server-binding
32-
path: argo-server-rb.yaml
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
apiVersion: rbac.authorization.k8s.io/v1
3+
kind: RoleBinding
4+
metadata:
5+
name: argo-binding
6+
roleRef:
7+
apiGroup: rbac.authorization.k8s.io
8+
kind: ClusterRole
9+
name: argo-cluster-role
10+
subjects:
11+
- kind: ServiceAccount
12+
name: argo
13+
namespace: argo

components/argo/argo-server-deployment.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,3 @@ spec:
1313
- --auth-mode=sso
1414
# all other auth via Kubernetes bearer tokens
1515
- --auth-mode=client
16-
# running in namespaced mode and not cluster wide
17-
- --namespaced
18-
# configures the namespace where workflows actually run
19-
- --managed-namespace
20-
- argo-events

components/argo/argo-server-runtime.yaml

Lines changed: 0 additions & 40 deletions
This file was deleted.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
apiVersion: rbac.authorization.k8s.io/v1
3+
kind: ClusterRoleBinding
4+
metadata:
5+
name: argo-server-binding
6+
$patch: delete
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
apiVersion: rbac.authorization.k8s.io/v1
3+
kind: ClusterRoleBinding
4+
metadata:
5+
name: argo-binding
6+
$patch: delete

components/argo/kustomization.yaml

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@ apiVersion: kustomize.config.k8s.io/v1beta1
33
kind: Kustomization
44

55
resources:
6-
# We are doing upstream's namespace-install.yaml but since we
7-
# want the actual workflows to run in a different namespace
8-
# the roles are created there
9-
- https://github.com/argoproj/argo-workflows/manifests/base?ref=v3.5.10
10-
# give the workflow controller access it needs
11-
- workflow-controller-runtime.yaml
12-
# give the argo-server access it needs
13-
- argo-server-runtime.yaml
6+
# We are wanting to limit the scope and access down to
7+
# just the namespaces we want to give access for workflows
8+
# to run and the argo-server to be able to see workflows and
9+
# argo events so we need to split up what we install. So
10+
# we delete the ClusterRoleBinding and instead create RoleBindings
11+
# to the ClusterRole for just the namespaces we want.
12+
- https://github.com/argoproj/argo-workflows/manifests/cluster-install/?ref=v3.6.10
1413

1514
# ingress for workflows.${DNS_ZONE} to the argo server for the UI
1615
- ingress.yaml
@@ -21,13 +20,27 @@ resources:
2120
# keep all the images consistent
2221
images:
2322
- name: quay.io/argoproj/workflow-controller
24-
newTag: v3.5.10
23+
newTag: v3.6.10
2524
- name: quay.io/argoproj/argoexec
26-
newTag: v3.5.10
25+
newTag: v3.6.10
2726
- name: quay.io/argoproj/argocli
28-
newTag: v3.5.10
27+
newTag: v3.6.10
2928

3029
patches:
30+
- target:
31+
group: rbac.authorization.k8s.io
32+
version: v1
33+
kind: ClusterRoleBinding
34+
name: argo-binding
35+
path: delete-workflow-controller-crb.yaml
36+
37+
- target:
38+
group: rbac.authorization.k8s.io
39+
version: v1
40+
kind: ClusterRoleBinding
41+
name: argo-server-binding
42+
path: delete-argo-server-crb.yaml
43+
3144
# see the patch for details on the change
3245
- target:
3346
group: apps

0 commit comments

Comments
 (0)