Skip to content

Commit

Permalink
PatchesJson6902 promoted to just patches (#2043)
Browse files Browse the repository at this point in the history
Signed-off-by: pjuarezd <pjuarezd@users.noreply.github.com>
  • Loading branch information
pjuarezd committed Mar 24, 2024
1 parent 864d16c commit a2c1016
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion config/manifests/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ patchesStrategicMerge:
- overlay/console_v1_service.yaml
- overlay/sts_v1_service.yaml

patchesJson6902:
patches:
- target:
group: apps
version: v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ images:
- name: miniodev/operator-sts-example
newTag: aws-sdk-python

patchesJson6902:
patches:
- target:
group: batch
version: v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ images:
- name: miniodev/operator-sts-example
newTag: minio-sdk-dotnet

patchesJson6902:
patches:
- target:
group: batch
version: v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ images:
- name: miniodev/operator-sts-example
newTag: minio-sdk-go

patchesJson6902:
patches:
- target:
group: batch
version: v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ images:
- name: miniodev/operator-sts-example
newTag: minio-sdk-java

patchesJson6902:
patches:
- target:
group: batch
version: v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ images:
- name: miniodev/operator-sts-example
newTag: minio-sdk-javascript

patchesJson6902:
patches:
- target:
group: batch
version: v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ images:
- name: miniodev/operator-sts-example
newTag: minio-sdk-python

patchesJson6902:
patches:
- target:
group: batch
version: v1
Expand Down
6 changes: 3 additions & 3 deletions kubectl-minio/cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func (o *operatorInitCmd) run(writer io.Writer) error {
Resources: []string{
"operator/",
},
PatchesJson6902: []types.Patch{},
Patches: []types.Patch{},
}

var operatorDepPatches []interface{}
Expand Down Expand Up @@ -243,7 +243,7 @@ func (o *operatorInitCmd) run(writer io.Writer) error {
}
// attach the patches to the kustomization file
if len(operatorDepPatches) > 0 {
kustomizationYaml.PatchesJson6902 = append(kustomizationYaml.PatchesJson6902, types.Patch{
kustomizationYaml.Patches = append(kustomizationYaml.Patches, types.Patch{
Patch: o.serializeJSONPatchOps(operatorDepPatches),
Target: &types.Selector{
ResId: resid.ResId{
Expand All @@ -259,7 +259,7 @@ func (o *operatorInitCmd) run(writer io.Writer) error {
}

if len(consoleDepPatches) > 0 {
kustomizationYaml.PatchesJson6902 = append(kustomizationYaml.PatchesJson6902, types.Patch{
kustomizationYaml.Patches = append(kustomizationYaml.Patches, types.Patch{
Patch: o.serializeJSONPatchOps(consoleDepPatches),
Target: &types.Selector{
ResId: resid.ResId{
Expand Down

0 comments on commit a2c1016

Please sign in to comment.