Documentation ¶
Overview ¶
+k8s:deepcopy-gen=package +k8s:conversion-gen=kmodules.xyz/monitoring-agent-api/api/v1 +k8s:openapi-gen=true +gencrdrefdocs:force=true
Index ¶
- Constants
- Variables
- func Convert_v1_AgentSpec_To_v1alpha1_AgentSpec(in *v1.AgentSpec, out *AgentSpec, s conversion.Scope) error
- func Convert_v1_PrometheusSpec_To_v1alpha1_PrometheusSpec(in *v1.PrometheusSpec, out *PrometheusSpec, s conversion.Scope) error
- func Convert_v1alpha1_AgentSpec_To_v1_AgentSpec(in *AgentSpec, out *v1.AgentSpec, s conversion.Scope) error
- func Convert_v1alpha1_PrometheusSpec_To_v1_PrometheusSpec(in *PrometheusSpec, out *v1.PrometheusSpec, s conversion.Scope) error
- func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
- func RegisterConversions(s *runtime.Scheme) error
- type AgentSpec
- func (in *AgentSpec) DeepCopy() *AgentSpec
- func (in *AgentSpec) DeepCopyInto(out *AgentSpec)
- func (*AgentSpec) Descriptor() ([]byte, []int)
- func (m *AgentSpec) Marshal() (dAtA []byte, err error)
- func (m *AgentSpec) MarshalTo(dAtA []byte) (int, error)
- func (m *AgentSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AgentSpec) ProtoMessage()
- func (m *AgentSpec) Reset()
- func (m *AgentSpec) Size() (n int)
- func (this *AgentSpec) String() string
- func (m *AgentSpec) Unmarshal(dAtA []byte) error
- func (m *AgentSpec) XXX_DiscardUnknown()
- func (m *AgentSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AgentSpec) XXX_Merge(src proto.Message)
- func (m *AgentSpec) XXX_Size() int
- func (m *AgentSpec) XXX_Unmarshal(b []byte) error
- type AgentType
- type PrometheusSpec
- func (in *PrometheusSpec) DeepCopy() *PrometheusSpec
- func (in *PrometheusSpec) DeepCopyInto(out *PrometheusSpec)
- func (*PrometheusSpec) Descriptor() ([]byte, []int)
- func (m *PrometheusSpec) Marshal() (dAtA []byte, err error)
- func (m *PrometheusSpec) MarshalTo(dAtA []byte) (int, error)
- func (m *PrometheusSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PrometheusSpec) ProtoMessage()
- func (m *PrometheusSpec) Reset()
- func (m *PrometheusSpec) Size() (n int)
- func (this *PrometheusSpec) String() string
- func (m *PrometheusSpec) Unmarshal(dAtA []byte) error
- func (m *PrometheusSpec) XXX_DiscardUnknown()
- func (m *PrometheusSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PrometheusSpec) XXX_Merge(src proto.Message)
- func (m *PrometheusSpec) XXX_Size() int
- func (m *PrometheusSpec) XXX_Unmarshal(b []byte) error
Constants ¶
const ( KeyAgent = "monitoring.appscode.com/agent" KeyService = "monitoring.appscode.com/service" VendorPrometheus = "prometheus.io" AgentPrometheusBuiltin AgentType = VendorPrometheus + "/builtin" AgentCoreOSPrometheus AgentType = VendorPrometheus + "/coreos-operator" // Deprecated DeprecatedAgentCoreOSPrometheus AgentType = "coreos-prometheus-operator" )
Variables ¶
var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") )
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 )
Functions ¶
func Convert_v1_AgentSpec_To_v1alpha1_AgentSpec ¶
func Convert_v1_AgentSpec_To_v1alpha1_AgentSpec(in *v1.AgentSpec, out *AgentSpec, s conversion.Scope) error
Convert_v1_AgentSpec_To_v1alpha1_AgentSpec is an autogenerated conversion function.
func Convert_v1_PrometheusSpec_To_v1alpha1_PrometheusSpec ¶
func Convert_v1_PrometheusSpec_To_v1alpha1_PrometheusSpec(in *v1.PrometheusSpec, out *PrometheusSpec, s conversion.Scope) error
func Convert_v1alpha1_PrometheusSpec_To_v1_PrometheusSpec ¶
func Convert_v1alpha1_PrometheusSpec_To_v1_PrometheusSpec(in *PrometheusSpec, out *v1.PrometheusSpec, s conversion.Scope) error
func GetOpenAPIDefinitions ¶
func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
func RegisterConversions ¶
RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.
Types ¶
type AgentSpec ¶
type AgentSpec struct { Agent AgentType `json:"agent,omitempty" protobuf:"bytes,1,opt,name=agent,casttype=AgentType"` Prometheus *PrometheusSpec `json:"prometheus,omitempty" protobuf:"bytes,2,opt,name=prometheus"` // Arguments to the entrypoint. // The docker image's CMD is used if this is not provided. // Variable references $(VAR_NAME) are expanded using the container's environment. If a variable // cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax // can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, // regardless of whether the variable exists or not. // Cannot be updated. // More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell // +optional Args []string `json:"args,omitempty" protobuf:"bytes,3,rep,name=args"` // List of environment variables to set in the container. // Cannot be updated. // +optional // +patchMergeKey=name // +patchStrategy=merge Env []core.EnvVar `json:"env,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,4,rep,name=env"` // Compute Resources required by exporter container. // Cannot be updated. // More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ // +optional Resources core.ResourceRequirements `json:"resources,omitempty" protobuf:"bytes,5,opt,name=resources"` // Security options the pod should run with. // More info: https://kubernetes.io/docs/concepts/policy/security-context/ // More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ // +optional SecurityContext *core.SecurityContext `json:"securityContext,omitempty" protobuf:"bytes,6,opt,name=securityContext"` }
func (*AgentSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AgentSpec.
func (*AgentSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AgentSpec) Descriptor ¶
func (*AgentSpec) MarshalToSizedBuffer ¶
func (*AgentSpec) ProtoMessage ¶
func (*AgentSpec) ProtoMessage()
func (*AgentSpec) XXX_DiscardUnknown ¶
func (m *AgentSpec) XXX_DiscardUnknown()
func (*AgentSpec) XXX_Marshal ¶
func (*AgentSpec) XXX_Unmarshal ¶
type PrometheusSpec ¶
type PrometheusSpec struct { // Port number for the exporter side car. Port int32 `json:"port,omitempty" protobuf:"varint,1,opt,name=port"` // Namespace of Prometheus. Service monitors will be created in this namespace. Namespace string `json:"namespace,omitempty" protobuf:"bytes,2,opt,name=namespace"` // Labels are key value pairs that is used to select Prometheus instance via ServiceMonitor labels. // +optional Labels map[string]string `json:"labels,omitempty" protobuf:"bytes,3,rep,name=labels"` // Interval at which metrics should be scraped Interval string `json:"interval,omitempty" protobuf:"bytes,4,opt,name=interval"` }
func (*PrometheusSpec) DeepCopy ¶
func (in *PrometheusSpec) DeepCopy() *PrometheusSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrometheusSpec.
func (*PrometheusSpec) DeepCopyInto ¶
func (in *PrometheusSpec) DeepCopyInto(out *PrometheusSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PrometheusSpec) Descriptor ¶
func (*PrometheusSpec) Descriptor() ([]byte, []int)
func (*PrometheusSpec) Marshal ¶
func (m *PrometheusSpec) Marshal() (dAtA []byte, err error)
func (*PrometheusSpec) MarshalToSizedBuffer ¶
func (m *PrometheusSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PrometheusSpec) ProtoMessage ¶
func (*PrometheusSpec) ProtoMessage()
func (*PrometheusSpec) Reset ¶
func (m *PrometheusSpec) Reset()
func (*PrometheusSpec) Size ¶
func (m *PrometheusSpec) Size() (n int)
func (*PrometheusSpec) String ¶
func (this *PrometheusSpec) String() string
func (*PrometheusSpec) Unmarshal ¶
func (m *PrometheusSpec) Unmarshal(dAtA []byte) error
func (*PrometheusSpec) XXX_DiscardUnknown ¶
func (m *PrometheusSpec) XXX_DiscardUnknown()
func (*PrometheusSpec) XXX_Marshal ¶
func (m *PrometheusSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PrometheusSpec) XXX_Merge ¶
func (m *PrometheusSpec) XXX_Merge(src proto.Message)
func (*PrometheusSpec) XXX_Size ¶
func (m *PrometheusSpec) XXX_Size() int
func (*PrometheusSpec) XXX_Unmarshal ¶
func (m *PrometheusSpec) XXX_Unmarshal(b []byte) error