class K8S::Api::Discovery::V1::EndpointSlice
Overview
EndpointSlice represents a subset of the endpoints that implement a service. For a given service there may be multiple EndpointSlice objects, selected by labels, which must be joined to produce the full set of endpoints.
Included Modules
- JSON::Serializable
- K8S::Kubernetes::Resource::Object
- YAML::Serializable
Defined in:
versions/v1.23/api/discovery/v1/endpoint_slice.crConstructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(pull : JSON::PullParser)
- .new(*, address_type : String, endpoints : Array? = nil, metadata : Apimachinery::Apis::Meta::V1::ObjectMeta? = nil, ports : Array? = nil)
Class Method Summary
Instance Method Summary
- #address_type : String
- #address_type=(address_type : String)
- #api_version : String
- #endpoints : Array(Api::Discovery::V1::Endpoint)?
- #endpoints=(endpoints : Array(Api::Discovery::V1::Endpoint)?)
- #kind : String
- #merge(other)
- #metadata : Apimachinery::Apis::Meta::V1::ObjectMeta?
- #metadata=(metadata : Apimachinery::Apis::Meta::V1::ObjectMeta?)
- #ports : Array(Api::Discovery::V1::EndpointPort)?
- #ports=(ports : Array(Api::Discovery::V1::EndpointPort)?)
- #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,
kind : String
kind
Constructor methods inherited from class K8S::Kubernetes::Resource
new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)new(pull : JSON::PullParser) new
Class methods inherited from class K8S::Kubernetes::Resource
from_file(file)
from_file
Constructor Detail
def self.new(*, address_type : String, endpoints : Array? = nil, metadata : Apimachinery::Apis::Meta::V1::ObjectMeta? = nil, ports : Array? = nil)
#