Show / Hide Table of Contents

Class Lifecycle

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.

Inheritance
System.Object
Lifecycle
Implements
IDirectResponseSchema
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.CloudRun.v1alpha1.Data
Assembly: Google.Apis.CloudRun.v1alpha1.dll
Syntax
public class Lifecycle : IDirectResponseSchema

Properties

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
System.String

PostStart

PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks /#container-hooks +optional

Declaration
[JsonProperty("postStart")]
public virtual Handler PostStart { get; set; }
Property Value
Type Description
Handler

PreStop

PreStop is called immediately before a container is terminated. The container is terminated after the handler completes. The reason for termination is passed to the handler. Regardless of the outcome of the handler, the container is eventually terminated. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container- hooks +optional

Declaration
[JsonProperty("preStop")]
public virtual Handler PreStop { get; set; }
Property Value
Type Description
Handler

Implements

IDirectResponseSchema
Back to top