Skip to content

Commit

Permalink
Quick and dirty fix to get tests and deployments working properly
Browse files Browse the repository at this point in the history
This will be fixed later on, but getting a proposed version up in a PR to Shopify's Krane is the priority
  • Loading branch information
c-gerke committed Dec 3, 2024
1 parent 8bbbe90 commit 9839b6d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/krane/kubernetes_resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,11 @@ def use_generated_name(instance_data)

def predeployed?
predeployed = krane_annotation_value("predeployed")
default_to_predeployed? ? (predeployed != "false") : (predeployed == "true")
if type == "Role" || type == "RoleBinding"
true
else
default_to_predeployed? ? (predeployed != "false") : (predeployed == "true")
end
end

def default_to_predeployed?
Expand Down

0 comments on commit 9839b6d

Please sign in to comment.