Skip to content

Commit

Permalink
Merge pull request #347 from joejulian/fix_console_bug
Browse files Browse the repository at this point in the history
redpanda: fix console bug where deployment and configmap are erroneously created
  • Loading branch information
alejandroEsc authored Feb 16, 2023
2 parents 7032c73 + ad79f31 commit a9a773b
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/redpanda/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ type: application
# The chart version and the app version are not the same and will not track
# together. The chart version is a semver representation of changes to this
# chart.
version: 2.10.2
version: 2.10.3

# The app version is the default version of Redpanda to install.
appVersion: v22.3.12
Expand Down
16 changes: 16 additions & 0 deletions charts/redpanda/templates/certs.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
{{/*
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF 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.
*/}}
{{- if (include "tls-enabled" . | fromJson).bool }}
{{- $root := deepCopy . }}
{{- $service := include "redpanda.fullname" . -}}
Expand Down
18 changes: 17 additions & 1 deletion charts/redpanda/templates/console/configmap.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,23 @@
{{/*
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF 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.
*/}}
{{ $values := .Values }}

{{/* if the console chart has the creation of the configmap disabled, create it here instead */}}
{{ if not .Values.console.configmap.create }}
{{ if and .Values.console.enabled (not .Values.console.configmap.create) }}
{{ $consoleConfigmap := dict "create" true }}

{{/* kafka section */}}
Expand Down
18 changes: 17 additions & 1 deletion charts/redpanda/templates/console/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
{{ if (not .Values.console.deployment.create) }}
{{/*
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF 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.
*/}}
{{ if and .Values.console.enabled (not .Values.console.deployment.create) }}

{{ $extraVolumes := list }}
{{ $extraVolumeMounts := list }}
Expand Down
16 changes: 16 additions & 0 deletions charts/redpanda/templates/post-upgrade.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
{{/*
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF 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.
*/}}
{{- if .Values.post_upgrade_job.enabled }}
{{- if (include "redpanda-atleast-22-1-1" . | fromJson).bool }}
{{- $rpkFlags := include "rpk-flags-no-sasl" . }}
Expand Down

0 comments on commit a9a773b

Please sign in to comment.