Add gating for helm release management
This adds gating for helm release management by including a minimal example workload phase which consists of a HelmRelease for the nginx ingress controller and a corresponding deployment script including supporting validation logic. Change-Id: Ia21a799030289c7e40a0e61292578987ea0f6c63 Relates-To: #351
This commit is contained in:
committed by
Kostyantyn Kalynovskyi
parent
2f5402ae80
commit
eb40a5700f
@@ -0,0 +1,32 @@
|
||||
---
|
||||
apiVersion: "helm.fluxcd.io/v1"
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: ingress
|
||||
spec:
|
||||
wait: true
|
||||
timeout: 600
|
||||
# This chart doesn't have any helm tests, but this still runs a noop
|
||||
# helm test flow, to ensure we can do this.
|
||||
test:
|
||||
enable: true
|
||||
values:
|
||||
defaultBackend:
|
||||
enabled: true
|
||||
controller:
|
||||
service:
|
||||
type: NodePort
|
||||
nodePorts:
|
||||
http: 30000
|
||||
https: 30001
|
||||
kind: DaemonSet
|
||||
hostNetwork: "false"
|
||||
nodeSelector:
|
||||
node-role.kubernetes.io/master: ""
|
||||
tolerations:
|
||||
- key: node-role.kubernetes.io/master
|
||||
effect: NoSchedule
|
||||
chart:
|
||||
repository: https://kubernetes-charts.storage.googleapis.com
|
||||
name: nginx-ingress
|
||||
version: 1.40.1
|
||||
@@ -0,0 +1,4 @@
|
||||
resources:
|
||||
- namespace.yaml
|
||||
- helmrelease.yaml
|
||||
namespace: ingress
|
||||
@@ -0,0 +1,4 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: ingress
|
||||
2
manifests/type/gating/target/workload/kustomization.yaml
Normal file
2
manifests/type/gating/target/workload/kustomization.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
resources:
|
||||
- ingress
|
||||
Reference in New Issue
Block a user