Class: KubeDSL::DSL::Policy::V1beta1::PodDisruptionBudgetStatus

Inherits:
KubeDSL::DSLObject show all
Defined in:
lib/kube-dsl/dsl/policy/v1beta1/pod_disruption_budget_status.rb

Instance Method Summary collapse

Methods inherited from KubeDSL::DSLObject

#initialize, #to_resource

Methods included from ValueFields

extended

Methods included from Validations

extended

Constructor Details

This class inherits a constructor from KubeDSL::DSLObject

Instance Method Details

#kind_symObject



28
29
30
# File 'lib/kube-dsl/dsl/policy/v1beta1/pod_disruption_budget_status.rb', line 28

def kind_sym
  :pod_disruption_budget_status
end

#serializeObject



17
18
19
20
21
22
23
24
25
26
# File 'lib/kube-dsl/dsl/policy/v1beta1/pod_disruption_budget_status.rb', line 17

def serialize
  {}.tap do |result|
    result[:currentHealthy] = current_healthy
    result[:desiredHealthy] = desired_healthy
    result[:disruptedPods] = disrupted_pods.serialize
    result[:disruptionsAllowed] = disruptions_allowed
    result[:expectedPods] = expected_pods
    result[:observedGeneration] = observed_generation
  end
end