-
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.
Fix elasticsearch-operator deprecated in stable-5.9 (#142)
* Fix elasticsearch-operator deprecated in stable-5.9 * Fix elasticsearch-operator deprecated in Logging 5.9 There is no 5.9 channel of Elasticsearch operator.
- Loading branch information
1 parent
c259a8d
commit 701e7e5
Showing
4 changed files
with
35 additions
and
12 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
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,26 @@ | ||
local kap = import 'lib/kapitan.libjsonnet'; | ||
local kube = import 'lib/kube.libjsonnet'; | ||
|
||
local inv = kap.inventory(); | ||
local params = inv.parameters.openshift4_logging; | ||
|
||
local isVersion58 = | ||
local major = std.split(params.version, '.')[0]; | ||
local minor = std.split(params.version, '.')[1]; | ||
if major == 'master' then true | ||
else if std.parseInt(major) >= 6 then true | ||
else if std.parseInt(major) == 5 && std.parseInt(minor) >= 8 then true | ||
else false; | ||
|
||
local isVersion59 = | ||
local major = std.split(params.version, '.')[0]; | ||
local minor = std.split(params.version, '.')[1]; | ||
if major == 'master' then true | ||
else if std.parseInt(major) >= 6 then true | ||
else if std.parseInt(major) == 5 && std.parseInt(minor) >= 9 then true | ||
else false; | ||
|
||
{ | ||
isVersion58: isVersion58, | ||
isVersion59: isVersion59, | ||
} |
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