Method: KubernetesDeploy::Pod#sync

Defined in:
lib/kubernetes-deploy/kubernetes_resource/pod.rb

#sync(_cache) ⇒ Object



30
31
32
33
34
35
36
37
38
39
40
# File 'lib/kubernetes-deploy/kubernetes_resource/pod.rb', line 30

def sync(_cache)
  super
  raise_predates_deploy_error if exists? && unmanaged? && !deploy_started?

  if exists?
    logs.sync if unmanaged?
    update_container_statuses(@instance_data["status"])
  else # reset
    @containers.each(&:reset_status)
  end
end