Skip to content

Commit

Permalink
Merge pull request #122 from warpstreamlabs/ra/fix-playground-mode-2
Browse files Browse the repository at this point in the history
Fix playground mode more
  • Loading branch information
richardartoul authored Oct 29, 2024
2 parents 4c4dfd4 + 37fa59f commit a8f5e48
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
14 changes: 13 additions & 1 deletion charts/warpstream-agent/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,19 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.13.41] - 2024-10-28
## [0.13.44] - 2024-10-29

### Added

- Make sure there is only one replica in playground mode.

## [0.13.43] - 2024-10-29

### Added

- Remove need for unnecessary configuration options in playground mode.

## [0.13.42] - 2024-10-28

### Added

Expand Down
2 changes: 1 addition & 1 deletion charts/warpstream-agent/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: warpstream-agent
description: WarpStream Agent for Kubernetes.
type: application
version: 0.13.42
version: 0.13.44
appVersion: v594
icon: https://avatars.githubusercontent.com/u/132156278
home: https://docs.warpstream.com/warpstream/
Expand Down
5 changes: 4 additions & 1 deletion charts/warpstream-agent/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ metadata:
labels:
{{- include "warpstream-agent.labels" . | nindent 4 }}
spec:
{{- if and (not .Values.autoscaling.enabled) (.Values.replicas) (not .Values.config.playground) }}
{{- if .Values.config.playground}}
replicas: 1
{{- else }}
{{- if and (not .Values.autoscaling.enabled) (.Values.replicas) }}
replicas: {{ .Values.replicas }}
{{- end }}
revisionHistoryLimit: {{ .Values.revisionHistoryLimit }}
Expand Down
2 changes: 1 addition & 1 deletion charts/warpstream-agent/templates/hpa.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if .Values.autoscaling.enabled }}
{{- if and (.Values.autoscaling.enabled) (not .Values.config.playground) }}
apiVersion: {{ include "warpstream-agent.hpa.apiVersion" . }}
kind: HorizontalPodAutoscaler
metadata:
Expand Down

0 comments on commit a8f5e48

Please sign in to comment.