Documentation
¶
Overview ¶
Package v1alpha2 contains API Schema definitions for the v1alpha2 API group +kubebuilder:object:generate=true +groupName=newrelic.com
Index ¶
- Variables
- func SetupWebhookWithManager(mgr ctrl.Manager, operatorNamespace string) error
- type Agent
- type Exporter
- type Instrumentation
- func (dst *Instrumentation) ConvertFrom(srcRaw conversion.Hub) error
- func (src *Instrumentation) ConvertTo(dstRaw conversion.Hub) error
- func (in *Instrumentation) DeepCopy() *Instrumentation
- func (in *Instrumentation) DeepCopyInto(out *Instrumentation)
- func (in *Instrumentation) DeepCopyObject() runtime.Object
- type InstrumentationDefaulter
- type InstrumentationList
- type InstrumentationSpec
- type InstrumentationStatus
- type InstrumentationValidator
- func (in *InstrumentationValidator) DeepCopy() *InstrumentationValidator
- func (in *InstrumentationValidator) DeepCopyInto(out *InstrumentationValidator)
- func (r *InstrumentationValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (r *InstrumentationValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (r *InstrumentationValidator) ValidateUpdate(ctx context.Context, oldObj runtime.Object, newObj runtime.Object) (admission.Warnings, error)
- type Resource
- type Sampler
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "newrelic.com", Version: "v1alpha2"} // 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 ¶
Types ¶
type Agent ¶
type Agent struct {
// Language is the language that will be instrumented.
Language string `json:"language,omitempty"`
// Image is a container image with Go SDK and auto-instrumentation.
Image string `json:"image,omitempty"`
// VolumeSizeLimit defines size limit for volume used for auto-instrumentation.
// The default size is 200Mi.
// +optional
VolumeSizeLimit *resource.Quantity `json:"volumeLimitSize,omitempty"`
// Env defines Go specific env vars. There are four layers for env vars' definitions and
// the precedence order is: `original container env vars` > `language specific env vars` > `common env vars` > `instrument spec configs' vars`.
// If the former var had been defined, then the other vars would be ignored.
// +optional
Env []corev1.EnvVar `json:"env,omitempty"`
// Resources describes the compute resource requirements.
// +optional
Resources corev1.ResourceRequirements `json:"resourceRequirements,omitempty"`
}
Agent is the configuration for the agent
func (*Agent) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Agent.
func (*Agent) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Exporter ¶
type Exporter struct {
// Endpoint is address of the collector with OTLP endpoint.
// +optional
Endpoint string `json:"endpoint,omitempty"`
}
Exporter defines OTLP exporter configuration.
func (*Exporter) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Exporter.
func (*Exporter) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Instrumentation ¶
type Instrumentation struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec InstrumentationSpec `json:"spec,omitempty"`
Status InstrumentationStatus `json:"status,omitempty"`
}
Instrumentation is the Schema for the instrumentations API
func (*Instrumentation) ConvertFrom ¶
func (dst *Instrumentation) ConvertFrom(srcRaw conversion.Hub) error
ConvertFrom converts from the Hub version to this version.
func (*Instrumentation) ConvertTo ¶
func (src *Instrumentation) ConvertTo(dstRaw conversion.Hub) error
ConvertTo converts this Instrumentation to the Hub version.
func (*Instrumentation) DeepCopy ¶
func (in *Instrumentation) DeepCopy() *Instrumentation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Instrumentation.
func (*Instrumentation) DeepCopyInto ¶
func (in *Instrumentation) DeepCopyInto(out *Instrumentation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Instrumentation) DeepCopyObject ¶
func (in *Instrumentation) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type InstrumentationDefaulter ¶
type InstrumentationDefaulter struct {
}
InstrumentationDefaulter is used to set defaults for instrumentation
func (*InstrumentationDefaulter) DeepCopy ¶
func (in *InstrumentationDefaulter) DeepCopy() *InstrumentationDefaulter
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstrumentationDefaulter.
func (*InstrumentationDefaulter) DeepCopyInto ¶
func (in *InstrumentationDefaulter) DeepCopyInto(out *InstrumentationDefaulter)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InstrumentationList ¶
type InstrumentationList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Instrumentation `json:"items"`
}
InstrumentationList contains a list of Instrumentation
func (*InstrumentationList) DeepCopy ¶
func (in *InstrumentationList) DeepCopy() *InstrumentationList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstrumentationList.
func (*InstrumentationList) DeepCopyInto ¶
func (in *InstrumentationList) DeepCopyInto(out *InstrumentationList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*InstrumentationList) DeepCopyObject ¶
func (in *InstrumentationList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type InstrumentationSpec ¶
type InstrumentationSpec struct {
// Exporter defines exporter configuration.
// +optional
Exporter `json:"exporter,omitempty"`
// Resource defines the configuration for the resource attributes, as defined by the OpenTelemetry specification.
// +optional
Resource Resource `json:"resource,omitempty"`
// Propagators defines inter-process context propagation configuration.
// Values in this list will be set in the OTEL_PROPAGATORS env var.
// Enum=tracecontext;none
// +optional
Propagators []common.Propagator `json:"propagators,omitempty"`
// Sampler defines sampling configuration.
// +optional
Sampler `json:"sampler,omitempty"`
// PodLabelSelector defines to which pods the config should be applied.
// +optional
PodLabelSelector metav1.LabelSelector `json:"podLabelSelector"`
// PodLabelSelector defines to which pods the config should be applied.
// +optional
NamespaceLabelSelector metav1.LabelSelector `json:"namespaceLabelSelector"`
// LicenseKeySecret defines where to take the licenseKeySecret.
// it should be present in the operator namespace.
// +optional
LicenseKeySecret string `json:"licenseKeySecret,omitempty"`
// Agent defines configuration for agent instrumentation.
Agent Agent `json:"agent,omitempty"`
}
InstrumentationSpec defines the desired state of Instrumentation
func (*InstrumentationSpec) DeepCopy ¶
func (in *InstrumentationSpec) DeepCopy() *InstrumentationSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstrumentationSpec.
func (*InstrumentationSpec) DeepCopyInto ¶
func (in *InstrumentationSpec) DeepCopyInto(out *InstrumentationSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InstrumentationStatus ¶
type InstrumentationStatus struct {
}
InstrumentationStatus defines the observed state of Instrumentation
func (*InstrumentationStatus) DeepCopy ¶
func (in *InstrumentationStatus) DeepCopy() *InstrumentationStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstrumentationStatus.
func (*InstrumentationStatus) DeepCopyInto ¶
func (in *InstrumentationStatus) DeepCopyInto(out *InstrumentationStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InstrumentationValidator ¶
type InstrumentationValidator struct {
OperatorNamespace string
}
InstrumentationValidator is used to validate instrumentations
func (*InstrumentationValidator) DeepCopy ¶
func (in *InstrumentationValidator) DeepCopy() *InstrumentationValidator
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstrumentationValidator.
func (*InstrumentationValidator) DeepCopyInto ¶
func (in *InstrumentationValidator) DeepCopyInto(out *InstrumentationValidator)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*InstrumentationValidator) ValidateCreate ¶
func (r *InstrumentationValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate to validate the creation operation
func (*InstrumentationValidator) ValidateDelete ¶
func (r *InstrumentationValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete to validate the deletion operation
type Resource ¶
type Resource struct {
// Attributes defines attributes that are added to the resource.
// For example environment: dev
// +optional
Attributes map[string]string `json:"resourceAttributes,omitempty"`
// AddK8sUIDAttributes defines whether K8s UID attributes should be collected (e.g. k8s.deployment.uid).
// +optional
AddK8sUIDAttributes bool `json:"addK8sUIDAttributes,omitempty"`
}
Resource is the attributes that are added to the resource
func (*Resource) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Resource.
func (*Resource) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Sampler ¶
type Sampler struct {
// Type defines sampler type.
// The value will be set in the OTEL_TRACES_SAMPLER env var.
// The value can be for instance parentbased_always_on, parentbased_always_off, parentbased_traceidratio...
// +optional
Type common.SamplerType `json:"type,omitempty"`
// Argument defines sampler argument.
// The value depends on the sampler type.
// For instance for parentbased_traceidratio sampler type it is a number in range [0..1] e.g. 0.25.
// The value will be set in the OTEL_TRACES_SAMPLER_ARG env var.
// +optional
Argument string `json:"argument,omitempty"`
}
Sampler defines sampling configuration.
func (*Sampler) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Sampler.
func (*Sampler) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.