v1alpha1

package
v1.19.0-kw9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const GroupName = "settings.k8s.io"

GroupName is the group name use in this package

Variables

View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type PodPreset

type PodPreset struct {

	// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
	APIVersion string `json:"apiVersion,omitempty"`

	// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
	Kind string `json:"kind,omitempty"`

	// metadata
	Metadata *apimachinery_pkg_apis_meta_v1.ObjectMeta `json:"metadata,omitempty"`

	// spec
	Spec *PodPresetSpec `json:"spec,omitempty"`
}

PodPreset PodPreset is a policy resource that defines additional runtime requirements for a Pod.

swagger:model PodPreset

func (*PodPreset) GroupVersionKind

func (v *PodPreset) GroupVersionKind() schema.GroupVersionKind

type PodPresetList

type PodPresetList struct {

	// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
	APIVersion string `json:"apiVersion,omitempty"`

	// Items is a list of schema objects.
	// Required: true
	Items []*PodPreset `json:"items"`

	// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
	Kind string `json:"kind,omitempty"`

	// Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	Metadata *apimachinery_pkg_apis_meta_v1.ListMeta `json:"metadata,omitempty"`
}

PodPresetList PodPresetList is a list of PodPreset objects.

swagger:model PodPresetList

func (*PodPresetList) GroupVersionKind

func (v *PodPresetList) GroupVersionKind() schema.GroupVersionKind

type PodPresetSpec

type PodPresetSpec struct {

	// Env defines the collection of EnvVar to inject into containers.
	Env []*api_core_v1.EnvVar `json:"env,omitempty"`

	// EnvFrom defines the collection of EnvFromSource to inject into containers.
	EnvFrom []*api_core_v1.EnvFromSource `json:"envFrom,omitempty"`

	// Selector is a label query over a set of resources, in this case pods. Required.
	Selector *apimachinery_pkg_apis_meta_v1.LabelSelector `json:"selector,omitempty"`

	// VolumeMounts defines the collection of VolumeMount to inject into containers.
	VolumeMounts []*api_core_v1.VolumeMount `json:"volumeMounts,omitempty"`

	// Volumes defines the collection of Volume to inject into the pod.
	Volumes []*api_core_v1.Volume `json:"volumes,omitempty"`
}

PodPresetSpec PodPresetSpec is a description of a pod preset.

swagger:model PodPresetSpec

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL