class K8S::Api::Discovery::V1beta1::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
- JSON::Serializable::Unmapped
- K8S::Kubernetes::Resource::Object
- YAML::Serializable
- YAML::Serializable::Unmapped
Defined in:
versions/v1.18/api/discovery/v1beta1/endpoint_slice.crConstructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(pull : JSON::PullParser)
- .new(*, address_type : String, endpoints : Array(Api::Discovery::V1beta1::Endpoint)? = nil, metadata : Apimachinery::Apis::Meta::V1::ObjectMeta? = nil, ports : Array(Api::Discovery::V1beta1::EndpointPort)? = nil)
Class Method Summary
Instance Method Summary
- #address_type : String
- #address_type=(address_type : String)
- #api_version : String
- #endpoints : Array(Api::Discovery::V1beta1::Endpoint)?
- #endpoints=(endpoints : Array(Api::Discovery::V1beta1::Endpoint)?)
- #kind : String
- #merge(other)
-
#metadata : Apimachinery::Apis::Meta::V1::ObjectMeta?
Standard object's metadata.
-
#metadata=(metadata : Apimachinery::Apis::Meta::V1::ObjectMeta?)
Standard object's metadata.
- #ports : Array(Api::Discovery::V1beta1::EndpointPort)?
- #ports=(ports : Array(Api::Discovery::V1beta1::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,
from_files(*paths)
from_files
Constructor Detail
def self.new(*, address_type : String, endpoints : Array(Api::Discovery::V1beta1::Endpoint)? = nil, metadata : Apimachinery::Apis::Meta::V1::ObjectMeta? = nil, ports : Array(Api::Discovery::V1beta1::EndpointPort)? = nil)
#