Documentation ¶
Index ¶
- Constants
- func NewGlobalInfoManifest(latestInfoManifest *kubeaninfomanifestv1alpha1.KubeanInfoManifest) *kubeaninfomanifestv1alpha1.KubeanInfoManifest
- type Controller
- func (c *Controller) EnsureGlobalInfoManifestBeingLatest(latestInfoManifest *kubeaninfomanifestv1alpha1.KubeanInfoManifest) (*kubeaninfomanifestv1alpha1.KubeanInfoManifest, error)
- func (c *Controller) FetchGlobalInfoManifest() (*kubeaninfomanifestv1alpha1.KubeanInfoManifest, error)
- func (c *Controller) FetchLatestInfoManifest() (*kubeaninfomanifestv1alpha1.KubeanInfoManifest, error)
- func (c *Controller) FetchLocalServiceCM(namespace string) (*corev1.ConfigMap, error)
- func (c *Controller) ParseConfigMapToLocalService(localServiceConfigMap *corev1.ConfigMap) (*kubeaninfomanifestv1alpha1.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 *kubeaninfomanifestv1alpha1.KubeanInfoManifest) *kubeaninfomanifestv1alpha1.KubeanInfoManifest
Types ¶
type Controller ¶
type Controller struct { client.Client InfoManifestClientSet kubeaninfomanifestClientSet.Interface ClientSet kubernetes.Interface }
func (*Controller) EnsureGlobalInfoManifestBeingLatest ¶ added in v0.2.3
func (c *Controller) EnsureGlobalInfoManifestBeingLatest(latestInfoManifest *kubeaninfomanifestv1alpha1.KubeanInfoManifest) (*kubeaninfomanifestv1alpha1.KubeanInfoManifest, error)
func (*Controller) FetchGlobalInfoManifest ¶ added in v0.2.3
func (c *Controller) FetchGlobalInfoManifest() (*kubeaninfomanifestv1alpha1.KubeanInfoManifest, error)
func (*Controller) FetchLatestInfoManifest ¶ added in v0.2.3
func (c *Controller) FetchLatestInfoManifest() (*kubeaninfomanifestv1alpha1.KubeanInfoManifest, 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) ParseConfigMapToLocalService ¶ added in v0.2.3
func (c *Controller) ParseConfigMapToLocalService(localServiceConfigMap *corev1.ConfigMap) (*kubeaninfomanifestv1alpha1.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()
Click to show internal directories.
Click to hide internal directories.