Documentation ¶
Index ¶
- func ParseEvaluationResponseIntoAdmissionReview(requestUID k8sTypes.UID, allowed bool, msg string, warningMessages []string) *admission.AdmissionReview
- func ShouldResourceBeSkippedByConfigMapScanningFilters(admissionReviewReq *admission.AdmissionReview, rootObject RootObject) bool
- type ManagedFields
- type Metadata
- type OwnerReference
- type RootObject
- type ShouldValidatedResourceData
- type ValidationService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ShouldResourceBeSkippedByConfigMapScanningFilters ¶
func ShouldResourceBeSkippedByConfigMapScanningFilters(admissionReviewReq *admission.AdmissionReview, rootObject RootObject) bool
Types ¶
type ManagedFields ¶
type ManagedFields struct {
Manager string `json:"manager"`
}
type Metadata ¶
type Metadata struct { Name string `json:"name"` DeletionTimestamp string `json:"deletionTimestamp"` ManagedFields []ManagedFields `json:"managedFields"` Labels map[string]string `json:"labels"` OwnerReferences []cliClient.OwnerReference `json:"ownerReferences"` Annotations map[string]string `json:"annotations"` }
type OwnerReference ¶
type RootObject ¶
type RootObject struct {
Metadata Metadata `json:"metadata"`
}
type ShouldValidatedResourceData ¶
func ShouldResourceBeValidated ¶
func ShouldResourceBeValidated(admissionReviewReq *admission.AdmissionReview, rootObject RootObject) ShouldValidatedResourceData
type ValidationService ¶
type ValidationService struct { CliServiceClient *cliClient.CliClient K8sMetadataUtil *k8sMetadataUtil.K8sMetadataUtil ErrorReporter *errorReporter.ErrorReporter State *servicestate.ServiceState OpenshiftService *openshiftService.OpenshiftService Logger *logger.Logger }
func (*ValidationService) SendMetadataInBatch ¶
func (vs *ValidationService) SendMetadataInBatch()
func (*ValidationService) Validate ¶
func (vs *ValidationService) Validate(admissionReviewReq *admission.AdmissionReview, warningMessages *[]string) (admissionReview *admission.AdmissionReview, isSkipped bool)
Click to show internal directories.
Click to hide internal directories.