Skip to content

Commit

Permalink
Add version upgrade related helm changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pubudu538 committed Apr 1, 2024
1 parent 718a5c2 commit 906e95a
Show file tree
Hide file tree
Showing 10 changed files with 430 additions and 311 deletions.
653 changes: 346 additions & 307 deletions helm-charts/README.md

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions helm-charts/Version-Upgrade.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Version Upgrade APK

helm template test . -f version-upgrade-values.yaml && helm show crds . > t.yaml
3 changes: 2 additions & 1 deletion helm-charts/templates/crds/dp.wso2.com_apis.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
{{- if not .Values.skipCrds }}
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
Expand Down Expand Up @@ -374,3 +374,4 @@ spec:
storage: true
subresources:
status: {}
{{- end}}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if and .Values.wso2.apk.metrics .Values.wso2.apk.metrics.enabled }}
# Copyright (c) 2024, WSO2 LLC. (https://www.wso2.com) All Rights Reserved.
#
# WSO2 LLC. licenses this file to you under the Apache License,
Expand Down Expand Up @@ -29,3 +30,4 @@ data:
help: Operating System $1
attrNameSnakeCase: true
type: GAUGE
{{- end -}}
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
{{- if or .Values.wso2.apk.dp.enabled .Values.wso2.apk.cp.enabled }}
# Copyright (c) 2024, WSO2 LLC. (https://www.wso2.com) All Rights Reserved.
#
# WSO2 LLC. licenses this file to you under the Apache License,
# Version 2.0 (the "License"); you may not use this file except
# in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

apiVersion: gateway.networking.k8s.io/v1
kind: GatewayClass
metadata:
Expand All @@ -8,3 +25,4 @@ metadata:
{{- end }}
spec:
controllerName: "wso2.com/apk-gateway-default"
{{- end -}}
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{{- if or .Values.wso2.apk.dp.enabled .Values.wso2.apk.cp.enabled }}

# Copyright (c) 2023, WSO2 LLC. (https://www.wso2.com) All Rights Reserved.
#
# WSO2 LLC. licenses this file to you under the Apache License,
Expand All @@ -22,3 +24,4 @@ metadata:
name: {{ template "apk-helm.resource.prefix" . }}-sts-shared-auth-key
namespace: {{ .Release.Namespace }}
type: Opaque
{{- end -}}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if and .Values.wso2.apk.metrics .Values.wso2.apk.metrics.enabled }}
# Copyright (c) 2024, WSO2 LLC. (https://www.wso2.com) All Rights Reserved.
#
# WSO2 LLC. licenses this file to you under the Apache License,
Expand Down Expand Up @@ -44,4 +45,5 @@ data:
name: os_$1
help: Operating System $1
attrNameSnakeCase: true
type: GAUGE
type: GAUGE
{{- end -}}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if and .Values.wso2.apk.metrics .Values.wso2.apk.metrics.enabled }}
# Copyright (c) 2024, WSO2 LLC. (https://www.wso2.com) All Rights Reserved.
#
# WSO2 LLC. licenses this file to you under the Apache License,
Expand Down Expand Up @@ -29,3 +30,4 @@ data:
help: Operating System $1
attrNameSnakeCase: true
type: GAUGE
{{- end -}}
5 changes: 3 additions & 2 deletions helm-charts/values.yaml.template
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,6 @@ wso2:
level: "INFO"
# -- Log format can be "JSON", "TEXT"
logFormat: "TEXT"

type
ratelimiter:
# -- Enable the deployment of the Rate Limiter
enabled: true
Expand Down Expand Up @@ -889,3 +887,6 @@ redis:
auth:
# -- Enable password authentication
enabled: false

# -- Skip generate of CRD templates
skipCrds: false
48 changes: 48 additions & 0 deletions helm-charts/version-upgrade-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Copyright (c) 2024, WSO2 LLC. (https://www.wso2.com) All Rights Reserved.
#
# WSO2 LLC. licenses this file to you under the Apache License,
# Version 2.0 (the "License"); you may not use this file except
# in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

wso2:
apk:
cp:
enabled: false
webhooks:
validatingwebhookconfigurations: false
mutatingwebhookconfigurations: false
auth:
enabled: false
enableServiceAccountCreation: false
enableClusterRoleCreation: false
dp:
enabled: false

idp:
enabled: false

gatewaySystem:
enabled: false
enableServiceAccountCreation: false
enableClusterRoleCreation: false

certmanager:
enabled: false
enableClusterIssuer: false
enableRootCa: false

postgresql:
enabled: false

redis:
enabled: false

0 comments on commit 906e95a

Please sign in to comment.