Skip to content

Commit

Permalink
fix(): revert changes introduced by 1.9.6
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumelamirand committed Mar 22, 2024
1 parent ab3e1c8 commit e942a96
Show file tree
Hide file tree
Showing 7 changed files with 325 additions and 395 deletions.
5 changes: 5 additions & 0 deletions cockpit/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

This file documents all notable changes to [Gravitee.io Cockpit](https://github.com/gravitee-io/helm-charts/tree/master/cockpit) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).


### 1.9.7

- [X] Revert changes introduced with 1.9.6

### 1.9.6

- [X] Add new configuration for controller
Expand Down
6 changes: 2 additions & 4 deletions cockpit/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
name: cockpit
# When the version is modified, make sure the artifacthub.io/changes list is updated
# Also update CHANGELOG.md
version: 1.9.6
version: 1.9.7
appVersion: 3.16.0
description: Official Gravitee.io Helm chart for Cockpit
home: https://gravitee.io
Expand All @@ -21,6 +21,4 @@ annotations:
# List of changes for the release in artifacthub.io
# https://artifacthub.io/packages/helm/graviteeio/cockpit?modal=changelog
artifacthub.io/changes: |
- Add new configuration for controller
- Adapt hazelcast configuration for latest cockpit
- Remove compatible-versions values
- Revert changes introduced with 1.9.6
89 changes: 57 additions & 32 deletions cockpit/templates/api/api-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,33 +59,7 @@ data:
uri: mongodb://{{- if (eq .Values.mongo.auth.enabled true) }}{{ .Values.mongo.auth.username }}:{{ .Values.mongo.auth.password }}@{{- end }}{{ .Values.mongo.dbhost }}:{{ .Values.mongo.dbport }}/{{ .Values.mongo.dbname }}?{{- if .Values.mongo.rsEnabled }}&replicaSet={{ .Values.mongo.rs }}{{- end }}{{- if (eq .Values.mongo.auth.enabled true) }}&authSource={{ .Values.mongo.auth.source }}{{- end }}{{- if .Values.mongo.connectTimeoutMS }}&connectTimeoutMS={{ .Values.mongo.connectTimeoutMS }}{{- end }}
{{- end }}
cluster:
type: hazelcast
hazelcast:
config-path: ${gravitee.home}/config/hazelcast.xml
cache:
type: hazelcast
hazelcast:
config-path: ${gravitee.home}/config/hazelcast.xml
exchange:
controller:
ws:
port: 8062
secured: true
ssl:
clientAuth: REQUIRED
keystore:
type: ${ssl.keystore.type}
path: ${ssl.keystore.path}
password: ${ssl.keystore.password}
truststore:
type: ${truststore.type}
path: ${truststore.path}
password: ${truststore.password}
{{ if .Values.generator.enabled -}}
{{- if .Values.generator.enabled }}
swaggerGenerator:
url: http://{{ template "gravitee.generator.fullname" . }}:{{ .Values.generator.service.externalPort }}
apiKey: {{ .Values.generator.apiKey }}
Expand Down Expand Up @@ -155,6 +129,12 @@ data:
enabled: false
{{- end }}

controller:
{{- if .Values.api.controller.compatibleVersions }}
compatible-versions:
{{ toYaml .Values.api.controller.compatibleVersions | indent 8 }}
{{- end }}

email:
enabled: {{ .Values.smtp.enabled }}
{{- if .Values.smtp.enabled }}
Expand Down Expand Up @@ -284,31 +264,34 @@ data:
{{ toYaml .Values.authentication.oidc | indent 8 }}
{{- end }}

hazelcast.xml: |-
hazelcast.xml: |
<?xml version="1.0" encoding="UTF-8"?>
<hazelcast xmlns="http://www.hazelcast.com/schema/config"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.hazelcast.com/schema/config
http://www.hazelcast.com/schema/config/hazelcast-config-5.3.xsd">
http://www.hazelcast.com/schema/config/hazelcast-config-4.2.xsd">
<cluster-name>graviteeio-cockpit</cluster-name>
<properties>
<property name="hazelcast.discovery.enabled">true</property>
<property name="hazelcast.max.wait.seconds.before.join">3</property>
<property name="hazelcast.member.list.publish.interval.seconds">5</property>
<property name="hazelcast.socket.client.bind.any">false</property>
<property name="hazelcast.logging.type">slf4j</property>
</properties>
<queue name="exchange-cluster-command-*">
<queue name="commands-*">
<backup-count>0</backup-count>
<async-backup-count>1</async-backup-count>
</queue>
<map name="exchange-controller-primary-channel-candidate">
<map name="cockpit.channels.*">
<backup-count>0</backup-count>
<async-backup-count>1</async-backup-count>
</map>
<reliable-topic name="cockpit.primaryChannels">
<read-batch-size>10</read-batch-size>
</reliable-topic>
<cp-subsystem>
<cp-member-count>0</cp-member-count>
</cp-subsystem>
Expand All @@ -325,6 +308,48 @@ data:
</network>
</hazelcast>
hazelcast.yml: |
hazelcast:
cluster-name: {{ .Release.Name }}_{{ $clusterversion }}
network:
join:
multicast:
enabled: false
tcp-ip:
enabled: false
kubernetes:
enabled: true
namespace: {{ .Release.Namespace }}
service-name: {{ template "gravitee.api.fullname" . }}
{{- if .Values.hazelcast.advancedNetwork }}
advanced-network:
{{- toYaml .Values.hazelcast.advancedNetwork | nindent 8 }}
{{- end }}

properties:
hazelcast.logging.type: slf4j
hazelcast.max.wait.seconds.before.join: 3
hazelcast.member.list.publish.interval.seconds: 5
hazelcast.socket.client.bind.any: false
{{- if .Values.hazelcast.properties }}
{{- toYaml .Values.hazelcast.properties | nindent 8 }}
{{- end }}

cp-subsystem:
cp-member-count: 0
map:
cockpit.channels.*:
backup-count: 0
async-backup-count: 1
queue:
commands-*:
backup-count: 0
async-backup-count: 1
reliable-topic:
cockpit.primaryChannels:
read-batch-size: 10

logback.xml: |
<?xml version="1.0" encoding="UTF-8"?>
<!--
Expand Down
Loading

0 comments on commit e942a96

Please sign in to comment.