This commit is contained in:
Damien Ostler 2024-02-07 23:16:23 -05:00
parent 8b91c2e05a
commit bc186e5f13
8 changed files with 19 additions and 19 deletions

@ -1,7 +1,7 @@
apiVersion: argoproj.io/v1alpha1 apiVersion: argoproj.io/v1alpha1
kind: Application kind: Application
metadata: metadata:
name: all-dev-apps name: comissions-dev
namespace: argocd namespace: argocd
spec: spec:
destination: destination:

@ -1,5 +1,5 @@
apiVersion: v2 apiVersion: v2
name: search name: core-api
description: A Helm chart for Kubernetes description: A Helm chart for Kubernetes
# A chart can be either an 'application' or a 'library' chart. # A chart can be either an 'application' or a 'library' chart.

@ -1,16 +1,16 @@
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: {{ include "search.fullname" . }} name: {{ include "core-api.fullname" . }}
labels: labels:
{{- include "search.labels" . | nindent 4 }} {{- include "core-api.labels" . | nindent 4 }}
spec: spec:
{{- if not .Values.autoscaling.enabled }} {{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }} replicas: {{ .Values.replicaCount }}
{{- end }} {{- end }}
selector: selector:
matchLabels: matchLabels:
{{- include "search.selectorLabels" . | nindent 6 }} {{- include "core-api.selectorLabels" . | nindent 6 }}
template: template:
metadata: metadata:
{{- with .Values.podAnnotations }} {{- with .Values.podAnnotations }}
@ -18,13 +18,13 @@ spec:
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8 }}
{{- end }} {{- end }}
labels: labels:
{{- include "search.selectorLabels" . | nindent 8 }} {{- include "core-api.selectorLabels" . | nindent 8 }}
spec: spec:
{{- with .Values.imagePullSecrets }} {{- with .Values.imagePullSecrets }}
imagePullSecrets: imagePullSecrets:
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8 }}
{{- end }} {{- end }}
serviceAccountName: {{ include "search.serviceAccountName" . }} serviceAccountName: {{ include "core-api.serviceAccountName" . }}
securityContext: securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }} {{- toYaml .Values.podSecurityContext | nindent 8 }}
containers: containers:

@ -2,14 +2,14 @@
apiVersion: autoscaling/v2 apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler kind: HorizontalPodAutoscaler
metadata: metadata:
name: {{ include "search.fullname" . }} name: {{ include "core-api.fullname" . }}
labels: labels:
{{- include "search.labels" . | nindent 4 }} {{- include "core-api.labels" . | nindent 4 }}
spec: spec:
scaleTargetRef: scaleTargetRef:
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
name: {{ include "search.fullname" . }} name: {{ include "core-api.fullname" . }}
minReplicas: {{ .Values.autoscaling.minReplicas }} minReplicas: {{ .Values.autoscaling.minReplicas }}
maxReplicas: {{ .Values.autoscaling.maxReplicas }} maxReplicas: {{ .Values.autoscaling.maxReplicas }}
metrics: metrics:

@ -1,5 +1,5 @@
{{- if .Values.ingress.enabled -}} {{- if .Values.ingress.enabled -}}
{{- $fullName := include "search.fullname" . -}} {{- $fullName := include "core-api.fullname" . -}}
{{- $svcPort := .Values.service.port -}} {{- $svcPort := .Values.service.port -}}
{{- if and .Values.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }} {{- if and .Values.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }}
{{- if not (hasKey .Values.ingress.annotations "kubernetes.io/ingress.class") }} {{- if not (hasKey .Values.ingress.annotations "kubernetes.io/ingress.class") }}
@ -17,7 +17,7 @@ kind: Ingress
metadata: metadata:
name: {{ $fullName }} name: {{ $fullName }}
labels: labels:
{{- include "search.labels" . | nindent 4 }} {{- include "core-api.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }} {{- with .Values.ingress.annotations }}
annotations: annotations:
{{- toYaml . | nindent 4 }} {{- toYaml . | nindent 4 }}

@ -1,9 +1,9 @@
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: {{ include "search.fullname" . }} name: {{ include "core-api.fullname" . }}
labels: labels:
{{- include "search.labels" . | nindent 4 }} {{- include "core-api.labels" . | nindent 4 }}
spec: spec:
type: {{ .Values.service.type }} type: {{ .Values.service.type }}
ports: ports:
@ -12,4 +12,4 @@ spec:
protocol: TCP protocol: TCP
name: http name: http
selector: selector:
{{- include "search.selectorLabels" . | nindent 4 }} {{- include "core-api.selectorLabels" . | nindent 4 }}

@ -2,9 +2,9 @@
apiVersion: v1 apiVersion: v1
kind: ServiceAccount kind: ServiceAccount
metadata: metadata:
name: {{ include "search.serviceAccountName" . }} name: {{ include "core-api.serviceAccountName" . }}
labels: labels:
{{- include "search.labels" . | nindent 4 }} {{- include "core-api.labels" . | nindent 4 }}
{{- with .Values.serviceAccount.annotations }} {{- with .Values.serviceAccount.annotations }}
annotations: annotations:
{{- toYaml . | nindent 4 }} {{- toYaml . | nindent 4 }}

@ -1,7 +1,7 @@
apiVersion: argoproj.io/v1alpha1 apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet kind: ApplicationSet
metadata: metadata:
name: search name: core-api
namespace: argocd namespace: argocd
spec: spec:
goTemplate: true goTemplate: true
@ -14,7 +14,7 @@ spec:
- path: "dev/.config/*.json" - path: "dev/.config/*.json"
template: template:
metadata: metadata:
name: "search-{{.deployment.cluster.namespace}}" name: "core-api-{{.deployment.cluster.namespace}}"
spec: spec:
project: "{{.deployment.argocd.project}}" project: "{{.deployment.argocd.project}}"
source: source: