Skip to content

Commit

Permalink
Merge pull request #205 from DrBu7cher/block-source-controller-scaling
Browse files Browse the repository at this point in the history
fix(charts,flux2,source-controller): hard-code replicas
  • Loading branch information
stefanprodan authored Dec 14, 2023
2 parents 059582f + 21924ae commit 1789326
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 16 deletions.
4 changes: 2 additions & 2 deletions charts/flux2/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
annotations:
artifacthub.io/changes: |
- "feat: update CRDs and component versions to flux v2.2.0"
- "chore: disallow source-controller replica count other than 1"
apiVersion: v2
appVersion: 2.2.0
description: A Helm chart for flux2
name: flux2
sources:
- https://github.com/fluxcd-community/helm-charts
type: application
version: 2.12.0
version: 2.12.1
2 changes: 1 addition & 1 deletion charts/flux2/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# flux2

![Version: 2.12.0](https://img.shields.io/badge/Version-2.12.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.1.2](https://img.shields.io/badge/AppVersion-2.1.2-informational?style=flat-square)
![Version: 2.12.1](https://img.shields.io/badge/Version-2.12.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.2.0](https://img.shields.io/badge/AppVersion-2.2.0-informational?style=flat-square)

A Helm chart for flux2

Expand Down
4 changes: 0 additions & 4 deletions charts/flux2/templates/source-controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,7 @@ metadata:
{{- end }}
name: source-controller
spec:
{{- if kindIs "invalid" .Values.sourceController.replicas }}
replicas: 1
{{- else }}
replicas: {{ .Values.sourceController.replicas }}
{{- end}}
selector:
matchLabels:
app: source-controller
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ should match snapshot of default values:
app.kubernetes.io/part-of: flux
app.kubernetes.io/version: 2.2.0
control-plane: controller
helm.sh/chart: flux2-2.12.0
helm.sh/chart: flux2-2.12.1
labeltestkey: labeltestvalue
labeltestkey2: labeltestvalue2
name: helm-controller
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ should match snapshot of default values:
app.kubernetes.io/part-of: flux
app.kubernetes.io/version: 2.2.0
control-plane: controller
helm.sh/chart: flux2-2.12.0
helm.sh/chart: flux2-2.12.1
name: image-automation-controller
spec:
replicas: 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ should match snapshot of default values:
app.kubernetes.io/part-of: flux
app.kubernetes.io/version: 2.2.0
control-plane: controller
helm.sh/chart: flux2-2.12.0
helm.sh/chart: flux2-2.12.1
name: image-reflector-controller
spec:
replicas: 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ should match snapshot of default values:
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/part-of: flux
app.kubernetes.io/version: 2.2.0
helm.sh/chart: flux2-2.12.0
helm.sh/chart: flux2-2.12.1
name: test1
namespace: NAMESPACE
type: Opaque
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ should match snapshot of default values:
app.kubernetes.io/part-of: flux
app.kubernetes.io/version: 2.2.0
control-plane: controller
helm.sh/chart: flux2-2.12.0
helm.sh/chart: flux2-2.12.1
name: kustomize-controller
spec:
replicas: 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ should match snapshot of default values:
app.kubernetes.io/part-of: flux
app.kubernetes.io/version: 2.2.0
control-plane: controller
helm.sh/chart: flux2-2.12.0
helm.sh/chart: flux2-2.12.1
name: notification-controller
spec:
replicas: 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ should match snapshot of default values:
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/part-of: flux
app.kubernetes.io/version: 2.2.0
helm.sh/chart: flux2-2.12.0
helm.sh/chart: flux2-2.12.1
name: RELEASE-NAME-flux-check
spec:
backoffLimit: 1
Expand All @@ -23,7 +23,7 @@ should match snapshot of default values:
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/part-of: flux
app.kubernetes.io/version: 2.2.0
helm.sh/chart: flux2-2.12.0
helm.sh/chart: flux2-2.12.1
name: RELEASE-NAME
spec:
automountServiceAccountToken: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ should match snapshot of default values:
app.kubernetes.io/part-of: flux
app.kubernetes.io/version: 2.2.0
control-plane: controller
helm.sh/chart: flux2-2.12.0
helm.sh/chart: flux2-2.12.1
name: source-controller
spec:
replicas: 1
Expand Down

0 comments on commit 1789326

Please sign in to comment.