v1

package
v0.69.2 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v1 contains API Schema definitions for the platform v1 API group +kubebuilder:object:generate=true +groupName=platform.flanksource.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupName is the group name use in this package
	GroupName = "platform.flanksource.com"

	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1"}

	// 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

This section is empty.

Types

type ClusterResourceQuota

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

	// Spec defines the desired quota
	Spec ClusterResourceQuotaSpec `json:"spec,omitempty"`

	// Status defines the actual enforced quota and its current usage
	Status ClusterResourceQuotaStatus `json:"status,omitempty"`
}

ClusterResourceQuota is the Schema for the clusterresourcequotas API

func (*ClusterResourceQuota) DeepCopy

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

func (*ClusterResourceQuota) DeepCopyInto

func (in *ClusterResourceQuota) DeepCopyInto(out *ClusterResourceQuota)

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

func (*ClusterResourceQuota) DeepCopyObject

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

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

type ClusterResourceQuotaList

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

ClusterResourceQuotaList contains a list of ClusterResourceQuota

func (*ClusterResourceQuotaList) DeepCopy

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

func (*ClusterResourceQuotaList) DeepCopyInto

func (in *ClusterResourceQuotaList) DeepCopyInto(out *ClusterResourceQuotaList)

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

func (*ClusterResourceQuotaList) DeepCopyObject

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

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

type ClusterResourceQuotaSpec

type ClusterResourceQuotaSpec struct {
	MatchLabels              map[string]string `json:"matchLabels"`
	corev1.ResourceQuotaSpec `json:",inline"`
}

ClusterResourceQuotaSpec defines the desired state of ClusterResourceQuota

func (*ClusterResourceQuotaSpec) DeepCopy

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

func (*ClusterResourceQuotaSpec) DeepCopyInto

func (in *ClusterResourceQuotaSpec) DeepCopyInto(out *ClusterResourceQuotaSpec)

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

type ClusterResourceQuotaStatus

type ClusterResourceQuotaStatus struct {

	// Total defines the actual enforced quota and its current usage across all namespaces
	Total corev1.ResourceQuotaStatus `json:"total,omitempty"`

	// Slices the quota used per namespace
	Namespaces ResourceQuotasStatusByNamespace `json:"namespaces,omitempty"`
}

ClusterResourceQuotaStatus defines the observed state of ClusterResourceQuota

func (*ClusterResourceQuotaStatus) DeepCopy

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

func (*ClusterResourceQuotaStatus) DeepCopyInto

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

type PodMutaterConfig

type PodMutaterConfig struct {
	AnnotationsMap         map[string]bool
	Annotations            []string
	RegistryWhitelist      []string
	DefaultRegistryPrefix  string
	DefaultImagePullSecret string
	TolerationsAnnotation  string
}

func (*PodMutaterConfig) DeepCopy

func (in *PodMutaterConfig) DeepCopy() *PodMutaterConfig

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

func (*PodMutaterConfig) DeepCopyInto

func (in *PodMutaterConfig) DeepCopyInto(out *PodMutaterConfig)

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

type ResourceQuotaStatusByNamespace

type ResourceQuotaStatusByNamespace struct {
	// Namespace the project this status applies to
	Namespace string `json:"namespace"`

	// Status indicates how many resources have been consumed by this project
	Status corev1.ResourceQuotaStatus `json:"status"`
}

ResourceQuotaStatusByNamespace gives status for a particular name

func (*ResourceQuotaStatusByNamespace) DeepCopy

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

func (*ResourceQuotaStatusByNamespace) DeepCopyInto

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

type ResourceQuotasStatusByNamespace

type ResourceQuotasStatusByNamespace []ResourceQuotaStatusByNamespace

ResourceQuotasStatusByNamespace bundles multiple ResourceQuotaStatusByNamespace

func (ResourceQuotasStatusByNamespace) DeepCopy

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

func (ResourceQuotasStatusByNamespace) DeepCopyInto

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