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
37 changes: 37 additions & 0 deletions .github/workflows/kustomize-argocd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Kustomize GitHub Actions for argocd

on:
pull_request:
paths:
- kustomize/argocd/**
- .github/workflows/kustomize-argocd.yaml
jobs:
kustomize:
strategy:
matrix:
overlays:
- base
name: Kustomize
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: azure/setup-helm@v3
with:
version: latest
token: "${{ secrets.GITHUB_TOKEN }}"
id: helm
- name: Kustomize Install
working-directory: /usr/local/bin/
run: |
if [ ! -f /usr/local/bin/kustomize ]; then
curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | sudo bash
fi
- name: Run Kustomize Build
run: |
kustomize build kustomize/argocd/${{ matrix.overlays }} --enable-helm --helm-command ${{ steps.helm.outputs.helm-path }} > /tmp/rendered.yaml
- name: Return Kustomize Build
uses: actions/upload-artifact@v2
with:
name: kustomize-argocd-artifact-${{ matrix.overlays }}
path: /tmp/rendered.yaml
22 changes: 22 additions & 0 deletions kustomize/argocd/base/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
resources:
- namespace.yaml

namespace: argocd1
helmGlobals:
chartHome: ../charts/
helmCharts:
- name: argo-cd
includeCRDs: true
valuesFile: values.yaml
releaseName: argocd
version: 5.51.5
repo: https://argoproj.github.io/argo-helm
patches:
- target:
kind: Pod
patch: |-
$patch: delete
apiVersion: v1
kind: Pod
metadata:
name: argocd-redis-ha-service-test
8 changes: 8 additions & 0 deletions kustomize/argocd/base/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
apiVersion: v1
kind: Namespace
metadata:
labels:
kubernetes.io/metadata.name: argocd
name: argocd
name: argocd
39 changes: 39 additions & 0 deletions kustomize/argocd/base/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
global:
nodeSelector:
openstack-control-plane: enabled

redis-ha:
enabled: true
nodeSelector:
openstack-control-plane: enabled

controller:
replicas: 1

configs:
cm:
kustomize.buildOptions: --enable-helm

server:
autoscaling:
enabled: true
minReplicas: 2
ingress:
annotations:
nginx.ingress.kubernetes.io/backend-protocol: HTTPS
enabled: true
ingressClassName: "nginx-cluster"
hosts: ["argocd.dfw-ospcv2-staging.ohthree.com"]
tls:
- hosts:
- argocd.dfw-ospcv2-staging.ohthree.com
secretName: argocd-tls-public
https: true

repoServer:
autoscaling:
enabled: true
minReplicas: 2

applicationSet:
replicas: 2
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
deployment:
mode: namespace
mode: cluster
type: Deployment
cluster:
class: "nginx-openstack"
Expand Down