Method: Krane::CustomResource#validate_definition

Defined in:
lib/krane/kubernetes_resource/custom_resource.rb

#validate_definitionObject



65
66
67
68
69
70
71
72
73
74
75
# File 'lib/krane/kubernetes_resource/custom_resource.rb', line 65

def validate_definition(*, **)
  super

  @crd.validate_rollout_conditions
rescue RolloutConditionsError => e
  @validation_errors << "The CRD that specifies this resource is using invalid rollout conditions. " \
  "Krane will not be able to continue until those rollout conditions are fixed.\n" \
  "Rollout conditions can be found on the CRD that defines this resource (#{@crd.name}), " \
  "under the annotation #{Annotation.for(CustomResourceDefinition::ROLLOUT_CONDITIONS_ANNOTATION)}.\n" \
  "Validation failed with: #{e}"
end