Class: Dapp::Kube::Kubernetes::Client::Resource::Deployment

Inherits:
Base
  • Object
show all
Defined in:
lib/dapp/kube/kubernetes/client/resource/deployment.rb

Instance Attribute Summary

Attributes inherited from Base

#spec

Instance Method Summary collapse

Methods inherited from Base

#annotations, #initialize, #metadata, #name, #status, #uid

Constructor Details

This class inherits a constructor from Dapp::Kube::Kubernetes::Client::Resource::Base

Instance Method Details

#replicasObject



5
6
7
# File 'lib/dapp/kube/kubernetes/client/resource/deployment.rb', line 5

def replicas
  spec.fetch('spec', {}).fetch('replicas', nil)
end