class Pyrite::Api::Core::V1::Lifecycle

Overview

Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted.

Defined in:

versions/v1.14/api/core/v1/lifecycle.cr

Constructors

Instance Method Summary

Constructor methods inherited from class Pyrite::Kubernetes::Spec

new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
new(pull : JSON::PullParser)
new

Constructor Detail

def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted.


def self.new(pull : JSON::PullParser) #

Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted.


def self.new(*, post_start : Api::Core::V1::Handler? = nil, pre_stop : Api::Core::V1::Handler? = nil) #

Instance Method Detail

def post_start : Api::Core::V1::Handler? #

def post_start=(post_start : Api::Core::V1::Handler?) #

def pre_stop : Api::Core::V1::Handler? #

def pre_stop=(pre_stop : Api::Core::V1::Handler?) #