Documentation ¶
Overview ¶
+groupName=workload.newrelic.kubeform.com
Index ¶
- Variables
- func GetDecoder() map[string]jsoniter.ValDecoder
- func GetEncoder() map[string]jsoniter.ValEncoder
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type Workload
- func (in *Workload) DeepCopy() *Workload
- func (in *Workload) DeepCopyInto(out *Workload)
- func (in *Workload) DeepCopyObject() runtime.Object
- func (r *Workload) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *Workload) ValidateCreate() error
- func (r *Workload) ValidateDelete() error
- func (r *Workload) ValidateUpdate(old runtime.Object) error
- type WorkloadList
- type WorkloadSpec
- type WorkloadSpecEntitySearchQuery
- type WorkloadSpecResource
- type WorkloadStatus
Constants ¶
This section is empty.
Variables ¶
var ( // TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api. // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder runtime.SchemeBuilder AddToScheme = localSchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: workload.GroupName, Version: "v1alpha1"}
Functions ¶
func GetDecoder ¶
func GetDecoder() map[string]jsoniter.ValDecoder
func GetEncoder ¶
func GetEncoder() map[string]jsoniter.ValEncoder
func Kind ¶
Kind takes an unqualified kind and returns 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 Workload ¶
type Workload struct { metav1.TypeMeta `json:",inline,omitempty"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec WorkloadSpec `json:"spec,omitempty"` Status WorkloadStatus `json:"status,omitempty"` }
func (*Workload) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Workload.
func (*Workload) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Workload) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Workload) SetupWebhookWithManager ¶
func (*Workload) ValidateCreate ¶
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*Workload) ValidateDelete ¶
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
type WorkloadList ¶
type WorkloadList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` // Items is a list of Workload CRD objects Items []Workload `json:"items,omitempty"` }
WorkloadList is a list of Workloads
func (*WorkloadList) DeepCopy ¶
func (in *WorkloadList) DeepCopy() *WorkloadList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadList.
func (*WorkloadList) DeepCopyInto ¶
func (in *WorkloadList) DeepCopyInto(out *WorkloadList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*WorkloadList) DeepCopyObject ¶
func (in *WorkloadList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type WorkloadSpec ¶
type WorkloadSpec struct { State *WorkloadSpecResource `json:"state,omitempty" tf:"-"` Resource WorkloadSpecResource `json:"resource" tf:"resource"` UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"` TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"` ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"` BackendRef *core.LocalObjectReference `json:"backendRef,omitempty" tf:"-"` }
func (*WorkloadSpec) DeepCopy ¶
func (in *WorkloadSpec) DeepCopy() *WorkloadSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadSpec.
func (*WorkloadSpec) DeepCopyInto ¶
func (in *WorkloadSpec) DeepCopyInto(out *WorkloadSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WorkloadSpecEntitySearchQuery ¶
type WorkloadSpecEntitySearchQuery struct { // The query. Query *string `json:"query" tf:"query"` }
func (*WorkloadSpecEntitySearchQuery) DeepCopy ¶
func (in *WorkloadSpecEntitySearchQuery) DeepCopy() *WorkloadSpecEntitySearchQuery
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadSpecEntitySearchQuery.
func (*WorkloadSpecEntitySearchQuery) DeepCopyInto ¶
func (in *WorkloadSpecEntitySearchQuery) DeepCopyInto(out *WorkloadSpecEntitySearchQuery)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WorkloadSpecResource ¶
type WorkloadSpecResource struct { ID string `json:"id,omitempty" tf:"id,omitempty"` // The New Relic account ID where you want to create the workload. // +optional AccountID *int64 `json:"accountID,omitempty" tf:"account_id"` // The composite query used to compose a dynamic workload. // +optional CompositeEntitySearchQuery *string `json:"compositeEntitySearchQuery,omitempty" tf:"composite_entity_search_query"` // A list of entity GUIDs manually assigned to this workload. // +optional EntityGuids []string `json:"entityGuids,omitempty" tf:"entity_guids"` // A list of search queries that define a dynamic workload. // +optional EntitySearchQuery []WorkloadSpecEntitySearchQuery `json:"entitySearchQuery,omitempty" tf:"entity_search_query"` // The unique entity identifier of the workload in New Relic. // +optional Guid *string `json:"guid,omitempty" tf:"guid"` // The workload's name. Name *string `json:"name" tf:"name"` // The URL of the workload. // +optional Permalink *string `json:"permalink,omitempty" tf:"permalink"` // A list of account IDs that will be used to get entities from. // +optional ScopeAccountIDS []int64 `json:"scopeAccountIDS,omitempty" tf:"scope_account_ids"` // The unique entity identifier of the workload. // +optional WorkloadID *int64 `json:"workloadID,omitempty" tf:"workload_id"` }
func (*WorkloadSpecResource) DeepCopy ¶
func (in *WorkloadSpecResource) DeepCopy() *WorkloadSpecResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadSpecResource.
func (*WorkloadSpecResource) DeepCopyInto ¶
func (in *WorkloadSpecResource) DeepCopyInto(out *WorkloadSpecResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WorkloadStatus ¶
type WorkloadStatus struct { // Resource generation, which is updated on mutation by the API Server. // +optional ObservedGeneration int64 `json:"observedGeneration,omitempty"` // +optional Phase status.Status `json:"phase,omitempty"` // +optional Conditions []kmapi.Condition `json:"conditions,omitempty"` }
func (*WorkloadStatus) DeepCopy ¶
func (in *WorkloadStatus) DeepCopy() *WorkloadStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadStatus.
func (*WorkloadStatus) DeepCopyInto ¶
func (in *WorkloadStatus) DeepCopyInto(out *WorkloadStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.