constants

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Application basic info
	AppName  string = "eks-node-diagnostic"
	AppUsage string = "friendly NodeDiagnostic generator"

	// Node under Auto Mode would be EC2 instance id, where would be prefixed with "i-" follow by 17-character IDs
	// - https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeIdFormat.html
	// - https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ModifyIdFormat.html
	// - https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeAggregateIdFormat.html
	NodeNameLength        = 19
	NodeNamePrefix        = "i-"
	NodeNameSuffixPattern = "[a-f0-9]{17}"

	// NodeDiagnostic
	NodeDiagnosticApiVersion = "eks.amazonaws.com/v1alpha1"
	MinExpireSeconds         = 120
	MaxExpireSeconds         = 86400
	DefaultExpireSeconds     = 300 // seconds

	// Timeout
	DefaultTimeout = 30 // seconds

	// Log generated pattern
	LogfileNamePattern = "node-diagnostic/log__%s__%s__%s.tar.gz"

	NodeDiagnosticResourceGroup   = "eks.amazonaws.com"
	NodeDiagnosticResourceVersion = "v1alpha1"
	NodeDiagnosticResourceKind    = "NodeDiagnostic"
	NodeDiagnosticResourceName    = "nodediagnostics"
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL