v1alpha1

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2022 License: Apache-2.0 Imports: 22 Imported by: 10

Documentation

Overview

+k8s:openapi-gen=true +k8s:deepcopy-gen=package +k8s:defaulter-gen=TypeMeta +groupName=core.k8s.appscode.com

Index

Constants

View Source
const (
	ResourceKindGenericResourceService = "GenericResourceService"
	ResourceGenericResourceService     = "genericresourceservice"
	ResourceGenericResourceServices    = "genericresourceservices"
)
View Source
const (
	ResourceKindResourceSummary = "ResourceSummary"
	ResourceResourceSummary     = "resourcesummary"
	ResourceResourceSummaries   = "resourcesummaries"
)
View Source
const (
	ResourceKindGenericResource = "GenericResource"
	ResourceGenericResource     = "genericresource"
	ResourceGenericResources    = "genericresources"
)
View Source
const (
	ResourceKindPodView = "PodView"
	ResourcePodView     = "podview"
	ResourcePodViews    = "podviews"
)
View Source
const GroupName = "core.k8s.appscode.com"

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

func GetGenericResourceName

func GetGenericResourceName(item client.Object) string

func ParseGenericResourceName

func ParseGenericResourceName(name string) (string, schema.GroupKind, error)

Types

type ContainerView

type ContainerView struct {
	// Name of the container specified as a DNS_LABEL.
	// Each container in a pod must have a unique name (DNS_LABEL).
	// Cannot be updated.
	Name string `json:"name" protobuf:"bytes,1,opt,name=name"`
	// Docker image name.
	// More info: https://kubernetes.io/docs/concepts/containers/images
	// This field is optional to allow higher level config management to default or override
	// container images in workload controllers like Deployments and StatefulSets.
	// +optional
	Image string `json:"image,omitempty" protobuf:"bytes,2,opt,name=image"`
	// Entrypoint array. Not executed within a shell.
	// The docker image's ENTRYPOINT is used if this is not provided.
	// Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
	// cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax
	// can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
	// regardless of whether the variable exists or not.
	// Cannot be updated.
	// More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
	// +optional
	Command []string `json:"command,omitempty" protobuf:"bytes,3,rep,name=command"`
	// Arguments to the entrypoint.
	// The docker image's CMD is used if this is not provided.
	// Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
	// cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax
	// can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
	// regardless of whether the variable exists or not.
	// Cannot be updated.
	// More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
	// +optional
	Args []string `json:"args,omitempty" protobuf:"bytes,4,rep,name=args"`
	// Container's working directory.
	// If not specified, the container runtime's default will be used, which
	// might be configured in the container image.
	// Cannot be updated.
	// +optional
	WorkingDir string `json:"workingDir,omitempty" protobuf:"bytes,5,opt,name=workingDir"`
	// List of ports to expose from the container. Exposing a port here gives
	// the system additional information about the network connections a
	// container uses, but is primarily informational. Not specifying a port here
	// DOES NOT prevent that port from being exposed. Any port which is
	// listening on the default "0.0.0.0" address inside a container will be
	// accessible from the network.
	// Cannot be updated.
	// +optional
	// +patchMergeKey=containerPort
	// +patchStrategy=merge
	// +listType=map
	// +listMapKey=containerPort
	// +listMapKey=protocol
	Ports []core.ContainerPort `json:"ports,omitempty" patchStrategy:"merge" patchMergeKey:"containerPort" protobuf:"bytes,6,rep,name=ports"`
	// List of sources to populate environment variables in the container.
	// The keys defined within a source must be a C_IDENTIFIER. All invalid keys
	// will be reported as an event when the container is starting. When a key exists in multiple
	// sources, the value associated with the last source will take precedence.
	// Values defined by an Env with a duplicate key will take precedence.
	// Cannot be updated.
	// +optional
	EnvFrom []core.EnvFromSource `json:"envFrom,omitempty" protobuf:"bytes,19,rep,name=envFrom"`
	// List of environment variables to set in the container.
	// Cannot be updated.
	// +optional
	// +patchMergeKey=name
	// +patchStrategy=merge
	Env []core.EnvVar `json:"env,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,7,rep,name=env"`
	// Compute Resources required by this container.
	// Cannot be updated.
	// More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
	// +optional
	Resources ResourceView `json:"resources,omitempty" protobuf:"bytes,8,opt,name=resources"`
	// Pod volumes to mount into the container's filesystem.
	// Cannot be updated.
	// +optional
	// +patchMergeKey=mountPath
	// +patchStrategy=merge
	VolumeMounts []core.VolumeMount `json:"volumeMounts,omitempty" patchStrategy:"merge" patchMergeKey:"mountPath" protobuf:"bytes,9,rep,name=volumeMounts"`
	// volumeDevices is the list of block devices to be used by the container.
	// +patchMergeKey=devicePath
	// +patchStrategy=merge
	// +optional
	VolumeDevices []core.VolumeDevice `json:"volumeDevices,omitempty" patchStrategy:"merge" patchMergeKey:"devicePath" protobuf:"bytes,21,rep,name=volumeDevices"`
	// Periodic probe of container liveness.
	// Container will be restarted if the probe fails.
	// Cannot be updated.
	// More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
	// +optional
	LivenessProbe *core.Probe `json:"livenessProbe,omitempty" protobuf:"bytes,10,opt,name=livenessProbe"`
	// Periodic probe of container service readiness.
	// Container will be removed from service endpoints if the probe fails.
	// Cannot be updated.
	// More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
	// +optional
	ReadinessProbe *core.Probe `json:"readinessProbe,omitempty" protobuf:"bytes,11,opt,name=readinessProbe"`
	// StartupProbe indicates that the Pod has successfully initialized.
	// If specified, no other probes are executed until this completes successfully.
	// If this probe fails, the Pod will be restarted, just as if the livenessProbe failed.
	// This can be used to provide different probe parameters at the beginning of a Pod's lifecycle,
	// when it might take a long time to load data or warm a cache, than during steady-state operation.
	// This cannot be updated.
	// More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
	// +optional
	StartupProbe *core.Probe `json:"startupProbe,omitempty" protobuf:"bytes,22,opt,name=startupProbe"`
	// Actions that the management system should take in response to container lifecycle events.
	// Cannot be updated.
	// +optional
	Lifecycle *core.Lifecycle `json:"lifecycle,omitempty" protobuf:"bytes,12,opt,name=lifecycle"`
	// Optional: Path at which the file to which the container's termination message
	// will be written is mounted into the container's filesystem.
	// Message written is intended to be brief final status, such as an assertion failure message.
	// Will be truncated by the node if greater than 4096 bytes. The total message length across
	// all containers will be limited to 12kb.
	// Defaults to /dev/termination-log.
	// Cannot be updated.
	// +optional
	TerminationMessagePath string `json:"terminationMessagePath,omitempty" protobuf:"bytes,13,opt,name=terminationMessagePath"`
	// Indicate how the termination message should be populated. File will use the contents of
	// terminationMessagePath to populate the container status message on both success and failure.
	// FallbackToLogsOnError will use the last chunk of container log output if the termination
	// message file is empty and the container exited with an error.
	// The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
	// Defaults to File.
	// Cannot be updated.
	// +optional
	TerminationMessagePolicy core.TerminationMessagePolicy `` /* 129-byte string literal not displayed */
	// Image pull policy.
	// One of Always, Never, IfNotPresent.
	// Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
	// Cannot be updated.
	// More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
	// +optional
	ImagePullPolicy core.PullPolicy `json:"imagePullPolicy,omitempty" protobuf:"bytes,14,opt,name=imagePullPolicy,casttype=PullPolicy"`
	// Security options the pod should run with.
	// More info: https://kubernetes.io/docs/concepts/policy/security-context/
	// More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
	// +optional
	SecurityContext *core.SecurityContext `json:"securityContext,omitempty" protobuf:"bytes,15,opt,name=securityContext"`

	// Whether this container should allocate a buffer for stdin in the container runtime. If this
	// is not set, reads from stdin in the container will always result in EOF.
	// Default is false.
	// +optional
	Stdin bool `json:"stdin,omitempty" protobuf:"varint,16,opt,name=stdin"`
	// Whether the container runtime should close the stdin channel after it has been opened by
	// a single attach. When stdin is true the stdin stream will remain open across multiple attach
	// sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the
	// first client attaches to stdin, and then remains open and accepts data until the client disconnects,
	// at which time stdin is closed and remains closed until the container is restarted. If this
	// flag is false, a container processes that reads from stdin will never receive an EOF.
	// Default is false
	// +optional
	StdinOnce bool `json:"stdinOnce,omitempty" protobuf:"varint,17,opt,name=stdinOnce"`
	// Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.
	// Default is false.
	// +optional
	TTY bool `json:"tty,omitempty" protobuf:"varint,18,opt,name=tty"`
}

A single application container that you want to run within a pod.

func (*ContainerView) DeepCopy

func (in *ContainerView) DeepCopy() *ContainerView

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerView.

func (*ContainerView) DeepCopyInto

func (in *ContainerView) DeepCopyInto(out *ContainerView)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ControlPlaneInfo

type ControlPlaneInfo struct {
	DNSNames       []string    `json:"dnsNames,omitempty"`
	EmailAddresses []string    `json:"emailAddresses,omitempty"`
	IPAddresses    []string    `json:"ipAddresses,omitempty"`
	URIs           []string    `json:"uris,omitempty"`
	NotBefore      metav1.Time `json:"notBefore"`
	NotAfter       metav1.Time `json:"notAfter"`
}

https://github.com/kmodules/client-go/blob/kubernetes-1.16.3/tools/analytics/analytics.go#L66

func (*ControlPlaneInfo) DeepCopy

func (in *ControlPlaneInfo) DeepCopy() *ControlPlaneInfo

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ControlPlaneInfo.

func (*ControlPlaneInfo) DeepCopyInto

func (in *ControlPlaneInfo) DeepCopyInto(out *ControlPlaneInfo)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type FacilityUsage

type FacilityUsage string
const (
	FacilityUsed    FacilityUsage = "Used"
	FacilityUnused  FacilityUsage = "Unused"
	FacilityUnknown FacilityUsage = "Unknown"
)

type GenericResource

type GenericResource struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   GenericResourceSpec   `json:"spec,omitempty"`
	Status *runtime.RawExtension `json:"status,omitempty"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func ToGenericResource

func ToGenericResource(item client.Object, apiType *kmapi.ResourceID, cmeta *kmapi.ClusterMetadata) (*GenericResource, error)

func (*GenericResource) DeepCopy

func (in *GenericResource) DeepCopy() *GenericResource

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GenericResource.

func (*GenericResource) DeepCopyInto

func (in *GenericResource) DeepCopyInto(out *GenericResource)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*GenericResource) DeepCopyObject

func (in *GenericResource) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type GenericResourceList

type GenericResourceList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []GenericResource `json:"items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*GenericResourceList) DeepCopy

func (in *GenericResourceList) DeepCopy() *GenericResourceList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GenericResourceList.

func (*GenericResourceList) DeepCopyInto

func (in *GenericResourceList) DeepCopyInto(out *GenericResourceList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*GenericResourceList) DeepCopyObject

func (in *GenericResourceList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type GenericResourceService

type GenericResourceService struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   GenericResourceServiceSpec `json:"spec,omitempty"`
	Status *runtime.RawExtension      `json:"status,omitempty"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*GenericResourceService) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GenericResourceService.

func (*GenericResourceService) DeepCopyInto

func (in *GenericResourceService) DeepCopyInto(out *GenericResourceService)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*GenericResourceService) DeepCopyObject

func (in *GenericResourceService) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type GenericResourceServiceFacilitator

type GenericResourceServiceFacilitator struct {
	Usage FacilityUsage `json:"usage"`
	// +optional
	Resource *kmapi.ResourceID `json:"resource,omitempty"`
	// +optional
	Refs []kmapi.ObjectReference `json:"refs,omitempty"`
}

func (*GenericResourceServiceFacilitator) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GenericResourceServiceFacilitator.

func (*GenericResourceServiceFacilitator) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type GenericResourceServiceFacilities

type GenericResourceServiceFacilities struct {
	Exposed    GenericResourceServiceFacilitator `json:"exposed,omitempty"`
	TLS        GenericResourceServiceFacilitator `json:"tls,omitempty"`
	Backup     GenericResourceServiceFacilitator `json:"backup,omitempty"`
	Monitoring GenericResourceServiceFacilitator `json:"monitoring,omitempty"`
}

func (*GenericResourceServiceFacilities) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GenericResourceServiceFacilities.

func (*GenericResourceServiceFacilities) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type GenericResourceServiceList

type GenericResourceServiceList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []GenericResourceService `json:"items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*GenericResourceServiceList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GenericResourceServiceList.

func (*GenericResourceServiceList) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*GenericResourceServiceList) DeepCopyObject

func (in *GenericResourceServiceList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type GenericResourceServiceSpec

type GenericResourceServiceSpec struct {
	Cluster    kmapi.ClusterMetadata            `json:"cluster,omitempty"`
	APIType    kmapi.ResourceID                 `json:"apiType"`
	Name       string                           `json:"name,omitempty"`
	Facilities GenericResourceServiceFacilities `json:"facilities,omitempty"`
	Status     GenericResourceServiceStatus     `json:"status"`
}

func (*GenericResourceServiceSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GenericResourceServiceSpec.

func (*GenericResourceServiceSpec) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type GenericResourceServiceStatus

type GenericResourceServiceStatus struct {
	// Status
	Status string `json:"status,omitempty"`
	// Message
	Message string `json:"message,omitempty"`
}

func (*GenericResourceServiceStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GenericResourceServiceStatus.

func (*GenericResourceServiceStatus) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type GenericResourceSpec

type GenericResourceSpec struct {
	// +optional
	Cluster kmapi.ClusterMetadata `json:"cluster,omitempty"`
	APIType kmapi.ResourceID      `json:"apiType"`
	Name    string                `json:"name"`
	// +optional
	UID types.UID `json:"uid,omitempty"`
	// +optional
	Version string `json:"version,omitempty"`
	// +optional
	Replicas int64 `json:"replicas,omitempty"`
	// +optional
	RoleReplicas api.ReplicaList `json:"roleReplicas,omitempty"`
	// +optional
	Mode string `json:"mode,omitempty"`
	// +optional
	TotalResource core.ResourceRequirements `json:"totalResource,omitempty"`
	// +optional
	AppResource core.ResourceRequirements `json:"appResource,omitempty"`
	// +optional
	RoleResourceLimits map[api.PodRole]core.ResourceList `json:"roleResourceLimits,omitempty"`
	// +optional
	RoleResourceRequests map[api.PodRole]core.ResourceList `json:"roleResourceRequests,omitempty"`
	Status               GenericResourceStatus             `json:"status"`
}

func (*GenericResourceSpec) DeepCopy

func (in *GenericResourceSpec) DeepCopy() *GenericResourceSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GenericResourceSpec.

func (*GenericResourceSpec) DeepCopyInto

func (in *GenericResourceSpec) DeepCopyInto(out *GenericResourceSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type GenericResourceStatus

type GenericResourceStatus struct {
	// Status
	Status string `json:"status,omitempty"`
	// Message
	Message string `json:"message,omitempty"`
}

func (*GenericResourceStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GenericResourceStatus.

func (*GenericResourceStatus) DeepCopyInto

func (in *GenericResourceStatus) DeepCopyInto(out *GenericResourceStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type KubernetesInfo

type KubernetesInfo struct {
	// https://github.com/kmodules/client-go/blob/master/tools/clusterid/lib.go
	ClusterName  string            `json:"clusterName,omitempty"`
	ClusterUID   string            `json:"clusterUID,omitempty"`
	Version      *version.Info     `json:"version,omitempty"`
	ControlPlane *ControlPlaneInfo `json:"controlPlane,omitempty"`
}

func (*KubernetesInfo) DeepCopy

func (in *KubernetesInfo) DeepCopy() *KubernetesInfo

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubernetesInfo.

func (*KubernetesInfo) DeepCopyInto

func (in *KubernetesInfo) DeepCopyInto(out *KubernetesInfo)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PodView

type PodView struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   PodViewSpec    `json:"spec,omitempty"`
	Status core.PodStatus `json:"status,omitempty"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*PodView) DeepCopy

func (in *PodView) DeepCopy() *PodView

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodView.

func (*PodView) DeepCopyInto

func (in *PodView) DeepCopyInto(out *PodView)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PodView) DeepCopyObject

func (in *PodView) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type PodViewList

type PodViewList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []PodView `json:"items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*PodViewList) DeepCopy

func (in *PodViewList) DeepCopy() *PodViewList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodViewList.

func (*PodViewList) DeepCopyInto

func (in *PodViewList) DeepCopyInto(out *PodViewList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PodViewList) DeepCopyObject

func (in *PodViewList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type PodViewSpec

type PodViewSpec struct {
	Resources  ResourceView    `json:"resources"`
	Containers []ContainerView `json:"containers"`
}

PodViewSpec defines the desired state of PodView

func (*PodViewSpec) DeepCopy

func (in *PodViewSpec) DeepCopy() *PodViewSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodViewSpec.

func (*PodViewSpec) DeepCopyInto

func (in *PodViewSpec) DeepCopyInto(out *PodViewSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ResourceSummary

type ResourceSummary struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec ResourceSummarySpec `json:"spec,omitempty"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*ResourceSummary) DeepCopy

func (in *ResourceSummary) DeepCopy() *ResourceSummary

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceSummary.

func (*ResourceSummary) DeepCopyInto

func (in *ResourceSummary) DeepCopyInto(out *ResourceSummary)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ResourceSummary) DeepCopyObject

func (in *ResourceSummary) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ResourceSummaryList

type ResourceSummaryList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ResourceSummary `json:"items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*ResourceSummaryList) DeepCopy

func (in *ResourceSummaryList) DeepCopy() *ResourceSummaryList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceSummaryList.

func (*ResourceSummaryList) DeepCopyInto

func (in *ResourceSummaryList) DeepCopyInto(out *ResourceSummaryList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ResourceSummaryList) DeepCopyObject

func (in *ResourceSummaryList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ResourceSummarySpec

type ResourceSummarySpec struct {
	Cluster       kmapi.ClusterMetadata     `json:"cluster,omitempty"`
	APIType       kmapi.ResourceID          `json:"apiType"`
	TotalResource core.ResourceRequirements `json:"totalResource,omitempty"`
	AppResource   core.ResourceRequirements `json:"appResource,omitempty"`
	Count         int                       `json:"count,omitempty"`
}

func (*ResourceSummarySpec) DeepCopy

func (in *ResourceSummarySpec) DeepCopy() *ResourceSummarySpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceSummarySpec.

func (*ResourceSummarySpec) DeepCopyInto

func (in *ResourceSummarySpec) DeepCopyInto(out *ResourceSummarySpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ResourceView

type ResourceView struct {
	// Limits describes the maximum amount of compute resources allowed.
	// More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
	// +optional
	Limits core.ResourceList `json:"limits,omitempty"`
	// Requests describes the minimum amount of compute resources required.
	// If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,
	// otherwise to an implementation-defined value.
	// More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
	// +optional
	Requests core.ResourceList `json:"requests,omitempty"`
	// Limits describes the maximum amount of compute resources allowed.
	// More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
	// +optional
	Usage core.ResourceList `json:"usage,omitempty"`
}

ResourceView describes the compute resource requirements.

func (*ResourceView) DeepCopy

func (in *ResourceView) DeepCopy() *ResourceView

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceView.

func (*ResourceView) DeepCopyInto

func (in *ResourceView) DeepCopyInto(out *ResourceView)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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