forked from CrunchyData/postgres-operator-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update JSON 6902 patch for compatibility with older kubectl
The inline patch technique only works on kubectl v1.21.0 and later. While it is certainly much more convenient to write it out in that manner, this uses the previously available technique of referencing the location of a patch file to apply a patch, thus ensuring greater compatibility.
- Loading branch information
Jonathan S. Katz
committed
Jan 10, 2022
1 parent
099bc0c
commit 9bb49e6
Showing
2 changed files
with
13 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
- op: remove | ||
path: /spec/selector/matchLabels/app.kubernetes.io~1name | ||
- op: remove | ||
path: /spec/selector/matchLabels/app.kubernetes.io~1version |