applicationcontroller

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: MIT Imports: 43 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AnnotationKeyLinkPrefix = "link.argocd.argoproj.io/external-link"
)

Variables

View Source
var GroupKindFromControllerResource = map[string]metav1.GroupKind{
	"deployment": {
		Group: "apps",
		Kind:  string(DEPLOYMENT),
	},
	"pod": {
		Group: "",
		Kind:  string(POD),
	},
	"service": {
		Group: "",
		Kind:  string(SERVICE),
	},
	"serviceaccount": {
		Group: "",
		Kind:  string(SERVICEACCOUNT),
	},
	"configmaps": {
		Group: "",
		Kind:  string(CONFIGMAP),
	},
	"networkpolicy": {
		Group: "networking.k8s.io",
		Kind:  string(NETWORKPOLICY),
	},
	"gateway": {
		Group: "networking.istio.io",
		Kind:  string(GATEWAY),
	},
	"serviceentry": {
		Group: "networking.istio.io",
		Kind:  string(SERVICEENTRY),
	},
	"virtualservice": {
		Group: "networking.istio.io",
		Kind:  string(VIRTUALSERVICE),
	},
	"peerauthentication": {
		Group: "security.istio.io",
		Kind:  string(PEERAUTHENTICATION),
	},
	"horizontalpodautoscaler": {
		Group: "autoscaling",
		Kind:  string(HORIZONTALPODAUTOSCALER),
	},
	"certificate": {
		Group: "cert-manager.io",
		Kind:  string(CERTIFICATE),
	},
	"authorizationpolicy": {
		Group: "security.istio.io",
		Kind:  string(AUTHORIZATIONPOLICY),
	},
}

Functions

func ValidateIngresses added in v1.0.0

func ValidateIngresses(application *skiperatorv1alpha1.Application) error

Types

type ApplicationReconciler

type ApplicationReconciler struct {
	util.ReconcilerBase
}

func (*ApplicationReconciler) GetSkiperatorOwnedCertificates

func (r *ApplicationReconciler) GetSkiperatorOwnedCertificates(context context.Context) (certmanagerv1.CertificateList, error)

func (*ApplicationReconciler) IsApplicationsCertificate

func (r *ApplicationReconciler) IsApplicationsCertificate(context context.Context, application skiperatorv1alpha1.Application, certificate certmanagerv1.Certificate) bool

func (*ApplicationReconciler) Reconcile

func (*ApplicationReconciler) SetControllerError added in v1.0.0

func (r *ApplicationReconciler) SetControllerError(context context.Context, app *skiperatorv1alpha1.Application, controller string, issue error) (reconcile.Result, error)

func (*ApplicationReconciler) SetControllerFinishedOutcome added in v1.0.0

func (r *ApplicationReconciler) SetControllerFinishedOutcome(context context.Context, app *skiperatorv1alpha1.Application, controllerName string, issue error) (reconcile.Result, error)

func (*ApplicationReconciler) SetControllerPending added in v1.0.0

func (r *ApplicationReconciler) SetControllerPending(context context.Context, app *skiperatorv1alpha1.Application, controller string) (reconcile.Result, error)

func (*ApplicationReconciler) SetControllerProgressing added in v1.0.0

func (r *ApplicationReconciler) SetControllerProgressing(context context.Context, app *skiperatorv1alpha1.Application, controller string) (reconcile.Result, error)

func (*ApplicationReconciler) SetControllerSynced added in v1.0.0

func (r *ApplicationReconciler) SetControllerSynced(context context.Context, app *skiperatorv1alpha1.Application, controller string) (reconcile.Result, error)

func (*ApplicationReconciler) SetLabelsFromApplication added in v1.0.0

func (r *ApplicationReconciler) SetLabelsFromApplication(object client.Object, app skiperatorv1alpha1.Application)

func (*ApplicationReconciler) SetupWithManager

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

func (*ApplicationReconciler) SkiperatorOwnedCertRequests

func (r *ApplicationReconciler) SkiperatorOwnedCertRequests(_ context.Context, obj client.Object) []reconcile.Request

type Config

type Config struct {
	Type                           string           `json:"type"`
	Audience                       string           `json:"audience"`
	ServiceAccountImpersonationUrl string           `json:"service_account_impersonation_url"`
	SubjectTokenType               string           `json:"subject_token_type"`
	TokenUrl                       string           `json:"token_url"`
	CredentialSource               CredentialSource `json:"credential_source"`
}

type ControllerResources added in v1.0.0

type ControllerResources string
const (
	DEPLOYMENT              ControllerResources = "Deployment"
	POD                     ControllerResources = "Pod"
	SERVICE                 ControllerResources = "Service"
	SERVICEACCOUNT          ControllerResources = "ServiceAccount"
	CONFIGMAP               ControllerResources = "ConfigMap"
	NETWORKPOLICY           ControllerResources = "NetworkPolicy"
	GATEWAY                 ControllerResources = "Gateway"
	SERVICEENTRY            ControllerResources = "ServiceEntry"
	VIRTUALSERVICE          ControllerResources = "VirtualService"
	PEERAUTHENTICATION      ControllerResources = "PeerAuthentication"
	HORIZONTALPODAUTOSCALER ControllerResources = "HorizontalPodAutoscaler"
	CERTIFICATE             ControllerResources = "Certificate"
	AUTHORIZATIONPOLICY     ControllerResources = "AuthorizationPolicy"
)

type CredentialSource

type CredentialSource struct {
	File string `json:"file"`
}

Jump to

Keyboard shortcuts

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