Sha256: cb0a270c6d08bf1ff9f3e22a7072adc64cda7ad9a8732d15ede7e97e72df8505

Contents?: true

Size: 451 Bytes

Versions: 8

Compression:

Stored size: 451 Bytes

Contents

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

    def status
      exists? ? "Available" : "Unknown"
    end

    def deploy_succeeded?
      exists?
    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

8 entries across 8 versions & 1 rubygems

Version Path
kubernetes-deploy-0.20.5 lib/kubernetes-deploy/kubernetes_resource/pod_disruption_budget.rb
kubernetes-deploy-0.20.4 lib/kubernetes-deploy/kubernetes_resource/pod_disruption_budget.rb
kubernetes-deploy-0.20.3 lib/kubernetes-deploy/kubernetes_resource/pod_disruption_budget.rb
kubernetes-deploy-0.20.2 lib/kubernetes-deploy/kubernetes_resource/pod_disruption_budget.rb
kubernetes-deploy-0.20.1 lib/kubernetes-deploy/kubernetes_resource/pod_disruption_budget.rb
kubernetes-deploy-0.20.0 lib/kubernetes-deploy/kubernetes_resource/pod_disruption_budget.rb
kubernetes-deploy-0.19.0 lib/kubernetes-deploy/kubernetes_resource/pod_disruption_budget.rb
kubernetes-deploy-0.18.1 lib/kubernetes-deploy/kubernetes_resource/pod_disruption_budget.rb