kmmparams

package
v0.0.0-...-2edc924 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label represents kmm that can be used for test cases selection.
	Label = "kmm"

	// KmmLogLevel custom loglevel of KMM related functions.
	KmmLogLevel = 90

	// MultistageContents represents the Dockerfile contents for multi stage build.
	MultistageContents = `` /* 510-byte string literal not displayed */

	// SimpleKmodContents represents the Dockerfile contents for simple-kmod build.
	SimpleKmodContents = `` /* 685-byte string literal not displayed */

	// SecretContents template.
	SecretContents = `
{
  "auths": {
    "{{.Registry}}": {
      "auth": "{{.PullSecret}}",
      "email": ""
    }
  }
}
`
	// SimpleKmodFirmwareContents represents the Dockerfile contents for simple-kmod-firmware build.
	SimpleKmodFirmwareContents = `` /* 793-byte string literal not displayed */

	// LocalMultiStageContents represents the Dockerfile contents for multi stage build using local registry.
	LocalMultiStageContents = `` /* 518-byte string literal not displayed */

	//nolint:lll
	// SigningCertBase64 represents cert used for module signing.
	SigningCertBase64 = `` /* 1908-byte string literal not displayed */

	//nolint:lll
	// SigningKeyBase64 represents key used for module signing.
	SigningKeyBase64 = `` /* 4364-byte string literal not displayed */

	// KmmScannerDockerfile represents dockerfile used to run clamav on KMM images.
	KmmScannerDockerfile = `` /* 1031-byte string literal not displayed */

)
View Source
const (
	// LabelSuite represents kmm label that can be used for test cases selection.
	LabelSuite = "module"
	// LabelSanity represents kmm label for short-running tests used for test case selection.
	LabelSanity = "kmm-sanity"
	// LabelLongRun represent kmm label for long-running tests used for test case selection.
	LabelLongRun = "kmm-longrun"
	// KmmOperatorNamespace represents the namespace where KMM is installed.
	KmmOperatorNamespace = "openshift-kmm"
	// KmmHubOperatorNamespace represents namespace of the operator.
	KmmHubOperatorNamespace = "openshift-kmm-hub"
	// DeploymentName represents the name of the KMM operator deployment.
	DeploymentName = "kmm-operator-controller"
	// WebhookDeploymentName represents the name of the Webhook server deployment.
	WebhookDeploymentName = "kmm-operator-webhook-server"
	// HubDeploymentName represents the name of the KMM HUB deployment.
	HubDeploymentName = "kmm-operator-hub-controller"
	// HubWebhookDeploymentName represents the name of the HUB Webhook server deployment.
	HubWebhookDeploymentName = "kmm-operator-hub-webhook-server"
	// BuildArgName represents kmod key passed to kmm-ci example.
	BuildArgName = "MY_MODULE"
	// RelImgMustGather represents identifier for must-gather image in operator environment variables.
	RelImgMustGather = "MUST_GATHER"
	// RelImgSign represents identifier for sign image in operator environment variables.
	RelImgSign = "SIGN"
	// RelImgWorker represents identifier for worker image in operator environment variables.
	RelImgWorker = "WORKER"
	// ModuleNodeLabelTemplate represents template of the label set on a node for a Module.
	ModuleNodeLabelTemplate = "kmm.node.kubernetes.io/%s.%s.ready"
	// DevicePluginNodeLabelTemplate represents template label set by KMM on a node for a Device Plugin.
	DevicePluginNodeLabelTemplate = "kmm.node.kubernetes.io/%s.%s.device-plugin-ready"
	// UseDtkModuleTestNamespace represents test case namespace name.
	UseDtkModuleTestNamespace = "54283-use-dtk"
	// UseLocalMultiStageTestNamespace represents test case namespace name.
	UseLocalMultiStageTestNamespace = "53651-multi-stage"
	// WebhookModuleTestNamespace represents test case namespace name.
	WebhookModuleTestNamespace = "webhook"
	// SimpleKmodModuleTestNamespace represents test case namespace name.
	SimpleKmodModuleTestNamespace = "simple-kmod"
	// DevicePluginTestNamespace represents test case namespace name.
	DevicePluginTestNamespace = "53678-devplug"
	// RealtimeKernelNamespace represents test case namespace name.
	RealtimeKernelNamespace = "53656-rtkernel"
	// FirmwareTestNamespace represents test case namespace name.
	FirmwareTestNamespace = "simple-kmod-firmware"
	// ModuleBuildAndSignNamespace represents test case namespace name.
	ModuleBuildAndSignNamespace = "56252"
	// InTreeReplacementNamespace represents test case namespace name.
	InTreeReplacementNamespace = "62745"
	// MultipleModuleTestNamespace represents test case namespace name.
	MultipleModuleTestNamespace = "multiple-modules"
	// VersionModuleTestNamespace represents test case namespace name.
	VersionModuleTestNamespace = "modver"
	// PreflightTemplateImage represents image against which preflightvalidationocp will build against.
	PreflightTemplateImage = "quay.io/openshift-release-dev/ocp-release:4.10.15-%s"
	// PreflightName represents preflightvalidation ocp object name.
	PreflightName = "preflight"
	// ScannerTestNamespace represents test case namespace name.
	ScannerTestNamespace = "kmm-scanner"
	// ReasonBuildCompleted represents event reason for a build completed.
	ReasonBuildCompleted = "BuildCompleted"
	// ReasonBuildCreated represents event reason for a build created.
	ReasonBuildCreated = "BuildCreated"
	// ReasonBuildStarted represents event reason for a build started.
	ReasonBuildStarted = "BuildStarted"
	// ReasonBuildSucceeded represents event reason for a build succeeded.
	ReasonBuildSucceeded = "BuildSucceeded"
	// ReasonSignCreated represents event reason for a sign created.
	ReasonSignCreated = "SignCreated"
	// ReasonSignSucceeded represents event reason for a sign succeeded.
	ReasonSignSucceeded = "SignSucceeded"
	// ReasonModuleLoaded represents event reason for a module loaded.
	ReasonModuleLoaded = "ModuleLoaded"
	// ReasonModuleUnloaded represents event reason for a module unloaded.
	ReasonModuleUnloaded = "ModuleUnloaded"
)

Variables

View Source
var (
	// Labels represents the range of labels that can be used for test cases selection.
	Labels = []string{hwaccelparams.Label, Label}

	// LocalImageRegistry represents the local registry used in KMM tests.
	LocalImageRegistry = "image-registry.openshift-image-registry.svc:5000"

	// KmmHubSelector represents MCM object generic selector.
	KmmHubSelector = map[string]string{"cluster.open-cluster-management.io/clusterset": "default"}

	// KmmTestHelperLabelName represents label set on the helper resources.
	KmmTestHelperLabelName = "kmm-test-helper"

	// DTKImage represents Driver Toolkit image in internal image registry.
	DTKImage = "image-registry.openshift-image-registry.svc:5000/openshift/driver-toolkit"

	// PrivilegedSC represents a privileged security context definition.
	PrivilegedSC = &v1.SecurityContext{
		Privileged:     &trueVar,
		RunAsGroup:     &defaultGroupID,
		RunAsUser:      &defaultUserID,
		SeccompProfile: &v1.SeccompProfile{Type: "RuntimeDefault"},
		Capabilities: &v1.Capabilities{
			Add: capabilityAll,
		},
	}

	// ReasonBuildList represents expected events to be found for a successful build job.
	ReasonBuildList = []string{ReasonBuildCreated, ReasonBuildStarted, ReasonBuildCompleted, ReasonBuildSucceeded}
	// ReasonSignList represents expected events to be found for a successful sign job.
	ReasonSignList = []string{ReasonSignCreated, ReasonBuildStarted, ReasonBuildCompleted, ReasonBuildSucceeded}
)

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