controllers

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: Apache-2.0 Imports: 56 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSecretToken

func GetSecretToken(ctx context.Context, client client.Client, namespace string, ref v1alpha1.SecretRef) (string, error)

func MergeMap

func MergeMap(a, b map[string]interface{})

func MergeMap2

func MergeMap2(a, b map[string]interface{}, skipNil bool)

func NewJinja2

func NewJinja2(opts ...jinja2.Jinja2Opt) (*jinja2.Jinja2, error)

func Sha256Bytes

func Sha256Bytes(data []byte) string

func Sha256String

func Sha256String(data string) string

func TestAnnotationPredicate added in v0.9.0

func TestAnnotationPredicate() predicate.Predicate

Types

type BaseTemplateReconciler

type BaseTemplateReconciler struct {
	client.Client

	RawWatchContext context.Context

	Manager      manager.Manager
	Scheme       *runtime.Scheme
	FieldManager string
	// contains filtered or unexported fields
}

type GitProjectorReconciler

type GitProjectorReconciler struct {
	client.Client
	Scheme *runtime.Scheme

	FieldManager string
	TmpBaseDir   string
	// contains filtered or unexported fields
}

GitProjectorReconciler reconciles a GitProjector object

func (*GitProjectorReconciler) Reconcile

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

func (*GitProjectorReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type ListGithubPullRequestsReconciler

type ListGithubPullRequestsReconciler struct {
	client.Client
	Scheme       *runtime.Scheme
	FieldManager string
}

ListGithubPullRequestsReconciler reconciles a ListGithubPullRequests object

func (*ListGithubPullRequestsReconciler) Reconcile

func (*ListGithubPullRequestsReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type ListGitlabMergeRequestsReconciler

type ListGitlabMergeRequestsReconciler struct {
	client.Client
	Scheme       *runtime.Scheme
	FieldManager string
}

ListGitlabMergeRequestsReconciler reconciles a ListGitlabMergeRequests object

func (*ListGitlabMergeRequestsReconciler) Reconcile

func (*ListGitlabMergeRequestsReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type ObjectTemplateReconciler

type ObjectTemplateReconciler struct {
	BaseTemplateReconciler
}

ObjectTemplateReconciler reconciles a ObjectTemplate object

func (*ObjectTemplateReconciler) Reconcile

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

Reconcile a resource

func (*ObjectTemplateReconciler) SetupWithManager

func (r *ObjectTemplateReconciler) SetupWithManager(mgr ctrl.Manager, concurrent int) error

SetupWithManager sets up the controller with the Manager.

type SubResourceFieldOwner

type SubResourceFieldOwner string

func (SubResourceFieldOwner) ApplyToSubResourcePatch

func (f SubResourceFieldOwner) ApplyToSubResourcePatch(opts *client.SubResourcePatchOptions)

func (SubResourceFieldOwner) ApplyToSubResourceUpdate

func (f SubResourceFieldOwner) ApplyToSubResourceUpdate(opts *client.SubResourceUpdateOptions)

type TextTemplateReconciler

type TextTemplateReconciler struct {
	BaseTemplateReconciler
}

TextTemplateReconciler reconciles a TextTemplate object

func (*TextTemplateReconciler) Reconcile

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

Reconcile a resource

func (*TextTemplateReconciler) SetupWithManager

func (r *TextTemplateReconciler) SetupWithManager(mgr ctrl.Manager, concurrent int) error

SetupWithManager sets up the controller with the Manager.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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