class Krane::MutatingWebhookConfiguration
Constants
- GLOBAL
- TIMEOUT
Public Class Methods
new(namespace:, context:, definition:, logger:, statsd_tags:)
click to toggle source
Calls superclass method
Krane::KubernetesResource::new
# File lib/krane/kubernetes_resource/mutating_webhook_configuration.rb, line 70 def initialize(namespace:, context:, definition:, logger:, statsd_tags:) @webhooks = (definition.dig('webhooks') || []).map { |hook| Webhook.new(hook) } super(namespace: namespace, context: context, definition: definition, logger: logger, statsd_tags: statsd_tags) end
Public Instance Methods
deploy_succeeded?()
click to toggle source
# File lib/krane/kubernetes_resource/mutating_webhook_configuration.rb, line 78 def deploy_succeeded? exists? end
webhooks()
click to toggle source
# File lib/krane/kubernetes_resource/mutating_webhook_configuration.rb, line 82 def webhooks @definition.fetch('webhooks', []).map { |webhook| Webhook.new(webhook) } end