Skip to content

Commit

Permalink
Merge pull request #12 from appuio/fix/resource-locker-patch-strategy
Browse files Browse the repository at this point in the history
Use the merge-patch strategy for the `ingress.config.openshift.io` patch
  • Loading branch information
simu authored Oct 15, 2021
2 parents 4518bdb + 8976f93 commit c29cb8e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion component/main.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,11 @@ local consoleRoutePatch =
}
else
obj
for obj in rl.Patch(target, patch)
for obj in rl.Patch(
target,
patch,
patchstrategy='application/merge-patch+json'
)
]
else
null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ spec:
- id: patch1
patchTemplate: "\"spec\":\n \"componentRoutes\":\n - \"hostname\": \"console.cluster.example.org\"\
\n \"name\": \"console\"\n \"namespace\": \"openshift-console\""
patchType: application/strategic-merge-patch+json
patchType: application/merge-patch+json
targetObjectRef:
apiVersion: config.openshift.io/v1
kind: Ingress
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ spec:
patchTemplate: "\"spec\":\n \"componentRoutes\":\n - \"hostname\": \"console.cluster.example.org\"\
\n \"name\": \"console\"\n \"namespace\": \"openshift-console\"\n \
\ \"servingCertKeyPairSecret\":\n \"name\": \"console-cluster-example-org-tls\""
patchType: application/strategic-merge-patch+json
patchType: application/merge-patch+json
targetObjectRef:
apiVersion: config.openshift.io/v1
kind: Ingress
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ spec:
patchTemplate: "\"spec\":\n \"componentRoutes\":\n - \"hostname\": \"console.cluster.example.org\"\
\n \"name\": \"console\"\n \"namespace\": \"openshift-console\"\n \
\ \"servingCertKeyPairSecret\":\n \"name\": \"console-cluster-example-org-tls\""
patchType: application/strategic-merge-patch+json
patchType: application/merge-patch+json
targetObjectRef:
apiVersion: config.openshift.io/v1
kind: Ingress
Expand Down

0 comments on commit c29cb8e

Please sign in to comment.