Documentation ¶
Index ¶
Constants ¶
View Source
const PROFILE_ANNOTATION = "nodepolicy.softonic.io/profile"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdmissionReviewer ¶
type AdmissionReviewer struct {
// contains filtered or unexported fields
}
func NewNodePolicyAdmissionReviewer ¶
func NewNodePolicyAdmissionReviewer(fetcher FetcherInterface, patcher PatcherInterface) *AdmissionReviewer
func (*AdmissionReviewer) PerformAdmissionReview ¶
func (r *AdmissionReviewer) PerformAdmissionReview(admissionReview *v1beta1.AdmissionReview)
PerformAdmissionReview : It generates the Adminission Review Response
type FetcherInterface ¶
type FetcherInterface interface {
Get(profileName string) (*v1alpha1.NodePolicyProfile, error)
}
func NewNodePolicyProfileFetcher ¶
func NewNodePolicyProfileFetcher(client dynamic.Interface) FetcherInterface
type NodePolicyProfileFetcher ¶
type NodePolicyProfileFetcher struct {
// contains filtered or unexported fields
}
func (*NodePolicyProfileFetcher) Get ¶
func (n *NodePolicyProfileFetcher) Get(profileName string) (*v1alpha1.NodePolicyProfile, error)
type PatchOperation ¶
type Patcher ¶
type Patcher struct{}
func (*Patcher) CreatePatch ¶
func (p *Patcher) CreatePatch(pod *v1.Pod, nodePolicyProfile *v1alpha1.NodePolicyProfile) *[]PatchOperation
type PatcherInterface ¶
type PatcherInterface interface {
CreatePatch(pod *v1.Pod, nodePolicyProfile *v1alpha1.NodePolicyProfile) *[]PatchOperation
}
func NewPatcher ¶
func NewPatcher() PatcherInterface
Click to show internal directories.
Click to hide internal directories.