Skip to content

Commit

Permalink
fix: remove default replicas=1 value from workload conversion (#27)
Browse files Browse the repository at this point in the history
* fix: remove default replicas=1 value from workload conversion

Signed-off-by: Ben Meier <[email protected]>

* fix: remove default value of stateful set replicas

Signed-off-by: Ben Meier <[email protected]>

---------

Signed-off-by: Ben Meier <[email protected]>
  • Loading branch information
astromechza authored Sep 3, 2024
1 parent bbbdcdc commit 26e2211
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions internal/convert/workloads.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,6 @@ func ConvertWorkload(state *project.State, workloadName string) ([]machineryMeta
Labels: commonLabels,
},
Spec: v1.DeploymentSpec{
Replicas: internal.Ref(int32(1)),
Selector: &machineryMeta.LabelSelector{
MatchLabels: map[string]string{
SelectorLabelInstance: commonLabels[SelectorLabelInstance],
Expand Down Expand Up @@ -255,7 +254,6 @@ func ConvertWorkload(state *project.State, workloadName string) ([]machineryMeta
Labels: commonLabels,
},
Spec: v1.StatefulSetSpec{
Replicas: internal.Ref(int32(1)),
Selector: &machineryMeta.LabelSelector{
MatchLabels: map[string]string{
SelectorLabelInstance: commonLabels[SelectorLabelInstance],
Expand Down
1 change: 0 additions & 1 deletion internal/convert/workloads_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@ metadata:
app.kubernetes.io/name: example
name: example
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/instance: example-abcdef
Expand Down

0 comments on commit 26e2211

Please sign in to comment.