containerizedworkload

package
v1.1.13 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2021 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ServiceInjector

func ServiceInjector(ctx context.Context, w oam.Workload, objs []oam.Object) ([]oam.Object, error)

ServiceInjector adds a Service object for the first Port on the first Container for the first Deployment observed in a workload translation.

func Setup

func Setup(mgr ctrl.Manager, _ controller.Args) error

Setup adds a controller that reconciles ContainerizedWorkload.

func TranslateConfigMaps

func TranslateConfigMaps(ctx context.Context, w oam.Object) ([]*corev1.ConfigMap, error)

TranslateConfigMaps translate non-secret ContainerConfigFile into ConfigMaps

func TranslateContainerWorkload

func TranslateContainerWorkload(ctx context.Context, w oam.Workload) ([]oam.Object, error)

TranslateContainerWorkload translates a ContainerizedWorkload into a Deployment. nolint:gocyclo

Types

type Reconciler

type Reconciler struct {
	client.Client

	Scheme *runtime.Scheme
	// contains filtered or unexported fields
}

Reconciler reconciles a ContainerizedWorkload object

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile reconciles a ContainerizedWorkload object +kubebuilder:rbac:groups=core.oam.dev,resources=containerizedworkloads,verbs=get;list;watch +kubebuilder:rbac:groups=core.oam.dev,resources=containerizedworkloads/status,verbs=get;update;patch +kubebuilder:rbac:groups=apps,resources=deployments,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=core,resources=services,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=core,resources=configmaps,verbs=get;list;watch;create;update;patch;delete

func (*Reconciler) SetupWithManager

func (r *Reconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager setups up k8s controller.

func (*Reconciler) UpdateStatus added in v0.3.3

func (r *Reconciler) UpdateStatus(ctx context.Context, workload *v1alpha2.ContainerizedWorkload, opts ...client.UpdateOption) error

UpdateStatus updates v1alpha2.ContainerizedWorkload's Status with retry.RetryOnConflict

Jump to

Keyboard shortcuts

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