Skip to content

Commit

Permalink
Use the merge-patch strategy for the ingress.config.openshift.io patch
Browse files Browse the repository at this point in the history
  • Loading branch information
simu committed Oct 15, 2021
1 parent 4518bdb commit 8976f93
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 8976f93

Please sign in to comment.