v1alpha1

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2020 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v1alpha1 implements a Kubernetes CRD, and controller for LogicMonitor collectors. +k8s:deepcopy-gen=package +groupName=collectors.logicmonitor.com

Index

Constants

View Source
const GroupName = "logicmonitor.com"

GroupName is the group name used in this package.

Variables

View Source
var (
	// SchemeBuilder is a SchemeBuilder.
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme is the SchemeBuilder AddToScheme function.
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}

SchemeGroupVersion is the group version used to register these objects.

View Source
var SchemeGroupVersionInternal = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group-qualified GroupResource.

Types

type CollectorSet

type CollectorSet struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`
	Spec              CollectorSetSpec   `json:"spec"`
	Status            CollectorSetStatus `json:"status,omitempty"`
}

CollectorSet represents the collectorset in Kubernetes. +genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*CollectorSet) DeepCopy

func (in *CollectorSet) DeepCopy() *CollectorSet

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

func (*CollectorSet) DeepCopyInto

func (in *CollectorSet) DeepCopyInto(out *CollectorSet)

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

func (*CollectorSet) DeepCopyObject

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

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

type CollectorSetList

type CollectorSetList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`
	Items           []CollectorSet `json:"items"`
}

CollectorSetList represents a list of collectorsets. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*CollectorSetList) DeepCopy

func (in *CollectorSetList) DeepCopy() *CollectorSetList

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

func (*CollectorSetList) DeepCopyInto

func (in *CollectorSetList) DeepCopyInto(out *CollectorSetList)

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

func (*CollectorSetList) DeepCopyObject

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

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

type CollectorSetPolicy

type CollectorSetPolicy struct {
	Orchestrator        string            `json:"orchestrator,omitempty"`
	DistibutionStrategy *distributor.Type `json:"distributionStrategy"`
}

CollectorSetPolicy is the CollectorSet controller's status.

func (*CollectorSetPolicy) DeepCopy

func (in *CollectorSetPolicy) DeepCopy() *CollectorSetPolicy

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

func (*CollectorSetPolicy) DeepCopyInto

func (in *CollectorSetPolicy) DeepCopyInto(out *CollectorSetPolicy)

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

type CollectorSetSpec

type CollectorSetSpec struct {
	ImageRepository   string              `json:"imageRepository"`
	ImageTag          string              `json:"imageTag"`
	ImagePullPolicy   v1.PullPolicy       `json:"imagePullPolicy"`
	Replicas          *int32              `json:"replicas"`
	Size              string              `json:"size,omitempty"`
	ClusterName       string              `json:"clusterName"`
	GroupID           int32               `json:"groupID,omitempty"`           //default value is 0, it means no group is offered
	EscalationChainID int32               `json:"escalationChainID,omitempty"` //default value is 0, it means disable notification
	CollectorVersion  int32               `json:"collectorVersion,omitempty"`  //default value is 0, it means the latest GD version
	UseEA             bool                `json:"useEA,omitempty"`             //default value is false, it means the latest GD version
	Policy            *CollectorSetPolicy `json:"policy"`
	ProxyURL          string              `json:"proxyURL,omitempty"`
	SecretName        string              `json:"secretName,omitempty"`
}

CollectorSetSpec represents the collectorset controller's spec.

func (*CollectorSetSpec) DeepCopy

func (in *CollectorSetSpec) DeepCopy() *CollectorSetSpec

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

func (*CollectorSetSpec) DeepCopyInto

func (in *CollectorSetSpec) DeepCopyInto(out *CollectorSetSpec)

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

type CollectorSetState

type CollectorSetState string

CollectorSetState is the CollectorSet controller's state string.

const (
	// CollectorSetStateCreated is a status string.
	CollectorSetStateCreated CollectorSetState = "Created"
	// CollectorSetStateRegistered is a status string.
	CollectorSetStateRegistered CollectorSetState = "Registered"
	// CollectorSetResourcePlural is the plural for the CRD.
	CollectorSetResourcePlural = "collectorsets"
)

type CollectorSetStatus

type CollectorSetStatus struct {
	State CollectorSetState `json:"state,omitempty"`
	IDs   []int32           `json:"ids,omitempty"`
}

CollectorSetStatus is the CollectorSet controller's status.

func (*CollectorSetStatus) DeepCopy

func (in *CollectorSetStatus) DeepCopy() *CollectorSetStatus

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

func (*CollectorSetStatus) DeepCopyInto

func (in *CollectorSetStatus) DeepCopyInto(out *CollectorSetStatus)

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