Documentation ¶
Overview ¶
Package v1 contains API Schema definitions for the apis v1 API group +kubebuilder:object:generate=true +groupName=apis.integrityshield.io
Index ¶
Constants ¶
const ( DefaultIShieldWebhookTimeout = 10 DefaultIShieldAPILabel = "integrity-shield-api" DefaultFilePath = "/ishield-app/shared/decisions.txt" CleanupFinalizerName = "cleanup.finalizers.integrityshield.io" CsvPath = "./bundle/manifests/integrity-shield-operator.clusterserviceversion.yaml" )
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "apis.integrityshield.io", Version: "v1"} // 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 APIContainer ¶
type APIContainer struct { Name string `json:"name,omitempty"` SelectorLabels map[string]string `json:"selector,omitempty"` SecurityContext *v1.SecurityContext `json:"securityContext,omitempty"` ImagePullPolicy v1.PullPolicy `json:"imagePullPolicy,omitempty"` Image string `json:"image,omitempty"` Tag string `json:"imageTag,omitempty"` Port int32 `json:"port,omitempty"` Resources v1.ResourceRequirements `json:"resources,omitempty"` }
func (*APIContainer) DeepCopy ¶
func (in *APIContainer) DeepCopy() *APIContainer
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIContainer.
func (*APIContainer) DeepCopyInto ¶
func (in *APIContainer) DeepCopyInto(out *APIContainer)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ControllerContainer ¶
type ControllerContainer struct { Name string `json:"name,omitempty"` SelectorLabels map[string]string `json:"selector,omitempty"` SecurityContext *v1.SecurityContext `json:"securityContext,omitempty"` ImagePullPolicy v1.PullPolicy `json:"imagePullPolicy,omitempty"` Image string `json:"image,omitempty"` Tag string `json:"imageTag,omitempty"` Port int32 `json:"port,omitempty"` Resources v1.ResourceRequirements `json:"resources,omitempty"` Log LogConfig `json:"log,omitempty"` }
func (*ControllerContainer) DeepCopy ¶
func (in *ControllerContainer) DeepCopy() *ControllerContainer
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ControllerContainer.
func (*ControllerContainer) DeepCopyInto ¶
func (in *ControllerContainer) DeepCopyInto(out *ControllerContainer)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IntegrityShield ¶
type IntegrityShield struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec IntegrityShieldSpec `json:"spec,omitempty"` Status IntegrityShieldStatus `json:"status,omitempty"` }
IntegrityShield is the Schema for the integrityshields API
func (*IntegrityShield) DeepCopy ¶
func (in *IntegrityShield) DeepCopy() *IntegrityShield
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IntegrityShield.
func (*IntegrityShield) DeepCopyInto ¶
func (in *IntegrityShield) DeepCopyInto(out *IntegrityShield)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*IntegrityShield) DeepCopyObject ¶
func (in *IntegrityShield) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type IntegrityShieldList ¶
type IntegrityShieldList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []IntegrityShield `json:"items"` }
IntegrityShieldList contains a list of IntegrityShield
func (*IntegrityShieldList) DeepCopy ¶
func (in *IntegrityShieldList) DeepCopy() *IntegrityShieldList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IntegrityShieldList.
func (*IntegrityShieldList) DeepCopyInto ¶
func (in *IntegrityShieldList) DeepCopyInto(out *IntegrityShieldList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*IntegrityShieldList) DeepCopyObject ¶
func (in *IntegrityShieldList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type IntegrityShieldSpec ¶
type IntegrityShieldSpec struct { MaxSurge *intstr.IntOrString `json:"maxSurge,omitempty"` ReplicaCount *int32 `json:"replicaCount,omitempty"` MetaLabels map[string]string `json:"labels,omitempty"` NodeSelector map[string]string `json:"nodeSelector,omitempty"` Affinity *v1.Affinity `json:"affinity,omitempty"` Tolerations []v1.Toleration `json:"tolerations,omitempty"` Security SecurityConfig `json:"security,omitempty"` // api API APIContainer `json:"shieldApi,omitempty"` RequestHandlerConfigKey string `json:"requestHandlerConfigKey,omitempty"` RequestHandlerConfigName string `json:"requestHandlerConfigName,omitempty"` RequestHandlerConfig string `json:"requestHandlerConfig,omitempty"` ApiServiceName string `json:"shieldApiServiceName,omitempty"` ApiServicePort int32 `json:"shieldApiServicePort,omitempty"` Reporter ReporterContainer `json:"reporter,omitempty"` // admission controller ControllerContainer ControllerContainer `json:"admissionController,omitempty"` AdmissionControllerConfigKey string `json:"admissionControllerConfigKey,omitempty"` AdmissionControllerConfigName string `json:"admissionControllerConfigName,omitempty"` AdmissionControllerConfig string `json:"admissionControllerConfig,omitempty"` // observer Observer Observer `json:"observer,omitempty"` APITlsSecretName string `json:"shieldApiTlsSecretName,omitempty"` WebhookServerTlsSecretName string `json:"webhookServerTlsSecretName,omitempty"` WebhookServiceName string `json:"webhookServiceName,omitempty"` WebhookConfigName string `json:"webhookConfigName,omitempty"` WebhookNamespacedResource admv1.Rule `json:"webhookNamespacedResource,omitempty"` WebhookClusterResource admv1.Rule `json:"webhookClusterResource,omitempty"` // gatekeeper UseGatekeeper bool `json:"useGatekeeper,omitempty"` Rego string `json:"rego,omitempty"` // rekor RekorServerConfig RekorServerConfig `json:"rekorServerConfig,omitempty"` // oci registry OCIRegistryConfig OCIRegistryConfig `json:"registryConfig,omitempty"` }
IntegrityShieldSpec defines the desired state of IntegrityShield
func (*IntegrityShieldSpec) DeepCopy ¶
func (in *IntegrityShieldSpec) DeepCopy() *IntegrityShieldSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IntegrityShieldSpec.
func (*IntegrityShieldSpec) DeepCopyInto ¶
func (in *IntegrityShieldSpec) DeepCopyInto(out *IntegrityShieldSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IntegrityShieldStatus ¶
type IntegrityShieldStatus struct { }
IntegrityShieldStatus defines the observed state of IntegrityShield
func (*IntegrityShieldStatus) DeepCopy ¶
func (in *IntegrityShieldStatus) DeepCopy() *IntegrityShieldStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IntegrityShieldStatus.
func (*IntegrityShieldStatus) DeepCopyInto ¶
func (in *IntegrityShieldStatus) DeepCopyInto(out *IntegrityShieldStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LogConfig ¶
type LogConfig struct { LogLevel string `json:"level,omitempty"` LogFormat string `json:"format,omitempty"` }
func (*LogConfig) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LogConfig.
func (*LogConfig) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type OCIRegistryConfig ¶
type OCIRegistryConfig struct {
ManifestPullSecret string `json:"manifestPullSecret,omitempty"`
}
func (*OCIRegistryConfig) DeepCopy ¶
func (in *OCIRegistryConfig) DeepCopy() *OCIRegistryConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OCIRegistryConfig.
func (*OCIRegistryConfig) DeepCopyInto ¶
func (in *OCIRegistryConfig) DeepCopyInto(out *OCIRegistryConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Observer ¶
type Observer struct { Enabled bool `json:"enabled,omitempty"` Name string `json:"name,omitempty"` SelectorLabels map[string]string `json:"selector,omitempty"` ImagePullPolicy v1.PullPolicy `json:"imagePullPolicy,omitempty"` Image string `json:"image,omitempty"` Tag string `json:"imageTag,omitempty"` SecurityContext *v1.SecurityContext `json:"securityContext,omitempty"` LogLevel string `json:"logLevel,omitempty"` Interval string `json:"interval,omitempty"` ExportDetailResult bool `json:"exportDetailResult,omitempty"` ResultDetailConfigName string `json:"resultDetailConfigName,omitempty"` ResultDetailConfigKey string `json:"resultDetailConfigKey,omitempty"` Resources v1.ResourceRequirements `json:"resources,omitempty"` }
func (*Observer) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Observer.
func (*Observer) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RekorServerConfig ¶
type RekorServerConfig struct {
URL string `json:"url,omitempty"`
}
func (*RekorServerConfig) DeepCopy ¶
func (in *RekorServerConfig) DeepCopy() *RekorServerConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RekorServerConfig.
func (*RekorServerConfig) DeepCopyInto ¶
func (in *RekorServerConfig) DeepCopyInto(out *RekorServerConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ReporterContainer ¶
type ReporterContainer struct { Name string `json:"name,omitempty"` SelectorLabels map[string]string `json:"selector,omitempty"` SecurityContext *v1.SecurityContext `json:"securityContext,omitempty"` ImagePullPolicy v1.PullPolicy `json:"imagePullPolicy,omitempty"` Image string `json:"image,omitempty"` Tag string `json:"imageTag,omitempty"` Resources v1.ResourceRequirements `json:"resources,omitempty"` IntervalSeconds string `json:"intervalSeconds,omitempty"` }
func (*ReporterContainer) DeepCopy ¶
func (in *ReporterContainer) DeepCopy() *ReporterContainer
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReporterContainer.
func (*ReporterContainer) DeepCopyInto ¶
func (in *ReporterContainer) DeepCopyInto(out *ReporterContainer)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SecurityConfig ¶
type SecurityConfig struct { APIServiceAccountName string `json:"serviceAccountName,omitempty"` ObserverServiceAccountName string `json:"observerServiceAccountName,omitempty"` ObserverRole string `json:"observerRole,omitempty"` ObserverRoleBinding string `json:"observerRoleBinding,omitempty"` APIRole string `json:"role,omitempty"` APIRoleBinding string `json:"roleBinding,omitempty"` PodSecurityPolicyName string `json:"podSecurityPolicyName,omitempty"` PodSecurityContext *v1.PodSecurityContext `json:"securityContext,omitempty"` }
func (*SecurityConfig) DeepCopy ¶
func (in *SecurityConfig) DeepCopy() *SecurityConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecurityConfig.
func (*SecurityConfig) DeepCopyInto ¶
func (in *SecurityConfig) DeepCopyInto(out *SecurityConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.