infomanifest

package
v0.12.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const LocalServiceConfigMap = "kubean-localservice"
View Source
const Loop = time.Second * 30

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	Client                    client.Client
	InfoManifestClientSet     manifestClientSet.Interface
	ClientSet                 kubernetes.Interface
	LocalArtifactSetClientSet localartifactsetClientSet.Interface
}

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 (*Controller) SetupWithManager

func (c *Controller) SetupWithManager(mgr controllerruntime.Manager) error

func (*Controller) Start

func (c *Controller) Start(ctx context.Context) error

func (*Controller) UpdateLocalAvailableImage added in v0.2.3

func (c *Controller) UpdateLocalAvailableImage(manifests []manifestv1alpha1.Manifest)

UpdateLocalAvailableImage update image infos into status.

func (*Controller) UpdateLocalService added in v0.11.0

func (c *Controller) UpdateLocalService(manifests []manifestv1alpha1.Manifest) bool

UpdateLocalService sync the content of local-service configmap into spec.

type VersionedManifest added in v0.11.0

type VersionedManifest struct {
	Manifests map[string][]*manifestv1alpha1.Manifest
	// contains filtered or unexported fields
}

func GetVersionedManifest added in v0.11.0

func GetVersionedManifest() *VersionedManifest

func (*VersionedManifest) Op added in v0.11.0

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL