Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/apps/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ apiVersion: v2
name: apps
description: An argocd app to deploy apps inside the virtual cluster
type: application
version: 0.5.23
version: 0.5.24
4 changes: 2 additions & 2 deletions charts/apps/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,13 @@ kyverno:
verbosity: 0

sessionspaces:
enabled: true
enabled: false
targetRevision: production
extraValuesFiles: []
valuesObject: {}

sessionspacesController:
enabled: false
enabled: true
targetRevision: production
extraValueFiles: []
valuesObject: {}
Expand Down
2 changes: 1 addition & 1 deletion charts/graph-proxy/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: graph-proxy
description: A GraphQL proxy for the Argo Workflows Server
type: application
version: 0.2.52
version: 0.2.53
appVersion: 0.3.0
dependencies:
- name: common
Expand Down
3 changes: 0 additions & 3 deletions charts/graph-proxy/staging-values.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
image:
tag: "0.3.0"

argoServerUrl: https://argo-workflows.staging.workflows.diamond.ac.uk
oidcIssuerUrl: https://identity-test.diamond.ac.uk/realms/dls
oidcAudiences: "workflows-cluster-staging,graph"
Expand Down
2 changes: 1 addition & 1 deletion charts/graph-proxy/values.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
image:
registry: ghcr.io
repository: diamondlightsource/workflows-graph-proxy
tag: "0.2.3"
tag: ""
digest: ""
pullPolicy: IfNotPresent
pullSecrets: []
Expand Down
2 changes: 1 addition & 1 deletion charts/workflows/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: workflows
description: Data Analysis workflow orchestration
type: application
version: 0.14.3
version: 0.14.4
dependencies:
- name: argo-workflows
repository: https://argoproj.github.io/argo-helm
Expand Down
28 changes: 0 additions & 28 deletions charts/workflows/templates/default-localqueue-clusterpolicy.yaml

This file was deleted.

118 changes: 0 additions & 118 deletions charts/workflows/templates/sessionspace-clusterpolicy.yaml
Original file line number Diff line number Diff line change
@@ -1,121 +1,3 @@
apiVersion: kyverno.io/v1
kind: ClusterPolicy
metadata:
name: {{ .Release.Name }}-sessionspace
spec:
validationFailureAction: Enforce
background: false
generateExisting: true
mutateExistingOnPolicyUpdate: true
rules:
- name: add-workflow-label-to-configmap
match:
resources:
kinds:
- ConfigMap
names:
- sessionspaces
selector:
matchLabels:
app.kubernetes.io/managed-by: sessionspaces
namespaceSelector:
matchLabels:
app.kubernetes.io/managed-by: sessionspaces
preconditions:
all:
- key: "{{ `{{ request.object.metadata.labels.\"workflows.argoproj.io/configmap-type\" || '' }}` }}"
operator: NotEquals
value: Parameter
mutate:
targets:
- apiVersion: v1
kind: ConfigMap
name: sessionspaces
namespace: "{{ `{{request.object.metadata.namespace}}` }}"
patchStrategicMerge:
metadata:
labels:
workflows.argoproj.io/configmap-type: Parameter
- name: generate-visit-member-role-binding
match:
resources:
kinds:
- ConfigMap
names:
- sessionspaces
selector:
matchLabels:
app.kubernetes.io/managed-by: sessionspaces
namespaceSelector:
matchLabels:
app.kubernetes.io/managed-by: sessionspaces
context:
- name: sessionspace
configMap:
name: sessionspaces
namespace: "{{ `{{request.object.metadata.namespace}}` }}"
generate:
synchronize: true
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
name: visit-member
namespace: "{{ `{{request.namespace}}` }}"
data:
subjects: |-
{{
`{{
sessionspace.data.members | parse_json(@)[].{"apiGroup": 'rbac.authorization.k8s.io', "kind": 'User', "name": join('', ['oidc:', @])}
}}`
}}
roleRef:
kind: ClusterRole
name: visit-member
apiGroup: rbac.authorization.k8s.io
- name: generate-argo-workflow-service-account
match:
resources:
kinds:
- Namespace
selector:
matchLabels:
app.kubernetes.io/managed-by: sessionspaces
generate:
apiVersion: v1
kind: ServiceAccount
name: argo-workflow
namespace: "{{ `{{request.object.metadata.name}}` }}"
- name: generate-argo-workflow-role-binding
skipBackgroundRequests: false
match:
resources:
kinds:
- ServiceAccount
names:
- argo-workflow
namespaceSelector:
matchLabels:
app.kubernetes.io/managed-by: sessionspaces
generate:
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
name: argo-workflow
namespace: "{{ `{{request.namespace}}` }}"
data:
metadata:
ownerReferences:
- apiVersion: v1
kind: ServiceAccount
name: "{{ `{{request.object.metadata.name}}` }}"
uid: "{{ `{{request.object.metadata.uid}}` }}"
subjects:
- kind: ServiceAccount
name: argo-workflow
namespace: "{{ `{{request.namespace}}` }}"
roleRef:
kind: ClusterRole
name: argo-workflow
apiGroup: rbac.authorization.k8s.io
---
apiVersion: policies.kyverno.io/v1alpha1
kind: GeneratingPolicy
metadata:
Expand Down
35 changes: 0 additions & 35 deletions charts/workflows/test-policy/argo-workflow/chainsaw-test.yaml

This file was deleted.

28 changes: 0 additions & 28 deletions charts/workflows/test-policy/localqueue/chainsaw-test.yaml

This file was deleted.

31 changes: 0 additions & 31 deletions charts/workflows/test-policy/sessionspaces/chainsaw-test.yaml

This file was deleted.

78 changes: 0 additions & 78 deletions charts/workflows/test-policy/visit-member/chainsaw-test.yaml

This file was deleted.

Loading