abstract class K8S::Kubernetes::Resource

Included Modules

Direct Known Subclasses

Defined in:

k8s/resource.cr
versions/v1.11/kubernetes.cr

Constant Summary

MAPPINGS = [{"admissionregistration/v1alpha1", "InitializerConfiguration", K8S::Api::Admissionregistration::V1alpha1::InitializerConfiguration}, {"admissionregistration/v1alpha1", "InitializerConfigurationList", K8S::Api::Admissionregistration::V1alpha1::InitializerConfigurationList}, {"admissionregistration/v1beta1", "MutatingWebhookConfiguration", K8S::Api::Admissionregistration::V1beta1::MutatingWebhookConfiguration}, {"admissionregistration/v1beta1", "MutatingWebhookConfigurationList", K8S::Api::Admissionregistration::V1beta1::MutatingWebhookConfigurationList}, {"admissionregistration/v1beta1", "ValidatingWebhookConfiguration", K8S::Api::Admissionregistration::V1beta1::ValidatingWebhookConfiguration}, {"admissionregistration/v1beta1", "ValidatingWebhookConfigurationList", K8S::Api::Admissionregistration::V1beta1::ValidatingWebhookConfigurationList}, {"apps/v1", "ControllerRevision", K8S::Api::Apps::V1::ControllerRevision}, {"apps/v1", "ControllerRevisionList", K8S::Api::Apps::V1::ControllerRevisionList}, {"apps/v1", "DaemonSet", K8S::Api::Apps::V1::DaemonSet}, {"apps/v1", "DaemonSetList", K8S::Api::Apps::V1::DaemonSetList}, {"apps/v1", "Deployment", K8S::Api::Apps::V1::Deployment}, {"apps/v1", "DeploymentList", K8S::Api::Apps::V1::DeploymentList}, {"apps/v1", "ReplicaSet", K8S::Api::Apps::V1::ReplicaSet}, {"apps/v1", "ReplicaSetList", K8S::Api::Apps::V1::ReplicaSetList}, {"apps/v1", "StatefulSet", K8S::Api::Apps::V1::StatefulSet}, {"apps/v1", "StatefulSetList", K8S::Api::Apps::V1::StatefulSetList}, {"apps/v1beta1", "ControllerRevision", K8S::Api::Apps::V1beta1::ControllerRevision}, {"apps/v1beta1", "ControllerRevisionList", K8S::Api::Apps::V1beta1::ControllerRevisionList}, {"apps/v1beta1", "Deployment", K8S::Api::Apps::V1beta1::Deployment}, {"apps/v1beta1", "DeploymentList", K8S::Api::Apps::V1beta1::DeploymentList}, {"apps/v1beta1", "Scale", K8S::Api::Apps::V1beta1::Scale}, {"apps/v1beta1", "StatefulSet", K8S::Api::Apps::V1beta1::StatefulSet}, {"apps/v1beta1", "StatefulSetList", K8S::Api::Apps::V1beta1::StatefulSetList}, {"apps/v1beta2", "ControllerRevision", K8S::Api::Apps::V1beta2::ControllerRevision}, {"apps/v1beta2", "ControllerRevisionList", K8S::Api::Apps::V1beta2::ControllerRevisionList}, {"apps/v1beta2", "DaemonSet", K8S::Api::Apps::V1beta2::DaemonSet}, {"apps/v1beta2", "DaemonSetList", K8S::Api::Apps::V1beta2::DaemonSetList}, {"apps/v1beta2", "Deployment", K8S::Api::Apps::V1beta2::Deployment}, {"apps/v1beta2", "DeploymentList", K8S::Api::Apps::V1beta2::DeploymentList}, {"apps/v1beta2", "ReplicaSet", K8S::Api::Apps::V1beta2::ReplicaSet}, {"apps/v1beta2", "ReplicaSetList", K8S::Api::Apps::V1beta2::ReplicaSetList}, {"apps/v1beta2", "Scale", K8S::Api::Apps::V1beta2::Scale}, {"apps/v1beta2", "StatefulSet", K8S::Api::Apps::V1beta2::StatefulSet}, {"apps/v1beta2", "StatefulSetList", K8S::Api::Apps::V1beta2::StatefulSetList}, {"authentication/v1", "TokenReview", K8S::Api::Authentication::V1::TokenReview}, {"authentication/v1beta1", "TokenReview", K8S::Api::Authentication::V1beta1::TokenReview}, {"authorization/v1", "LocalSubjectAccessReview", K8S::Api::Authorization::V1::LocalSubjectAccessReview}, {"authorization/v1", "SelfSubjectAccessReview", K8S::Api::Authorization::V1::SelfSubjectAccessReview}, {"authorization/v1", "SelfSubjectRulesReview", K8S::Api::Authorization::V1::SelfSubjectRulesReview}, {"authorization/v1", "SubjectAccessReview", K8S::Api::Authorization::V1::SubjectAccessReview}, {"authorization/v1beta1", "LocalSubjectAccessReview", K8S::Api::Authorization::V1beta1::LocalSubjectAccessReview}, {"authorization/v1beta1", "SelfSubjectAccessReview", K8S::Api::Authorization::V1beta1::SelfSubjectAccessReview}, {"authorization/v1beta1", "SelfSubjectRulesReview", K8S::Api::Authorization::V1beta1::SelfSubjectRulesReview}, {"authorization/v1beta1", "SubjectAccessReview", K8S::Api::Authorization::V1beta1::SubjectAccessReview}, {"autoscaling/v1", "HorizontalPodAutoscaler", K8S::Api::Autoscaling::V1::HorizontalPodAutoscaler}, {"autoscaling/v1", "HorizontalPodAutoscalerList", K8S::Api::Autoscaling::V1::HorizontalPodAutoscalerList}, {"autoscaling/v1", "Scale", K8S::Api::Autoscaling::V1::Scale}, {"autoscaling/v2beta1", "HorizontalPodAutoscaler", K8S::Api::Autoscaling::V2beta1::HorizontalPodAutoscaler}, {"autoscaling/v2beta1", "HorizontalPodAutoscalerList", K8S::Api::Autoscaling::V2beta1::HorizontalPodAutoscalerList}, {"batch/v1", "Job", K8S::Api::Batch::V1::Job}, {"batch/v1", "JobList", K8S::Api::Batch::V1::JobList}, {"batch/v1beta1", "CronJob", K8S::Api::Batch::V1beta1::CronJob}, {"batch/v1beta1", "CronJobList", K8S::Api::Batch::V1beta1::CronJobList}, {"batch/v2alpha1", "CronJob", K8S::Api::Batch::V2alpha1::CronJob}, {"batch/v2alpha1", "CronJobList", K8S::Api::Batch::V2alpha1::CronJobList}, {"certificates/v1beta1", "CertificateSigningRequest", K8S::Api::Certificates::V1beta1::CertificateSigningRequest}, {"certificates/v1beta1", "CertificateSigningRequestList", K8S::Api::Certificates::V1beta1::CertificateSigningRequestList}, {"v1", "Binding", K8S::Api::Core::V1::Binding}, {"v1", "ComponentStatus", K8S::Api::Core::V1::ComponentStatus}, {"v1", "ComponentStatusList", K8S::Api::Core::V1::ComponentStatusList}, {"v1", "ConfigMap", K8S::Api::Core::V1::ConfigMap}, {"v1", "ConfigMapList", K8S::Api::Core::V1::ConfigMapList}, {"v1", "Endpoints", K8S::Api::Core::V1::Endpoints}, {"v1", "EndpointsList", K8S::Api::Core::V1::EndpointsList}, {"v1", "Event", K8S::Api::Core::V1::Event}, {"v1", "EventList", K8S::Api::Core::V1::EventList}, {"v1", "LimitRange", K8S::Api::Core::V1::LimitRange}, {"v1", "LimitRangeList", K8S::Api::Core::V1::LimitRangeList}, {"v1", "Namespace", K8S::Api::Core::V1::Namespace}, {"v1", "NamespaceList", K8S::Api::Core::V1::NamespaceList}, {"v1", "Node", K8S::Api::Core::V1::Node}, {"v1", "NodeList", K8S::Api::Core::V1::NodeList}, {"v1", "PersistentVolume", K8S::Api::Core::V1::PersistentVolume}, {"v1", "PersistentVolumeClaim", K8S::Api::Core::V1::PersistentVolumeClaim}, {"v1", "PersistentVolumeClaimList", K8S::Api::Core::V1::PersistentVolumeClaimList}, {"v1", "PersistentVolumeList", K8S::Api::Core::V1::PersistentVolumeList}, {"v1", "Pod", K8S::Api::Core::V1::Pod}, {"v1", "PodList", K8S::Api::Core::V1::PodList}, {"v1", "PodTemplate", K8S::Api::Core::V1::PodTemplate}, {"v1", "PodTemplateList", K8S::Api::Core::V1::PodTemplateList}, {"v1", "ReplicationController", K8S::Api::Core::V1::ReplicationController}, {"v1", "ReplicationControllerList", K8S::Api::Core::V1::ReplicationControllerList}, {"v1", "ResourceQuota", K8S::Api::Core::V1::ResourceQuota}, {"v1", "ResourceQuotaList", K8S::Api::Core::V1::ResourceQuotaList}, {"v1", "Secret", K8S::Api::Core::V1::Secret}, {"v1", "SecretList", K8S::Api::Core::V1::SecretList}, {"v1", "Service", K8S::Api::Core::V1::Service}, {"v1", "ServiceAccount", K8S::Api::Core::V1::ServiceAccount}, {"v1", "ServiceAccountList", K8S::Api::Core::V1::ServiceAccountList}, {"v1", "ServiceList", K8S::Api::Core::V1::ServiceList}, {"events/v1beta1", "Event", K8S::Api::Events::V1beta1::Event}, {"events/v1beta1", "EventList", K8S::Api::Events::V1beta1::EventList}, {"extensions/v1beta1", "DaemonSet", K8S::Api::Extensions::V1beta1::DaemonSet}, {"extensions/v1beta1", "DaemonSetList", K8S::Api::Extensions::V1beta1::DaemonSetList}, {"extensions/v1beta1", "Deployment", K8S::Api::Extensions::V1beta1::Deployment}, {"extensions/v1beta1", "DeploymentList", K8S::Api::Extensions::V1beta1::DeploymentList}, {"extensions/v1beta1", "Ingress", K8S::Api::Extensions::V1beta1::Ingress}, {"extensions/v1beta1", "IngressList", K8S::Api::Extensions::V1beta1::IngressList}, {"extensions/v1beta1", "NetworkPolicy", K8S::Api::Extensions::V1beta1::NetworkPolicy}, {"extensions/v1beta1", "NetworkPolicyList", K8S::Api::Extensions::V1beta1::NetworkPolicyList}, {"extensions/v1beta1", "PodSecurityPolicy", K8S::Api::Extensions::V1beta1::PodSecurityPolicy}, {"extensions/v1beta1", "PodSecurityPolicyList", K8S::Api::Extensions::V1beta1::PodSecurityPolicyList}, {"extensions/v1beta1", "ReplicaSet", K8S::Api::Extensions::V1beta1::ReplicaSet}, {"extensions/v1beta1", "ReplicaSetList", K8S::Api::Extensions::V1beta1::ReplicaSetList}, {"extensions/v1beta1", "Scale", K8S::Api::Extensions::V1beta1::Scale}, {"networking/v1", "NetworkPolicy", K8S::Api::Networking::V1::NetworkPolicy}, {"networking/v1", "NetworkPolicyList", K8S::Api::Networking::V1::NetworkPolicyList}, {"policy/v1beta1", "Eviction", K8S::Api::Policy::V1beta1::Eviction}, {"policy/v1beta1", "PodDisruptionBudget", K8S::Api::Policy::V1beta1::PodDisruptionBudget}, {"policy/v1beta1", "PodDisruptionBudgetList", K8S::Api::Policy::V1beta1::PodDisruptionBudgetList}, {"policy/v1beta1", "PodSecurityPolicy", K8S::Api::Policy::V1beta1::PodSecurityPolicy}, {"policy/v1beta1", "PodSecurityPolicyList", K8S::Api::Policy::V1beta1::PodSecurityPolicyList}, {"rbac/v1", "ClusterRole", K8S::Api::Rbac::V1::ClusterRole}, {"rbac/v1", "ClusterRoleBinding", K8S::Api::Rbac::V1::ClusterRoleBinding}, {"rbac/v1", "ClusterRoleBindingList", K8S::Api::Rbac::V1::ClusterRoleBindingList}, {"rbac/v1", "ClusterRoleList", K8S::Api::Rbac::V1::ClusterRoleList}, {"rbac/v1", "Role", K8S::Api::Rbac::V1::Role}, {"rbac/v1", "RoleBinding", K8S::Api::Rbac::V1::RoleBinding}, {"rbac/v1", "RoleBindingList", K8S::Api::Rbac::V1::RoleBindingList}, {"rbac/v1", "RoleList", K8S::Api::Rbac::V1::RoleList}, {"rbac/v1alpha1", "ClusterRole", K8S::Api::Rbac::V1alpha1::ClusterRole}, {"rbac/v1alpha1", "ClusterRoleBinding", K8S::Api::Rbac::V1alpha1::ClusterRoleBinding}, {"rbac/v1alpha1", "ClusterRoleBindingList", K8S::Api::Rbac::V1alpha1::ClusterRoleBindingList}, {"rbac/v1alpha1", "ClusterRoleList", K8S::Api::Rbac::V1alpha1::ClusterRoleList}, {"rbac/v1alpha1", "Role", K8S::Api::Rbac::V1alpha1::Role}, {"rbac/v1alpha1", "RoleBinding", K8S::Api::Rbac::V1alpha1::RoleBinding}, {"rbac/v1alpha1", "RoleBindingList", K8S::Api::Rbac::V1alpha1::RoleBindingList}, {"rbac/v1alpha1", "RoleList", K8S::Api::Rbac::V1alpha1::RoleList}, {"rbac/v1beta1", "ClusterRole", K8S::Api::Rbac::V1beta1::ClusterRole}, {"rbac/v1beta1", "ClusterRoleBinding", K8S::Api::Rbac::V1beta1::ClusterRoleBinding}, {"rbac/v1beta1", "ClusterRoleBindingList", K8S::Api::Rbac::V1beta1::ClusterRoleBindingList}, {"rbac/v1beta1", "ClusterRoleList", K8S::Api::Rbac::V1beta1::ClusterRoleList}, {"rbac/v1beta1", "Role", K8S::Api::Rbac::V1beta1::Role}, {"rbac/v1beta1", "RoleBinding", K8S::Api::Rbac::V1beta1::RoleBinding}, {"rbac/v1beta1", "RoleBindingList", K8S::Api::Rbac::V1beta1::RoleBindingList}, {"rbac/v1beta1", "RoleList", K8S::Api::Rbac::V1beta1::RoleList}, {"scheduling/v1alpha1", "PriorityClass", K8S::Api::Scheduling::V1alpha1::PriorityClass}, {"scheduling/v1alpha1", "PriorityClassList", K8S::Api::Scheduling::V1alpha1::PriorityClassList}, {"scheduling/v1beta1", "PriorityClass", K8S::Api::Scheduling::V1beta1::PriorityClass}, {"scheduling/v1beta1", "PriorityClassList", K8S::Api::Scheduling::V1beta1::PriorityClassList}, {"settings/v1alpha1", "PodPreset", K8S::Api::Settings::V1alpha1::PodPreset}, {"settings/v1alpha1", "PodPresetList", K8S::Api::Settings::V1alpha1::PodPresetList}, {"storage/v1", "StorageClass", K8S::Api::Storage::V1::StorageClass}, {"storage/v1", "StorageClassList", K8S::Api::Storage::V1::StorageClassList}, {"storage/v1alpha1", "VolumeAttachment", K8S::Api::Storage::V1alpha1::VolumeAttachment}, {"storage/v1alpha1", "VolumeAttachmentList", K8S::Api::Storage::V1alpha1::VolumeAttachmentList}, {"storage/v1beta1", "StorageClass", K8S::Api::Storage::V1beta1::StorageClass}, {"storage/v1beta1", "StorageClassList", K8S::Api::Storage::V1beta1::StorageClassList}, {"storage/v1beta1", "VolumeAttachment", K8S::Api::Storage::V1beta1::VolumeAttachment}, {"storage/v1beta1", "VolumeAttachmentList", K8S::Api::Storage::V1beta1::VolumeAttachmentList}, {"apiextensions/v1beta1", "CustomResourceDefinition", K8S::ApiextensionsApiserver::Apis::Apiextensions::V1beta1::CustomResourceDefinition}, {"apiextensions/v1beta1", "CustomResourceDefinitionList", K8S::ApiextensionsApiserver::Apis::Apiextensions::V1beta1::CustomResourceDefinitionList}, {"apiregistration/v1", "APIService", K8S::KubeAggregator::Apis::Apiregistration::V1::APIService}, {"apiregistration/v1", "APIServiceList", K8S::KubeAggregator::Apis::Apiregistration::V1::APIServiceList}, {"apiregistration/v1beta1", "APIService", K8S::KubeAggregator::Apis::Apiregistration::V1beta1::APIService}, {"apiregistration/v1beta1", "APIServiceList", K8S::KubeAggregator::Apis::Apiregistration::V1beta1::APIServiceList}]

Constructors

Instance Method Summary

Constructor Detail

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

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

Instance Method Detail

abstract def api_version : String #

[View source]
def from_file(file) #

[View source]
abstract def kind : String #

[View source]