Documentation ¶
Index ¶
- Constants
- func NewGlobalInfoManifest(latestInfoManifest *manifestv1alpha1.Manifest) *manifestv1alpha1.Manifest
- type Controller
- func (c *Controller) EnsureGlobalInfoManifestBeingLatest(latestInfoManifest *manifestv1alpha1.Manifest) (*manifestv1alpha1.Manifest, error)
- func (c *Controller) FetchGlobalInfoManifest() (*manifestv1alpha1.Manifest, error)
- func (c *Controller) FetchLatestInfoManifest() (*manifestv1alpha1.Manifest, error)
- func (c *Controller) FetchLocalServiceCM(namespace string) (*corev1.ConfigMap, error)
- func (c *Controller) IsOnlineENV() bool
- func (c *Controller) ParseConfigMapToLocalService(localServiceConfigMap *corev1.ConfigMap) (*manifestv1alpha1.LocalService, error)
- func (c *Controller) Reconcile(ctx context.Context, req controllerruntime.Request) (controllerruntime.Result, error)
- func (c *Controller) SetupWithManager(mgr controllerruntime.Manager) error
- func (c *Controller) Start(ctx context.Context) error
- func (c *Controller) UpdateGlobalLocalService()
- func (c *Controller) UpdateLocalAvailableImage()
Constants ¶
View Source
const LocalServiceConfigMap = "kubean-localservice"
View Source
const Loop = time.Second * 30
View Source
const OriginLabel = "origin"
Variables ¶
This section is empty.
Functions ¶
func NewGlobalInfoManifest ¶ added in v0.2.3
func NewGlobalInfoManifest(latestInfoManifest *manifestv1alpha1.Manifest) *manifestv1alpha1.Manifest
Types ¶
type Controller ¶
type Controller struct { Client client.Client InfoManifestClientSet manifestClientSet.Interface ClientSet kubernetes.Interface LocalArtifactSetClientSet localartifactsetClientSet.Interface }
func (*Controller) EnsureGlobalInfoManifestBeingLatest ¶ added in v0.2.3
func (c *Controller) EnsureGlobalInfoManifestBeingLatest(latestInfoManifest *manifestv1alpha1.Manifest) (*manifestv1alpha1.Manifest, error)
func (*Controller) FetchGlobalInfoManifest ¶ added in v0.2.3
func (c *Controller) FetchGlobalInfoManifest() (*manifestv1alpha1.Manifest, error)
func (*Controller) FetchLatestInfoManifest ¶ added in v0.2.3
func (c *Controller) FetchLatestInfoManifest() (*manifestv1alpha1.Manifest, error)
FetchLatestInfoManifest , get infomanifest exclude the global-infomanifest.
func (*Controller) FetchLocalServiceCM ¶ added in v0.2.3
func (c *Controller) FetchLocalServiceCM(namespace string) (*corev1.ConfigMap, error)
func (*Controller) IsOnlineENV ¶ added in v0.4.1
func (c *Controller) IsOnlineENV() bool
IsOnlineENV indicates what the running env is onLine or air-gap.
func (*Controller) ParseConfigMapToLocalService ¶ added in v0.2.3
func (c *Controller) ParseConfigMapToLocalService(localServiceConfigMap *corev1.ConfigMap) (*manifestv1alpha1.LocalService, error)
func (*Controller) Reconcile ¶
func (c *Controller) Reconcile(ctx context.Context, req controllerruntime.Request) (controllerruntime.Result, error)
func (*Controller) SetupWithManager ¶
func (c *Controller) SetupWithManager(mgr controllerruntime.Manager) error
func (*Controller) UpdateGlobalLocalService ¶ added in v0.2.3
func (c *Controller) UpdateGlobalLocalService()
func (*Controller) UpdateLocalAvailableImage ¶ added in v0.2.3
func (c *Controller) UpdateLocalAvailableImage()
UpdateLocalAvailableImage update image infos to global-infomanifest-cr.
Click to show internal directories.
Click to hide internal directories.