Skip to content

Commit

Permalink
Merge pull request #72 from projectsyn/treat-oke-as-openshift
Browse files Browse the repository at this point in the history
Treat OKE as OpenShift
  • Loading branch information
haasad authored May 15, 2024
2 parents 5b6ef37 + f4d4d69 commit cbe9f4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion component/main.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ local prometheus = import 'lib/prometheus.libsonnet';
local inv = kap.inventory();

local params = inv.parameters.crossplane;
local on_openshift4 = inv.parameters.facts.distribution == 'openshift4';
local on_openshift4 = std.member([ 'openshift4', 'oke' ], inv.parameters.facts.distribution);
local has_service_account(provider) = std.count(std.objectFields(params.serviceAccounts), provider) > 0;
local has_any_service = std.length(std.filter(function(x) std.objectHas(params.serviceAccounts, x), std.objectFields(params.providers))) > 0;
local missing_controller(provider_name) = !std.objectHas(params.controllerConfigs, provider_name);
Expand Down

0 comments on commit cbe9f4a

Please sign in to comment.