Skip to content

Commit

Permalink
remove MCM releated docs and resource YAMLs
Browse files Browse the repository at this point in the history
  • Loading branch information
hasancelik committed Jul 21, 2023
1 parent efc21d3 commit 79397c5
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 136 deletions.
21 changes: 0 additions & 21 deletions stable/hazelcast-enterprise/templates/mancenter-mcm-navmenu.yaml

This file was deleted.

This file was deleted.

17 changes: 0 additions & 17 deletions stable/hazelcast-enterprise/templates/mancenter-mcm-route.yaml

This file was deleted.

10 changes: 0 additions & 10 deletions stable/hazelcast-enterprise/templates/mancenter-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,13 @@ metadata:
{{- if .Values.mancenter.service.annotations }}
annotations:
{{ toYaml .Values.mancenter.service.annotations | indent 4 }}
{{ else if and .Values.mcm.enabled .Values.mcm.baseURL }}
annotations:
name: Hazelcast Management Center
id: applications
roles: ClusterAdministrator,Administrator,Operator,Viewer
url: "http://{{ template "mancenter.fullname" . }}-{{ .Release.Namespace }}.{{ .Values.mcm.baseURL }}"
{{- end }}
name: {{ template "mancenter.fullname" . }}
labels:
app.kubernetes.io/name: {{ template "mancenter.name" . }}
helm.sh/chart: {{ template "hazelcast.chart" . }}
app.kubernetes.io/instance: "{{ .Release.Name }}"
app.kubernetes.io/managed-by: "{{ .Release.Service }}"
{{- if and .Values.mcm.enabled .Values.mcm.baseURL }}
inmenu: "true"
target: ManagementCenter
{{- end }}
{{- range $key, $value := .Values.mancenter.service.labels }}
{{ $key }}: {{ $value | quote }}
{{- end }}
Expand Down
60 changes: 1 addition & 59 deletions stable/hazelcast-enterprise/templates/mancenter-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -168,65 +168,7 @@ spec:
{{- if .Values.mancenter.clusterConfig.create }}
{{- $clusterConfigCommand = "./bin/mc-conf.sh cluster add --lenient=true -H /data -cc /config/hazelcast-client.yaml; " }}
{{- end }}
{{- if and .Values.mcm.enabled (not .Values.mcm.baseURL) }}
- name: CLIENT_ID
valueFrom:
secretKeyRef:
name: {{ template "mancenter.fullname" . }}-oidc-reg-secret
key: CLIENT_ID
- name: CLIENT_SECRET
valueFrom:
secretKeyRef:
name: {{ template "mancenter.fullname" . }}-oidc-reg-secret
key: client_secret
- name: AUTHORIZE_ENDPOINT
valueFrom:
secretKeyRef:
name: {{ template "mancenter.fullname" . }}-oidc-reg-secret
key: AUTHORIZE_ENDPOINT
- name: USER_INFO_ENDPOINT
valueFrom:
secretKeyRef:
name: {{ template "mancenter.fullname" . }}-oidc-reg-secret
key: USER_INFO_ENDPOINT
- name: TOKEN_ENDPOINT
valueFrom:
secretKeyRef:
name: {{ template "mancenter.fullname" . }}-oidc-reg-secret
key: TOKEN_ENDPOINT
- name: JWK_ENDPOINT
valueFrom:
secretKeyRef:
name: {{ template "mancenter.fullname" . }}-oidc-reg-secret
key: JWK_ENDPOINT
- name: OIDC_ISSUER_URL
valueFrom:
secretKeyRef:
name: {{ template "mancenter.fullname" . }}-oidc-reg-secret
key: OIDC_ISSUER_URL
- name: TRUSTED_URI_PREFIX_0
valueFrom:
secretKeyRef:
name: {{ template "mancenter.fullname" . }}-oidc-reg-secret
key: TRUSTED_URI_PREFIX_0
- name: MC_INIT_CMD
value: "{{ $clusterConfigCommand }}./bin/mc-conf.sh security reset -H /data; ./bin/mc-conf.sh oidc configure -H /data \
--client-id $(CLIENT_ID) \
--client-secret $(CLIENT_SECRET) \
--authorization-endpoint $(AUTHORIZE_ENDPOINT) \
--user-info-endpoint $(USER_INFO_ENDPOINT) \
--token-endpoint $(TOKEN_ENDPOINT) \
--jwk-set-endpoint $(JWK_ENDPOINT) \
--issuer $(OIDC_ISSUER_URL) \
--groups-claim-name 'groups' \
--admin-groups 'icpusers' \
--read-write-groups 'icpusers' \
--read-only-groups 'icpusers' \
--metrics-only-groups 'icpusers' \
--redirect-url $(TRUSTED_URI_PREFIX_0)/oidc/auth \
--user-info-request-http-method POST \
--send-client-info-in-token-request"
{{- else if .Values.mancenter.devMode.enabled }}
{{- if .Values.mancenter.devMode.enabled }}
- name: MC_INIT_CMD
value: "{{ $clusterConfigCommand }}./bin/mc-conf.sh dev-mode configure"
{{- else if .Values.mancenter.clusterConfig.create }}
Expand Down
6 changes: 0 additions & 6 deletions stable/hazelcast-enterprise/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,6 @@ cluster:
# memberCount is the number Hazelcast members
memberCount: 3

# Required for IBM CP4MCM deployment
mcm:
enabled: false
# Base URL of MCM OpenShift must be defined for CP4MCM versions before 2.3 to enable Management Center at Navigation Menu.
# baseURL: apps.yellow-22.dev.multicloudops.io

# Hazelcast properties
hazelcast:
# enabled is a flag to enable Hazelcast application
Expand Down

0 comments on commit 79397c5

Please sign in to comment.