Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the fileintegrity v1alpha1 API group +kubebuilder:object:generate=true +groupName=fileintegrity.openshift.io
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "fileintegrity.openshift.io", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
This section is empty.
Types ¶
type FileIntegrity ¶
type FileIntegrity struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec FileIntegritySpec `json:"spec,omitempty"`
Status FileIntegrityStatus `json:"status,omitempty"`
}
FileIntegrity is the Schema for the fileintegrities API +kubebuilder:subresource:status +kubebuilder:resource:path=fileintegrities,scope=Namespaced
func (*FileIntegrity) DeepCopy ¶
func (in *FileIntegrity) DeepCopy() *FileIntegrity
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FileIntegrity.
func (*FileIntegrity) DeepCopyInto ¶
func (in *FileIntegrity) DeepCopyInto(out *FileIntegrity)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*FileIntegrity) DeepCopyObject ¶
func (in *FileIntegrity) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type FileIntegrityConfig ¶
type FileIntegrityConfig struct {
// Name of a configMap that contains custom AIDE configuration. A default configuration would be created if omitted.
Name string `json:"name,omitempty"`
// Namespace of a configMap that contains custom AIDE configuration. A default configuration would be created if omitted.
Namespace string `json:"namespace,omitempty"`
// The key that contains the actual AIDE configuration in a configmap specified by Name and Namespace. Defaults to aide.conf
Key string `json:"key,omitempty"`
// Time between individual aide scans
// +kubebuilder:default=900
GracePeriod int `json:"gracePeriod,omitempty"`
// The maximum number of AIDE database and log backups (leftover from the re-init process) to keep on a node.
// Older backups beyond this number are automatically pruned by the daemon.
// +kubebuilder:default=5
MaxBackups int `json:"maxBackups,omitempty"`
// InitialDelaySeconds is the number of seconds to wait before the first scan.
// It is an optional field, and if not specified, the operator will default to 0
InitialDelay int `json:"initialDelay,omitempty"`
}
FileIntegrityConfig defines the name, namespace, and data key for an AIDE config to use for integrity checking.
func (*FileIntegrityConfig) DeepCopy ¶
func (in *FileIntegrityConfig) DeepCopy() *FileIntegrityConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FileIntegrityConfig.
func (*FileIntegrityConfig) DeepCopyInto ¶
func (in *FileIntegrityConfig) DeepCopyInto(out *FileIntegrityConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FileIntegrityList ¶
type FileIntegrityList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []FileIntegrity `json:"items"`
}
FileIntegrityList contains a list of FileIntegrity
func (*FileIntegrityList) DeepCopy ¶
func (in *FileIntegrityList) DeepCopy() *FileIntegrityList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FileIntegrityList.
func (*FileIntegrityList) DeepCopyInto ¶
func (in *FileIntegrityList) DeepCopyInto(out *FileIntegrityList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*FileIntegrityList) DeepCopyObject ¶
func (in *FileIntegrityList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type FileIntegrityNodeCondition ¶
type FileIntegrityNodeCondition string
const ( NodeConditionSucceeded FileIntegrityNodeCondition = "Succeeded" NodeConditionFailed FileIntegrityNodeCondition = "Failed" NodeConditionErrored FileIntegrityNodeCondition = "Errored" )
type FileIntegrityNodeStatus ¶
type FileIntegrityNodeStatus struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
NodeName string `json:"nodeName"`
Results []FileIntegrityScanResult `json:"results"`
LastResult FileIntegrityScanResult `json:"lastResult"`
}
FileIntegrityNodeStatus defines the status of a specific node +kubebuilder:printcolumn:name="Node",type="string",JSONPath=`.nodeName` +kubebuilder:printcolumn:name="Status",type="string",JSONPath=`.lastResult.condition`
func (*FileIntegrityNodeStatus) DeepCopy ¶
func (in *FileIntegrityNodeStatus) DeepCopy() *FileIntegrityNodeStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FileIntegrityNodeStatus.
func (*FileIntegrityNodeStatus) DeepCopyInto ¶
func (in *FileIntegrityNodeStatus) DeepCopyInto(out *FileIntegrityNodeStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*FileIntegrityNodeStatus) DeepCopyObject ¶
func (in *FileIntegrityNodeStatus) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type FileIntegrityNodeStatusList ¶
type FileIntegrityNodeStatusList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []FileIntegrityNodeStatus `json:"items"`
}
FileIntegrityNodeStatusList contains a list of FileIntegrityNodeStatus
func (*FileIntegrityNodeStatusList) DeepCopy ¶
func (in *FileIntegrityNodeStatusList) DeepCopy() *FileIntegrityNodeStatusList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FileIntegrityNodeStatusList.
func (*FileIntegrityNodeStatusList) DeepCopyInto ¶
func (in *FileIntegrityNodeStatusList) DeepCopyInto(out *FileIntegrityNodeStatusList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*FileIntegrityNodeStatusList) DeepCopyObject ¶
func (in *FileIntegrityNodeStatusList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type FileIntegrityScanResult ¶
type FileIntegrityScanResult struct {
LastProbeTime metav1.Time `json:"lastProbeTime"`
Condition FileIntegrityNodeCondition `json:"condition"`
ResultConfigMapName string `json:"resultConfigMapName,omitempty"`
ResultConfigMapNamespace string `json:"resultConfigMapNamespace,omitempty"`
ErrorMsg string `json:"errorMessage,omitempty"`
FilesAdded int `json:"filesAdded,omitempty"`
FilesChanged int `json:"filesChanged,omitempty"`
FilesRemoved int `json:"filesRemoved,omitempty"`
}
FileIntegrityScanResult defines the one-time result of a scan.
func (*FileIntegrityScanResult) DeepCopy ¶
func (in *FileIntegrityScanResult) DeepCopy() *FileIntegrityScanResult
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FileIntegrityScanResult.
func (*FileIntegrityScanResult) DeepCopyInto ¶
func (in *FileIntegrityScanResult) DeepCopyInto(out *FileIntegrityScanResult)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FileIntegritySpec ¶
type FileIntegritySpec struct {
NodeSelector map[string]string `json:"nodeSelector,omitempty"`
Config FileIntegrityConfig `json:"config"`
Debug bool `json:"debug,omitempty"`
// Specifies tolerations for custom taints. Defaults to allowing scheduling on master and infra nodes.
// +kubebuilder:default={{key: "node-role.kubernetes.io/master", operator: "Exists", effect: "NoSchedule"},{key: "node-role.kubernetes.io/infra", operator: "Exists", effect: "NoSchedule"}}
Tolerations []corev1.Toleration `json:"tolerations,omitempty"`
}
FileIntegritySpec defines the desired state of FileIntegrity
func (*FileIntegritySpec) DeepCopy ¶
func (in *FileIntegritySpec) DeepCopy() *FileIntegritySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FileIntegritySpec.
func (*FileIntegritySpec) DeepCopyInto ¶
func (in *FileIntegritySpec) DeepCopyInto(out *FileIntegritySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FileIntegrityStatus ¶
type FileIntegrityStatus struct {
Phase FileIntegrityStatusPhase `json:"phase,omitempty"`
}
FileIntegrityStatus defines the observed state of FileIntegrity
func (*FileIntegrityStatus) DeepCopy ¶
func (in *FileIntegrityStatus) DeepCopy() *FileIntegrityStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FileIntegrityStatus.
func (*FileIntegrityStatus) DeepCopyInto ¶
func (in *FileIntegrityStatus) DeepCopyInto(out *FileIntegrityStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FileIntegrityStatusPhase ¶
type FileIntegrityStatusPhase string
const ( PhaseInitializing FileIntegrityStatusPhase = "Initializing" PhaseActive FileIntegrityStatusPhase = "Active" PhasePending FileIntegrityStatusPhase = "Pending" PhaseError FileIntegrityStatusPhase = "Error" )