Fixing more errors

This commit is contained in:
Jonathan Ervine 2020-08-06 14:40:48 +08:00
parent 068d6a85e1
commit ab66c05022
5 changed files with 19 additions and 19 deletions

View File

@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.7
version: 0.1.9
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to

View File

@ -5,12 +5,12 @@ metadata:
labels:
{{- include "guacamole.labels" . | nindent 4 }}
spec:
{{- if not .Values.autoscaling.enabled }}
{{- if not .Values.guacd.autoscaling.enabled }}
replicas: {{ .Values.guacd.replicaCount }}
{{- end }}
selector:
matchLabels:
{{- include "guacamole.guacd.selectorLabels" . | nindent 6 }}
{{- include "guacamole.selectorLabels" . | nindent 6 }}
template:
metadata:
{{- with .Values.guacd.podAnnotations }}
@ -18,7 +18,7 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- include "guacamole.guacd.selectorLabels" . | nindent 8 }}
{{- include "guacamole.selectorLabels" . | nindent 8 }}
spec:
{{- with .Values.guacd.imagePullSecrets }}
imagePullSecrets:

View File

@ -5,9 +5,9 @@ metadata:
labels:
{{- include "guacamole.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.type }}
type: {{ .Values.guacamole.service.type }}
ports:
- port: {{ .Values.service.port }}
- port: {{ .Values.guacamole.service.port }}
targetPort: 8080
protocol: TCP
name: http

View File

@ -1,4 +1,4 @@
{{- if .Values.autoscaling.enabled }}
{{- if .Values.guacamole.autoscaling.enabled }}
apiVersion: autoscaling/v2beta1
kind: HorizontalPodAutoscaler
metadata:
@ -10,19 +10,19 @@ spec:
apiVersion: apps/v1
kind: Deployment
name: {{ include "guacamole.fullname" . }}
minReplicas: {{ .Values.autoscaling.minReplicas }}
maxReplicas: {{ .Values.autoscaling.maxReplicas }}
minReplicas: {{ .Values.guacamole.autoscaling.minReplicas }}
maxReplicas: {{ .Values.guacamole.autoscaling.maxReplicas }}
metrics:
{{- if .Values.autoscaling.targetCPUUtilizationPercentage }}
{{- if .Values.guacamole.autoscaling.targetCPUUtilizationPercentage }}
- type: Resource
resource:
name: cpu
targetAverageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
targetAverageUtilization: {{ .Values.guacamole.autoscaling.targetCPUUtilizationPercentage }}
{{- end }}
{{- if .Values.autoscaling.targetMemoryUtilizationPercentage }}
{{- if .Values.guacamole.autoscaling.targetMemoryUtilizationPercentage }}
- type: Resource
resource:
name: memory
targetAverageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
targetAverageUtilization: {{ .Values.guacamole.autoscaling.targetMemoryUtilizationPercentage }}
{{- end }}
{{- end }}

View File

@ -1,6 +1,6 @@
{{- if .Values.ingress.enabled -}}
{{- if .Values.guacamole.ingress.enabled -}}
{{- $fullName := include "guacamole.fullname" . -}}
{{- $svcPort := .Values.service.port -}}
{{- $svcPort := .Values.guacamole.service.port -}}
{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
apiVersion: networking.k8s.io/v1beta1
{{- else -}}
@ -11,14 +11,14 @@ metadata:
name: {{ $fullName }}
labels:
{{- include "guacamole.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }}
{{- with .Values.guacamole.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if .Values.ingress.tls }}
{{- if .Values.guacamole.ingress.tls }}
tls:
{{- range .Values.ingress.tls }}
{{- range .Values.guacamole.ingress.tls }}
- hosts:
{{- range .hosts }}
- {{ . | quote }}
@ -27,7 +27,7 @@ spec:
{{- end }}
{{- end }}
rules:
{{- range .Values.ingress.hosts }}
{{- range .Values.guacamole.ingress.hosts }}
- host: {{ .host | quote }}
http:
paths: