Skip to content

Commit

Permalink
Hm/fixing swoop caboose single namespace (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
hectormachin authored Aug 21, 2023
1 parent bda755b commit e749eba
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 25 deletions.
8 changes: 4 additions & 4 deletions charts/swoop-bundle/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ dependencies:
condition: swoop-api.enabled
version: "0.1.0"
repository: "https://element84.github.io/filmdrop-k8s-helm-charts/"
- name: swoop-caboose
condition: swoop-caboose.enabled
version: "0.1.0"
repository: "https://element84.github.io/filmdrop-k8s-helm-charts/"
# - name: swoop-caboose
# condition: swoop-caboose.enabled
# version: "0.1.0"
# repository: "https://element84.github.io/filmdrop-k8s-helm-charts/"
# - name: swoop-conductor
# condition: swoop-caboose.enabled
# version: "0.1.0"
Expand Down
28 changes: 7 additions & 21 deletions charts/swoop-caboose/templates/argo-workflows-crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
{{- end -}}
{{- if or $argoWorkflowsEnabled $crdsInstall }}
apiVersion: rbac.authorization.k8s.io/v1
Kind: Role
kind: Role
metadata:
labels:
rbac.authorization.k8s.io/aggregate-to-admin: "true"
Expand Down Expand Up @@ -59,7 +59,7 @@ rules:
- watch
---
apiVersion: rbac.authorization.k8s.io/v1
Kind: Role
kind: Role
metadata:
labels:
rbac.authorization.k8s.io/aggregate-to-edit: "true"
Expand Down Expand Up @@ -92,7 +92,7 @@ rules:
- watch
---
apiVersion: rbac.authorization.k8s.io/v1
Kind: Role
kind: Role
metadata:
labels:
rbac.authorization.k8s.io/aggregate-to-view: "true"
Expand Down Expand Up @@ -120,9 +120,9 @@ rules:
- watch
---
apiVersion: rbac.authorization.k8s.io/v1
Kind: Role
kind: Role
metadata:
name: argo-workflows-role
name: argo-role
namespace: {{ .Release.Namespace | quote }}
rules:
- apiGroups:
Expand Down Expand Up @@ -230,29 +230,15 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: argo-binding
namespace: {{ .Release.Namespace }}
namespace: {{ .Release.Namespace | quote }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: argo-role
subjects:
- kind: ServiceAccount
name: {{ $migrationServiceAccount }}
namespace: {{ .Release.Namespace }}
---
apiVersion: rbac.authorization.k8s.io/v1
Kind: RoleBinding
metadata:
name: argo-workflows-binding
namespace: {{ .Release.Namespace | quote }}
roleRef:
apiGroup: rbac.authorization.k8s.io
Kind: Role
name: argo-workflows-role
subjects:
- kind: ServiceAccount
name: {{ $migrationServiceAccount }}
namespace: {{ .Release.Namespace }}
---
apiVersion: v1
kind: ResourceQuota
Expand All @@ -261,7 +247,7 @@ metadata:
labels:
{{- include "swoop-caboose.labels" . | nindent 6 }}
name: "object-counts"
namespace: {{ .Release.Namespace }}
namespace: {{ .Release.Namespace | quote }}
spec:
hard:
count/workflows.argoproj.io: "{{ $objectCounts }}"
Expand Down

0 comments on commit e749eba

Please sign in to comment.