Documentation ¶
Index ¶
Constants ¶
View Source
const ( // configMap that contains the default script OpenScapScriptConfigMapName = "openscap-container-entrypoint" // This is how the script would be mounted OpenScapScriptPath = "/scripts/openscap-container-entrypoint" // a configMap with env vars for the script OpenScapEnvConfigMapName = "openscap-env-map" // A configMap same as above but minus hostroot OpenScapPlatformEnvConfigMapName = "openscap-env-map-platform" // environment variables the default script consumes OpenScapHostRootEnvName = "HOSTROOT" OpenScapProfileEnvName = "PROFILE" OpenScapContentEnvName = "CONTENT" OpenScapReportDirEnvName = "REPORT_DIR" OpenScapRuleEnvName = "RULE" OpenScapVerbosityeEnvName = "VERBOSITY" OpenScapTailoringDirEnvName = "TAILORING_DIR" HTTPSProxyEnvName = "HTTPS_PROXY" DisconnectedInstallEnvName = "DISCONNECTED" ResultServerPort = int32(8443) // Tailoring constants OpenScapTailoringDir = "/tailoring" PlatformScanName = "api-checks" PlatformScanResourceCollectorName = "api-resource-collector" // This coincides with the default ocp_data_root var in CaC. PlatformScanDataRoot = "/kubernetes-api-resources" )
View Source
const ( DefaultContentContainerImage = "quay.io/complianceascode/ocp4:latest" CACertDataKey = "ca.crt" CAKeyDataKey = "ca.key" ServerCertInstanceSuffix = "-rs" ClientCertInstanceSuffix = "-client" ServerCertPrefix = "result-server-cert-" ClientCertPrefix = "result-client-cert-" RootCAPrefix = "root-ca-" CertValidityDays = 1 )
View Source
const (
// OpenSCAPScanContainerName defines the name of the contianer that will run OpenSCAP
OpenSCAPScanContainerName = "scanner"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ReconcileComplianceScan ¶
type ReconcileComplianceScan struct {
// contains filtered or unexported fields
}
ReconcileComplianceScan reconciles a ComplianceScan object
func (*ReconcileComplianceScan) Reconcile ¶
Reconcile reads that state of the cluster for a ComplianceScan object and makes changes based on the state read and what is in the ComplianceScan.Spec Note: The Controller will requeue the Request to be processed again if the returned error is non-nil or Result.Requeue is true, otherwise upon completion it will remove the work from the queue.
Click to show internal directories.
Click to hide internal directories.