v1

package
v0.0.27 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Overview

+kubebuilder:object:generate=true +groupName=config.com.netflix.titus

Copyright 2020 Netflix, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeBuilder initializes a scheme builder
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme is a global function that registers this API group & version to a scheme
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: capacitygroup.GroupName, Version: "v1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type CapacityGroup

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

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

+kubebuilder:object:root=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*CapacityGroup) DeepCopy

func (in *CapacityGroup) DeepCopy() *CapacityGroup

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

func (*CapacityGroup) DeepCopyInto

func (in *CapacityGroup) DeepCopyInto(out *CapacityGroup)

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

func (*CapacityGroup) DeepCopyObject

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

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

type CapacityGroupList

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

+kubebuilder:object:root=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*CapacityGroupList) DeepCopy

func (in *CapacityGroupList) DeepCopy() *CapacityGroupList

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

func (*CapacityGroupList) DeepCopyInto

func (in *CapacityGroupList) DeepCopyInto(out *CapacityGroupList)

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

func (*CapacityGroupList) DeepCopyObject

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

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

type CapacityGroupSpec

type CapacityGroupSpec struct {
	CapacityGroupName      string `json:"capacityGroupName"`
	OriginalName           string `json:"originalName,omitempty"`
	Tier                   string `json:"tier,omitempty"`
	ResourcePoolName       string `json:"resourcePoolName"`
	SchedulerName          string `json:"schedulerName"`
	CreatedBy              string `json:"createdBy"`
	InstanceCount          uint32 `json:"instanceCount"`
	poolV1.ComputeResource `json:"resourceDimensions"`
}

func (*CapacityGroupSpec) DeepCopy

func (in *CapacityGroupSpec) DeepCopy() *CapacityGroupSpec

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

func (*CapacityGroupSpec) DeepCopyInto

func (in *CapacityGroupSpec) DeepCopyInto(out *CapacityGroupSpec)

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