scaledobject

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErdaScaledObject

type ErdaScaledObject struct {
	// contains filtered or unexported fields
}

ErdaScaledObject is the object to manipulate k8s crd api of scaledobject

func New

func New(options ...Option) *ErdaScaledObject

New news a PersistentVolumeClaim

func (*ErdaScaledObject) Create

func (p *ErdaScaledObject) Create(scaledObject *kedav1alpha1.ScaledObject) error

Create creates a k8s keda crd scaledObject

func (*ErdaScaledObject) CreateVPA

func (p *ErdaScaledObject) CreateVPA(scaledObject *vpatypes.VerticalPodAutoscaler) error

CreateVPA creates a k8s vpa object

func (*ErdaScaledObject) Delete

func (p *ErdaScaledObject) Delete(namespace, name string) error

Delete deletes a k8s keda crd scaledObject

func (*ErdaScaledObject) DeleteVPA

func (p *ErdaScaledObject) DeleteVPA(namespace, name string) error

DeleteVPA deletes a k8s vpa

func (*ErdaScaledObject) Get

func (p *ErdaScaledObject) Get(namespace, name string) (*kedav1alpha1.ScaledObject, error)

Get gets a k8s keda crd scaledObject

func (*ErdaScaledObject) GetVPA

func (p *ErdaScaledObject) GetVPA(namespace, name string) (*vpatypes.VerticalPodAutoscaler, error)

GetVPA gets a k8s vpa

func (*ErdaScaledObject) Patch

func (p *ErdaScaledObject) Patch(namespace, name string, patch *kedav1alpha1.ScaledObject) error

Patch patchs the k8s keda crd scaledObject object

func (*ErdaScaledObject) PatchVPA

func (p *ErdaScaledObject) PatchVPA(namespace, name string, patch *vpatypes.VerticalPodAutoscaler) error

PatchVPA patchs the k8s vpa object

func (*ErdaScaledObject) WatchVPAsAllNamespaces

func (p *ErdaScaledObject) WatchVPAsAllNamespaces(ctx context.Context, callback func(*vpatypes.VerticalPodAutoscaler)) error

type Option

type Option func(*ErdaScaledObject)

Option configures a PersistentVolumeClaim

func WithCompleteParams

func WithCompleteParams(addr string, client *httpclient.HTTPClient) Option

WithCompleteParams provides an Option

func WithVPAClient

func WithVPAClient(client *vpa_clientset.Clientset) Option

type PatchStruct

type PatchStruct struct {
	Spec kedav1alpha1.ScaledObjectSpec `json:"spec"`
}

type PatchVPAStruct

type PatchVPAStruct struct {
	Spec vpatypes.VerticalPodAutoscalerSpec `json:"spec"`
}

Jump to

Keyboard shortcuts

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