Documentation
¶
Index ¶
- Constants
- Variables
- func AddImageNameToAnnotation(obj metav1.Object, name string) (added bool, err error)
- func GetImageNamesFromAnnotation(obj metav1.Object) ([]string, error)
- func MakeAnnotationValue(imageNames []string) (string, error)
- func RemoveImageNameFromAnnotation(obj metav1.Object, name string) error
- type ContainerConfig
- type ControllerResult
- type PrePullImageController
- type PrePullImageReconcilerConfig
- type ReconcileRequest
Constants ¶
View Source
const ( ControllerLabelPurposeName = "cdayz.k8s.extensions/purpose" ControllerLabelPurposeValue = "images" DaemonSetLabelNodeSelectorHash = "cdayz.k8s.extensions/node-selector-hash" FinalizerName = "images.cdayz.k8s.extensions/finalizer" PodNamePrefix = "image-pre-puller-" DaemonSetNamePrefix = "image-pre-puller-" )
View Source
const ControllerAnnotationImageNames = "cdayz.k8s.extensions/image-names"
Variables ¶
Functions ¶
func MakeAnnotationValue ¶
Types ¶
type ContainerConfig ¶
type ControllerResult ¶
type PrePullImageController ¶
type PrePullImageController struct {
// contains filtered or unexported fields
}
func NewPrePullImageController ¶
func NewPrePullImageController( kubeClient kubernetes.Interface, imClient imclientset.Interface, informerFactory informers.SharedInformerFactory, workers uint32, reconcileConfig *PrePullImageReconcilerConfig, ) *PrePullImageController
func (*PrePullImageController) Reconcile ¶
func (r *PrePullImageController) Reconcile(ctx context.Context, req ReconcileRequest) (ControllerResult, error)
func (*PrePullImageController) Run ¶
func (cc *PrePullImageController) Run(ctx context.Context)
Run start PrePullImageController.
type PrePullImageReconcilerConfig ¶
type PrePullImageReconcilerConfig struct { MainContainer ContainerConfig PrePullContainer ContainerConfig ImagePullSecretNames []string }
type ReconcileRequest ¶
func NewReconcileRequestFromObject ¶
func NewReconcileRequestFromObject(obj metav1.Object) ReconcileRequest
func (*ReconcileRequest) Key ¶
func (n *ReconcileRequest) Key() string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.