struct Kubernetes::CustomResourceDefinitionNames

Overview

CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition

Included Modules

Defined in:

generated/models/io_k8s_apiextensions-apiserver_pkg_apis_apiextensions_v1.cr

Constructors

Macro Summary

Instance Method Summary

Constructor Detail

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

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

def self.new(*, __pull_for_json_serializable pull : ::JSON::PullParser) #

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

Macro Detail

macro field(name, type = nil, **options, &block) #

Helper macro for defining fields with automatic camelCase conversion


Instance Method Detail

def categories : Array(String) | Nil #

categories is a list of grouped resources this custom resource belongs to (e.g. 'all'). This is published in API discovery documents, and used by clients to support invocations like kubectl get all.


def categories=(categories : Array(String) | Nil) #

categories is a list of grouped resources this custom resource belongs to (e.g. 'all'). This is published in API discovery documents, and used by clients to support invocations like kubectl get all.


def kind : String | Nil #

kind is the serialized kind of the resource. It is normally CamelCase and singular. Custom resource instances will use this value as the #kind attribute in API calls.


def kind=(kind : String | Nil) #

kind is the serialized kind of the resource. It is normally CamelCase and singular. Custom resource instances will use this value as the #kind attribute in API calls.


def list_kind : String | Nil #

listKind is the serialized kind of the list for this resource. Defaults to "#kindList".


def list_kind=(list_kind : String | Nil) #

listKind is the serialized kind of the list for this resource. Defaults to "#kindList".


def plural : String | Nil #

plural is the plural name of the resource to serve. The custom resources are served under /apis/<group>/<version>/.../<plural>. Must match the name of the CustomResourceDefinition (in the form <names.plural>.<group>). Must be all lowercase.


def plural=(plural : String | Nil) #

plural is the plural name of the resource to serve. The custom resources are served under /apis/<group>/<version>/.../<plural>. Must match the name of the CustomResourceDefinition (in the form <names.plural>.<group>). Must be all lowercase.


def short_names : Array(String) | Nil #

shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like kubectl get <shortname>. It must be all lowercase.


def short_names=(short_names : Array(String) | Nil) #

shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like kubectl get <shortname>. It must be all lowercase.


def singular : String | Nil #

singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased #kind.


def singular=(singular : String | Nil) #

singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased #kind.