Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: work on Argo #244

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
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
15 changes: 15 additions & 0 deletions .github/workflows/argo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: kind cluster

on:
push:
pull_request:
workflow_dispatch:

jobs:
argo:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: helm/kind-action@v1
- run: |
kubectl apply -k components/argo
2 changes: 2 additions & 0 deletions apps/appsets/components.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ spec:
targetRevision: '{{index .metadata.annotations "uc_repo_ref"}}'
path: 'components/argo'
kustomize:
components:
- understack
patches:
- target:
kind: ConfigMap
Expand Down
34 changes: 0 additions & 34 deletions components/argo/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,41 +4,8 @@ kind: Kustomization

resources:
- https://github.com/argoproj/argo-workflows/releases/download/v3.5.10/namespace-install.yaml
- ingress.yaml

# external secret for SSO auth
- external-secret-argo-sso.yaml

patches:
- target: # configure argo-server to use sso and client auth and monitor argo-events namespace
group: apps
version: v1
kind: Deployment
name: argo-server
patch: |-
- op: replace
path: /spec/template/spec/containers/0/args
value:
- server
- --auth-mode=sso
- --auth-mode=client
- --namespaced
- --managed-namespace
- argo-events

- target: # configure the workflow controller to monitor the argo-events namespace
group: apps
version: v1
kind: Deployment
name: workflow-controller
patch: |-
- op: replace
path: /spec/template/spec/containers/0/args
value:
- --namespaced
- --managed-namespace
- argo-events

- target:
group: rbac.authorization.k8s.io
version: v1
Expand All @@ -64,5 +31,4 @@ configMapGenerator:
- name: workflow-controller-configmap
behavior: merge
files:
- sso
- workflowDefaults=workflow-defaults
File renamed without changes.
42 changes: 42 additions & 0 deletions components/argo/understack/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
apiVersion: kustomize.config.k8s.io/v1alpha1
kind: Component

resources:
- ingress.yaml
- external-secret-argo-sso.yaml

patches:
- target: # configure argo-server to use sso and client auth and monitor argo-events namespace
group: apps
version: v1
kind: Deployment
name: argo-server
patch: |-
- op: replace
path: /spec/template/spec/containers/0/args
value:
- server
- --auth-mode=sso
- --auth-mode=client
- --namespaced
- --managed-namespace
- argo-events

- target: # configure the workflow controller to monitor the argo-events namespace
group: apps
version: v1
kind: Deployment
name: workflow-controller
patch: |-
- op: replace
path: /spec/template/spec/containers/0/args
value:
- --namespaced
- --managed-namespace
- argo-events

configMapGenerator:
- name: workflow-controller-configmap
behavior: merge
files:
- sso=sso-config
File renamed without changes.
Loading