feat: add Angular E2E Helm chart
This commit is contained in:
parent
200ab8284b
commit
5890598de1
4
charts/maidn-e2e-angular/Chart.yaml
Normal file
4
charts/maidn-e2e-angular/Chart.yaml
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
apiVersion: v2
|
||||||
|
name: maidn-e2e-angular
|
||||||
|
description: Static Angular E2E fixture
|
||||||
|
version: 0.1.0
|
||||||
46
charts/maidn-e2e-angular/templates/deployment.yaml
Normal file
46
charts/maidn-e2e-angular/templates/deployment.yaml
Normal file
|
|
@ -0,0 +1,46 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: maidn-e2e-angular
|
||||||
|
labels:
|
||||||
|
app: maidn-e2e-angular
|
||||||
|
spec:
|
||||||
|
replicas: {{ .Values.replicaCount }}
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: maidn-e2e-angular
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: maidn-e2e-angular
|
||||||
|
spec:
|
||||||
|
volumes:
|
||||||
|
- name: static-assets
|
||||||
|
emptyDir: {}
|
||||||
|
initContainers:
|
||||||
|
- name: copy-assets
|
||||||
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||||
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
|
command:
|
||||||
|
- /bin/sh
|
||||||
|
- -c
|
||||||
|
- cp -a /www/target/. /work/
|
||||||
|
volumeMounts:
|
||||||
|
- name: static-assets
|
||||||
|
mountPath: /work
|
||||||
|
containers:
|
||||||
|
- name: nginx
|
||||||
|
image: nginx:1.27-alpine
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
containerPort: 80
|
||||||
|
volumeMounts:
|
||||||
|
- name: static-assets
|
||||||
|
mountPath: /usr/share/nginx/html
|
||||||
|
{{- with .Values.imagePullSecrets }}
|
||||||
|
imagePullSecrets:
|
||||||
|
{{- range . }}
|
||||||
|
- name: {{ quote . }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
apiVersion: external-secrets.io/v1
|
||||||
|
kind: ExternalSecret
|
||||||
|
metadata:
|
||||||
|
name: forgejo-registry-credentials
|
||||||
|
spec:
|
||||||
|
secretStoreRef:
|
||||||
|
kind: ClusterSecretStore
|
||||||
|
name: openbao
|
||||||
|
target:
|
||||||
|
name: forgejo-registry-credentials
|
||||||
|
creationPolicy: Owner
|
||||||
|
template:
|
||||||
|
type: kubernetes.io/dockerconfigjson
|
||||||
|
data:
|
||||||
|
.dockerconfigjson: "{{ `{{ .dockerconfigjson }}` }}"
|
||||||
|
data:
|
||||||
|
- secretKey: dockerconfigjson
|
||||||
|
remoteRef:
|
||||||
|
key: cicd/forgejo-registry
|
||||||
|
property: dockerconfigjson
|
||||||
17
charts/maidn-e2e-angular/templates/httproute.yaml
Normal file
17
charts/maidn-e2e-angular/templates/httproute.yaml
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
apiVersion: gateway.networking.k8s.io/v1
|
||||||
|
kind: HTTPRoute
|
||||||
|
metadata:
|
||||||
|
name: maidn-e2e-angular
|
||||||
|
spec:
|
||||||
|
parentRefs:
|
||||||
|
- name: {{ .Values.gateway.name }}
|
||||||
|
namespace: {{ .Values.gateway.namespace }}
|
||||||
|
sectionName: http
|
||||||
|
{{- with .Values.gateway.hostname }}
|
||||||
|
hostnames:
|
||||||
|
- {{ . | quote }}
|
||||||
|
{{- end }}
|
||||||
|
rules:
|
||||||
|
- backendRefs:
|
||||||
|
- name: maidn-e2e-angular
|
||||||
|
port: 80
|
||||||
15
charts/maidn-e2e-angular/templates/service.yaml
Normal file
15
charts/maidn-e2e-angular/templates/service.yaml
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: maidn-e2e-angular
|
||||||
|
labels:
|
||||||
|
app: maidn-e2e-angular
|
||||||
|
spec:
|
||||||
|
type: ClusterIP
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
port: 80
|
||||||
|
targetPort: 80
|
||||||
|
protocol: TCP
|
||||||
|
selector:
|
||||||
|
app: maidn-e2e-angular
|
||||||
13
charts/maidn-e2e-angular/values.yaml
Normal file
13
charts/maidn-e2e-angular/values.yaml
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
replicaCount: 1
|
||||||
|
|
||||||
|
image:
|
||||||
|
repository: ""
|
||||||
|
tag: dev
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
imagePullSecrets:
|
||||||
|
- forgejo-registry-credentials
|
||||||
|
|
||||||
|
gateway:
|
||||||
|
name: public
|
||||||
|
namespace: gateway-system
|
||||||
|
hostname: ""
|
||||||
Loading…
Reference in a new issue