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 # 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. # to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/) # 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 # 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 # incremented each time you make changes to the application. Versions are not expected to

View File

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

View File

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

View File

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

View File

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