class K8S::Api::Apps::V1::ControllerRevision
Overview
ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers.
Included Modules
- JSON::Serializable
- K8S::Kubernetes::Resource::Object
- YAML::Serializable
Defined in:
versions/v1.19/api/apps/v1/controller_revision.crConstructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(pull : JSON::PullParser)
- .new(*, revision : Int32, data : Apimachinery::Runtime::RawExtension? = nil, metadata : Apimachinery::Apis::Meta::V1::ObjectMeta? = nil)
Class Method Summary
Instance Method Summary
- #api_version : String
- #data : Apimachinery::Runtime::RawExtension?
- #data=(data : Apimachinery::Runtime::RawExtension?)
- #kind : String
- #merge(other)
- #metadata : Apimachinery::Apis::Meta::V1::ObjectMeta?
- #metadata=(metadata : Apimachinery::Apis::Meta::V1::ObjectMeta?)
- #revision : Int32
- #revision=(revision : Int32)
- #to_h
Instance methods inherited from module K8S::Kubernetes::Resource::Object
api_version : String
api_version,
kind : String
kind,
metadata : Apimachinery::Apis::Meta::V1::ObjectMeta?
metadata,
metadata! : Apimachinery::Apis::Meta::V1::ObjectMeta
metadata!
Instance methods inherited from class K8S::Kubernetes::Resource
api_version : String
api_version,
from_file(file)
from_file,
kind : String
kind
Constructor methods inherited from class K8S::Kubernetes::Resource
new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)new(pull : JSON::PullParser) new
Constructor Detail
def self.new(*, revision : Int32, data : Apimachinery::Runtime::RawExtension? = nil, metadata : Apimachinery::Apis::Meta::V1::ObjectMeta? = nil)
#