Skip to content

Commit

Permalink
use replicaCount keyword instead of replicas
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanpommier committed Nov 21, 2023
1 parent a65c67d commit c36b633
Show file tree
Hide file tree
Showing 19 changed files with 35 additions and 35 deletions.
2 changes: 1 addition & 1 deletion templates/analytics/analytics-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ metadata:
{{- include "georchestra.labels" . | nindent 4 }}
app.kubernetes.io/component: {{ include "georchestra.fullname" . }}-analytics
spec:
replicas: {{ $webapp.replicas | default 1 }}
replicas: {{ $webapp.replicaCount }}
selector:
matchLabels:
{{- include "georchestra.selectorLabels" . | nindent 6 }}
Expand Down
2 changes: 1 addition & 1 deletion templates/cas/cas-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ metadata:
{{- include "georchestra.labels" . | nindent 4 }}
app.kubernetes.io/component: {{ include "georchestra.fullname" . }}-cas
spec:
replicas: {{ $webapp.replicas | default 1 }}
replicas: {{ $webapp.replicaCount }}
selector:
matchLabels:
{{- include "georchestra.selectorLabels" . | nindent 6 }}
Expand Down
2 changes: 1 addition & 1 deletion templates/console/console-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ metadata:
{{- include "georchestra.labels" . | nindent 4 }}
app.kubernetes.io/component: {{ include "georchestra.fullname" . }}-console
spec:
replicas: {{ $webapp.replicas | default 1 }}
replicas: {{ $webapp.replicaCount }}
selector:
matchLabels:
{{- include "georchestra.selectorLabels" . | nindent 6 }}
Expand Down
2 changes: 1 addition & 1 deletion templates/datafeeder/datafeeder-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ metadata:
{{- include "georchestra.labels" . | nindent 4 }}
app.kubernetes.io/component: {{ include "georchestra.fullname" . }}-datafeeder
spec:
replicas: {{ $webapp.replicas | default 1 }}
replicas: {{ $webapp.replicaCount }}
selector:
matchLabels:
{{- include "georchestra.selectorLabels" . | nindent 6 }}
Expand Down
2 changes: 1 addition & 1 deletion templates/datafeeder/import-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ metadata:
{{- include "georchestra.labels" . | nindent 4 }}
app.kubernetes.io/component: {{ include "georchestra.fullname" . }}-datafeeder-import
spec:
replicas: {{ $webapp.replicas | default 1 }}
replicas: {{ $webapp.replicaCount }}
selector:
matchLabels:
{{- include "georchestra.selectorLabels" . | nindent 6 }}
Expand Down
2 changes: 1 addition & 1 deletion templates/extractorapp/extractorapp-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ metadata:
{{- include "georchestra.labels" . | nindent 4 }}
app.kubernetes.io/component: {{ include "georchestra.fullname" . }}-extractorapp
spec:
replicas: {{ $webapp.replicas | default 1 }}
replicas: {{ $webapp.replicaCount }}
selector:
matchLabels:
{{- include "georchestra.selectorLabels" . | nindent 6 }}
Expand Down
2 changes: 1 addition & 1 deletion templates/gateway/gateway-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ metadata:
{{- include "georchestra.labels" . | nindent 4 }}
app.kubernetes.io/component: {{ include "georchestra.fullname" . }}-gateway
spec:
replicas: {{ $webapp.replicas | default 1 }}
replicas: {{ $webapp.replicaCount }}
selector:
matchLabels:
{{- include "georchestra.selectorLabels" . | nindent 6 }}
Expand Down
2 changes: 1 addition & 1 deletion templates/geonetwork/elasticsearch/es-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ metadata:
{{- include "georchestra.labels" . | nindent 4 }}
app.kubernetes.io/component: {{ include "georchestra.fullname" . }}-gn4-elasticsearch
spec:
replicas: {{ $webapp.replicas | default 1 }}
replicas: {{ $webapp.replicaCount }}
strategy:
type: Recreate
selector:
Expand Down
2 changes: 1 addition & 1 deletion templates/geonetwork/geonetwork-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ metadata:
{{- include "georchestra.labels" . | nindent 4 }}
app.kubernetes.io/component: {{ include "georchestra.fullname" . }}-geonetwork
spec:
replicas: {{ $webapp.replicas | default 1 }}
replicas: {{ $webapp.replicaCount }}
strategy:
type: Recreate
selector:
Expand Down
2 changes: 1 addition & 1 deletion templates/geonetwork/kibana/kibana-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
{{- include "georchestra.labels" . | nindent 4 }}
app.kubernetes.io/component: {{ include "georchestra.fullname" . }}-gn4-kibana
spec:
replicas: {{ .Values.georchestra.webapps.geonetwork.kibana.replicas | default 1 }}
replicas: {{ .Values.georchestra.webapps.geonetwork.kibana.replicaCount }}
selector:
matchLabels:
{{- include "georchestra.selectorLabels" . | nindent 6 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ metadata:
{{- include "georchestra.labels" . | nindent 4 }}
app.kubernetes.io/component: {{ include "georchestra.fullname" . }}-gn4-ogc-api-records
spec:
replicas: {{ $webapp.replicas | default 1 }}
replicas: {{ $webapp.replicaCount }}
selector:
matchLabels:
{{- include "georchestra.selectorLabels" . | nindent 6 }}
Expand Down
2 changes: 1 addition & 1 deletion templates/geoserver/geoserver-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ metadata:
{{- include "georchestra.labels" . | nindent 4 }}
app.kubernetes.io/component: {{ include "georchestra.fullname" . }}-geoserver
spec:
replicas: {{ $webapp.replicas | default 1 }}
replicas: {{ $webapp.replicaCount }}
strategy:
type: Recreate
selector:
Expand Down
2 changes: 1 addition & 1 deletion templates/header/header-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ metadata:
{{- include "georchestra.labels" . | nindent 4 }}
app.kubernetes.io/component: {{ include "georchestra.fullname" . }}-header
spec:
replicas: {{ $webapp.replicas | default 1 }}
replicas: {{ $webapp.replicaCount }}
selector:
matchLabels:
{{- include "georchestra.selectorLabels" . | nindent 6 }}
Expand Down
2 changes: 1 addition & 1 deletion templates/ldap/openldap-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ metadata:
{{- include "georchestra.labels" . | nindent 4 }}
app.kubernetes.io/component: {{ include "georchestra.fullname" . }}-ldap
spec:
replicas: {{ $webapp.replicas | default 1 }}
replicas: {{ $webapp.replicaCount }}
strategy:
type: Recreate
selector:
Expand Down
2 changes: 1 addition & 1 deletion templates/mapfishapp/mapfishapp-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ metadata:
{{- include "georchestra.labels" . | nindent 4 }}
app.kubernetes.io/component: {{ include "georchestra.fullname" . }}-mapfishapp
spec:
replicas: {{ $webapp.replicas | default 1 }}
replicas: {{ $webapp.replicaCount }}
selector:
matchLabels:
{{- include "georchestra.selectorLabels" . | nindent 6 }}
Expand Down
2 changes: 1 addition & 1 deletion templates/mapstore/mapstore-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ metadata:
{{- include "georchestra.labels" . | nindent 4 }}
app.kubernetes.io/component: {{ include "georchestra.fullname" . }}-mapstore
spec:
replicas: {{ $webapp.replicas | default 1 }}
replicas: {{ $webapp.replicaCount }}
strategy:
type: Recreate
selector:
Expand Down
2 changes: 1 addition & 1 deletion templates/security-proxy/security-proxy-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ metadata:
{{- include "georchestra.labels" . | nindent 4 }}
app.kubernetes.io/component: {{ include "georchestra.fullname" . }}-sp
spec:
replicas: {{ $webapp.replicas | default 1 }}
replicas: {{ $webapp.replicaCount }}
selector:
matchLabels:
{{- include "georchestra.selectorLabels" . | nindent 6 }}
Expand Down
2 changes: 1 addition & 1 deletion templates/smtp-smarthost/smtp-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
{{- include "georchestra.labels" . | nindent 4 }}
app.kubernetes.io/component: {{ include "georchestra.fullname" . }}-smtp
spec:
replicas: {{ .Values.georchestra.smtp_smarthost.replicas | default 1 }}
replicas: {{ .Values.georchestra.smtp_smarthost.replicaCount }}
selector:
matchLabels:
{{- include "georchestra.selectorLabels" . | nindent 6 }}
Expand Down
34 changes: 17 additions & 17 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,25 @@ georchestra:
# (cardinality 0..1)
analytics:
enabled: true
# replicas: "1"
replicaCount: "1"
docker_image: georchestra/analytics:latest
extra_environment: []
# registry_secret: default
cas:
enabled: true
# replicas: "1"
replicaCount: "1"
docker_image: georchestra/cas:latest
# registry_secret: default
console:
enabled: true
# replicas: "1"
replicaCount: "1"
docker_image: georchestra/console:latest
extra_environment: []
lifecycle: {}
# registry_secret: default
datafeeder:
enabled: true # won't deploy if datafeeder_frontend is not enable
# replicas: "1"
replicaCount: "1"
docker_image: georchestra/datafeeder:latest
extra_environment:
# - name: SMTPHOST
Expand All @@ -46,19 +46,19 @@ georchestra:
datafeeder_frontend:
# Matches datafeeder/import-xxx.yaml templates in the helm chart
enabled: true # won't deploy if datafeeder is not enable
# replicas: "1"
replicaCount: "1"
docker_image: georchestra/datafeeder-frontend:latest
lifecycle: {}
# registry_secret: default
extractorapp:
enabled: false
# replicas: "1"
replicaCount: "1"
docker_image: georchestra/extractorapp:latest
extra_environment: []
# registry_secret: default
geonetwork:
enabled: true
# replicas: "1"
replicaCount: "1"
docker_image: georchestra/geonetwork:latest
# the registry secret is only used for the GeoNetwork image
# registry_secret: default
Expand All @@ -73,21 +73,21 @@ georchestra:
extra_volumeMounts: []
ogc_api_records:
enabled: true
# replicas: "1"
replicaCount: "1"
image: georchestra/gn-cloud-ogc-api-records-service:2021-12-16
extra_environment: []
envsubst:
enabled: true
elasticsearch:
# replicas: "1"
replicaCount: "1"
resources:
limits:
memory: 5120Mi
requests:
memory: 5120Mi
image: docker.elastic.co/elasticsearch/elasticsearch:7.15.1
kibana:
# replicas: "1"
replicaCount: "1"
image: docker.elastic.co/kibana/kibana:7.15.1
# automatically clean some logs of geonetwork
housekeeping:
Expand All @@ -96,26 +96,26 @@ georchestra:
schedule: "0 1 * * *"
geoserver:
enabled: true
# replicas: "1"
replicaCount: "1"
docker_image: georchestra/geoserver:latest
jetty_monitoring: false
extra_environment: []
# registry_secret: default
header:
enabled: true
# replicas: "1"
replicaCount: "1"
docker_image: georchestra/header:latest
extra_environment: []
# registry_secret: default
mapfishapp:
enabled: false
# replicas: "1"
replicaCount: "1"
docker_image: georchestra/mapfishapp:latest
extra_environment: []
# registry_secret: default
mapstore:
enabled: true
# replicas: "1"
replicaCount: "1"
docker_image: georchestra/mapstore:latest
# registry_secret: default
# no need to put the original command already managed
Expand All @@ -124,7 +124,7 @@ georchestra:
lifecycle: {}
openldap:
enabled: true
# replicas: "1"
replicaCount: "1"
docker_image: georchestra/ldap:latest
extraVolumeMounts: []
# - name: copy-portal-skins
Expand All @@ -138,7 +138,7 @@ georchestra:
# registry_secret: default
proxy:
enabled: true
# replicas: "1"
replicaCount: "1"
docker_image: georchestra/security-proxy:latest
jetty_monitoring: false
extra_environment: []
Expand All @@ -147,7 +147,7 @@ georchestra:
enabled: true
gateway:
enabled: false
# replicas: "1"
replicaCount: "1"
docker_image: georchestra/gateway:latest
environment:
JAVA_TOOL_OPTIONS: "-Dgeorchestra.datadir=/etc/georchestra"
Expand Down

0 comments on commit c36b633

Please sign in to comment.