Sha256: 6959a361ca3872d22626e421ee16ea923098a4ff8cc5139e1b851dfa8e3250a5

Contents?: true

Size: 498 Bytes

Versions: 13

Compression:

Stored size: 498 Bytes

Contents

# frozen_string_literal: true
module KubernetesDeploy
  class PodDisruptionBudget < KubernetesResource
    TIMEOUT = 10.seconds

    def status
      exists? ? "Available" : "Not Found"
    end

    def deploy_succeeded?
      exists? && observed_generation == current_generation
    end

    def deploy_method
      # Required until https://github.com/kubernetes/kubernetes/issues/45398 changes
      :replace_force
    end

    def timeout_message
      UNUSUAL_FAILURE_MESSAGE
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
kubernetes-deploy-0.30.0 lib/kubernetes-deploy/kubernetes_resource/pod_disruption_budget.rb
kubernetes-deploy-0.29.0 lib/kubernetes-deploy/kubernetes_resource/pod_disruption_budget.rb
kubernetes-deploy-0.28.0 lib/kubernetes-deploy/kubernetes_resource/pod_disruption_budget.rb
kubernetes-deploy-0.27.0 lib/kubernetes-deploy/kubernetes_resource/pod_disruption_budget.rb
kubernetes-deploy-0.26.7 lib/kubernetes-deploy/kubernetes_resource/pod_disruption_budget.rb
kubernetes-deploy-0.26.6 lib/kubernetes-deploy/kubernetes_resource/pod_disruption_budget.rb
kubernetes-deploy-0.26.5 lib/kubernetes-deploy/kubernetes_resource/pod_disruption_budget.rb
kubernetes-deploy-0.26.4 lib/kubernetes-deploy/kubernetes_resource/pod_disruption_budget.rb
kubernetes-deploy-0.26.3 lib/kubernetes-deploy/kubernetes_resource/pod_disruption_budget.rb
kubernetes-deploy-0.26.2 lib/kubernetes-deploy/kubernetes_resource/pod_disruption_budget.rb
kubernetes-deploy-0.26.1 lib/kubernetes-deploy/kubernetes_resource/pod_disruption_budget.rb
kubernetes-deploy-0.26.0 lib/kubernetes-deploy/kubernetes_resource/pod_disruption_budget.rb
kubernetes-deploy-0.25.0 lib/kubernetes-deploy/kubernetes_resource/pod_disruption_budget.rb