Documentation
¶
Index ¶
- Constants
- Variables
- func AddInstrumentationLabels(meta *metav1.ObjectMeta, instrumenationSuccess bool, ...)
- func AddWebhookIgnoreOnceLabel(meta *metav1.ObjectMeta)
- func CheckAndDeleteIgnoreOnceLabel(meta *metav1.ObjectMeta) bool
- func HasBeenInstrumentedSuccessfully(meta *metav1.ObjectMeta) bool
- func HasBeenInstrumentedSuccessfullyByThisVersion(meta *metav1.ObjectMeta, images Images) bool
- func HasOptedOutOfInstrumenation(meta *metav1.ObjectMeta) bool
- func HasOptedOutOfInstrumenationAndIsUninstrumented(meta *metav1.ObjectMeta) bool
- func ImageNameToLabel(imageName string) string
- func InstrumenationAttemptHasFailed(meta *metav1.ObjectMeta) bool
- func QueueFailedInstrumentationEvent(eventRecorder record.EventRecorder, resource runtime.Object, ...)
- func QueueFailedUninstrumentationEvent(eventRecorder record.EventRecorder, resource runtime.Object, ...)
- func QueueNoInstrumentationNecessaryEvent(eventRecorder record.EventRecorder, resource runtime.Object, ...)
- func QueueNoUninstrumentationNecessaryEvent(eventRecorder record.EventRecorder, resource runtime.Object, ...)
- func QueueSuccessfulInstrumentationEvent(eventRecorder record.EventRecorder, resource runtime.Object, ...)
- func QueueSuccessfulUninstrumentationEvent(eventRecorder record.EventRecorder, resource runtime.Object, ...)
- func ReadOptOutSetting(setting *bool) bool
- func ReadOptionalBooleanWithDefault(setting *bool, defaultValue bool) bool
- func RemoveInstrumentationLabels(meta *metav1.ObjectMeta)
- func Retry(operationLabel string, operation func() error, log *logr.Logger) error
- func WasInstrumentedButHasOptedOutNow(meta *metav1.ObjectMeta) bool
- type ConditionType
- type Images
- type InstrumentationMetadata
- type Reason
Constants ¶
View Source
const ( ConditionTypeAvailable ConditionType = "Available" ConditionTypeDegraded ConditionType = "Degraded" ReasonSuccessfulInstrumentation Reason = "SuccessfulInstrumentation" ReasonNoInstrumentationNecessary Reason = "ReasonAlreadyInstrumented" ReasonFailedInstrumentation Reason = "FailedInstrumentation" ReasonSuccessfulUninstrumentation Reason = "SuccessfulUninstrumentation" ReasonNoUninstrumentationNecessary Reason = "ReasonAlreadyNotInstrumented" ReasonFailedUninstrumentation Reason = "FailedUninstrumentation" )
Variables ¶
View Source
var ( EmptyListOptions = metav1.ListOptions{} WorkloadsWithDash0InstrumentedLabelFilter = metav1.ListOptions{ LabelSelector: instrumentedLabelKey, } )
Functions ¶
func AddInstrumentationLabels ¶
func AddInstrumentationLabels( meta *metav1.ObjectMeta, instrumenationSuccess bool, instrumentationMetadata InstrumentationMetadata, )
func AddWebhookIgnoreOnceLabel ¶
func AddWebhookIgnoreOnceLabel(meta *metav1.ObjectMeta)
func CheckAndDeleteIgnoreOnceLabel ¶
func CheckAndDeleteIgnoreOnceLabel(meta *metav1.ObjectMeta) bool
func HasBeenInstrumentedSuccessfully ¶
func HasBeenInstrumentedSuccessfully(meta *metav1.ObjectMeta) bool
func HasBeenInstrumentedSuccessfullyByThisVersion ¶
func HasBeenInstrumentedSuccessfullyByThisVersion( meta *metav1.ObjectMeta, images Images, ) bool
func HasOptedOutOfInstrumenation ¶
func HasOptedOutOfInstrumenation(meta *metav1.ObjectMeta) bool
func HasOptedOutOfInstrumenationAndIsUninstrumented ¶
func HasOptedOutOfInstrumenationAndIsUninstrumented(meta *metav1.ObjectMeta) bool
func ImageNameToLabel ¶
func InstrumenationAttemptHasFailed ¶
func InstrumenationAttemptHasFailed(meta *metav1.ObjectMeta) bool
func QueueNoInstrumentationNecessaryEvent ¶
func QueueNoInstrumentationNecessaryEvent(eventRecorder record.EventRecorder, resource runtime.Object, eventSource string)
func QueueNoUninstrumentationNecessaryEvent ¶
func QueueNoUninstrumentationNecessaryEvent(eventRecorder record.EventRecorder, resource runtime.Object, eventSource string)
func QueueSuccessfulInstrumentationEvent ¶
func QueueSuccessfulInstrumentationEvent(eventRecorder record.EventRecorder, resource runtime.Object, eventSource string)
func QueueSuccessfulUninstrumentationEvent ¶
func QueueSuccessfulUninstrumentationEvent(eventRecorder record.EventRecorder, resource runtime.Object, eventSource string)
func ReadOptOutSetting ¶
func RemoveInstrumentationLabels ¶
func RemoveInstrumentationLabels(meta *metav1.ObjectMeta)
func WasInstrumentedButHasOptedOutNow ¶
func WasInstrumentedButHasOptedOutNow(meta *metav1.ObjectMeta) bool
Types ¶
type ConditionType ¶
type ConditionType string
type Images ¶
type Images struct { OperatorImage string InitContainerImage string InitContainerImagePullPolicy corev1.PullPolicy }
type InstrumentationMetadata ¶
Click to show internal directories.
Click to hide internal directories.