Help us shape the future of Go! Take the 2026 Go Developer Survey

gitopspromoter

package
v0.0.0-...-0ebdf97 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2026 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Overview

Package gitopspromoter handles reconcilation related to the GitOps Promoter

Package gitopspromoter handles reconcilation related to the GitOps Promoter

Index

Constants

View Source
const (
	// APIServerAPIServiceGroupPriorityMinimum defines the GroupPriorityMinimum for the API Service
	APIServerAPIServiceGroupPriorityMinimum = 1000
	// APIServerAPIServiceVersionPriority defines the VersionPriority for the API Service
	APIServerAPIServiceVersionPriority = 15
)
View Source
const (
	// ControllerWebhookPort is the port for the webhook service
	ControllerWebhookPort = 3333
	// ControllerWebhookProtocol is the protocol for the webhook service
	ControllerWebhookProtocol = corev1.ProtocolTCP
	// APIServerPortName is the name of the port for the apiserver service
	APIServerPortName = "https"
	// APIServerPort is the port used by the api server service
	APIServerPort = 443
	// APIServerTargetPort is the target port for the apiserver service
	APIServerTargetPort = "https"
	// APIServerProtocol is the protocol used for the port in the apiserver service
	APIServerProtocol = corev1.ProtocolTCP
)
View Source
const (
	// EnvGitOpsPromoterImage is the environment variable that controls the default image used for the GitOps Promoter if not
	// specified in the CR
	EnvGitOpsPromoterImage = "GITOPS_PROMOTER_IMAGE"
)

Useful constants for the Promoter's Deployment

Variables

This section is empty.

Functions

func DeleteAPIServices

func DeleteAPIServices(c client.Client, apiSvcList *apiregistrationv1.APIServiceList, compName string, cr *argoproj.ArgoCD) error

DeleteAPIServices deletes a list of API Services

func DeleteControllerConfigurations

func DeleteControllerConfigurations(c client.Client, controllerConfigList *promoter.ControllerConfigurationList) error

DeleteControllerConfigurations deletes a list of ControllerConfigurations

func ReconcilePromoterAPIServerAPIService

func ReconcilePromoterAPIServerAPIService(client client.Client, compName string, cr *argoproj.ArgoCD) (*apiregistrationv1.APIService, error)

ReconcilePromoterAPIServerAPIService reconciles the API Server's APIService, handles all creation, updates, and deletion

func ReconcilePromoterAPIServerClusterRoleBindings

func ReconcilePromoterAPIServerClusterRoleBindings(client client.Client, compName string, sa *corev1.ServiceAccount, cr *argoproj.ArgoCD) ([]*rbacv1.ClusterRoleBinding, error)

ReconcilePromoterAPIServerClusterRoleBindings reconciles the ClusterRoleBindings for the API Server

func ReconcilePromoterAPIServerClusterRoles

func ReconcilePromoterAPIServerClusterRoles(client client.Client, compName string, cr *argoproj.ArgoCD) ([]*rbacv1.ClusterRole, error)

ReconcilePromoterAPIServerClusterRoles reconciles the ClusterRoles for the API Server

func ReconcilePromoterAPIServerDeployment

func ReconcilePromoterAPIServerDeployment(client client.Client, compName string, sa *corev1.ServiceAccount, cr *argoproj.ArgoCD, scheme *runtime.Scheme) (*appsv1.Deployment, error)

ReconcilePromoterAPIServerDeployment reconciles the Promoter's API Server Deployment Calls the generic ReconcilePromoterDeployment function with the settings for the API Server

func ReconcilePromoterAPIServerRoleBindings

func ReconcilePromoterAPIServerRoleBindings(client client.Client, compName string, sa *corev1.ServiceAccount, cr *argoproj.ArgoCD) ([]*rbacv1.RoleBinding, error)

ReconcilePromoterAPIServerRoleBindings reconciles the RoleBindings for the API Server At the moment there is only one RoleBinding for the Promoter that lives in the kube-system namespace for API aggregation More Details: https://kubernetes.io/docs/concepts/extend-kubernetes/api-extension/apiserver-aggregation/

func ReconcilePromoterAPIServerService

func ReconcilePromoterAPIServerService(client client.Client, compName string, cr *argoproj.ArgoCD) (*corev1.Service, error)

ReconcilePromoterAPIServerService reconciles the Promoter's Service for the API Server

func ReconcilePromoterClusterRole

func ReconcilePromoterClusterRole(client client.Client, compName, name string, expectedPolicyRule []rbacv1.PolicyRule, cr *argoproj.ArgoCD, enabled bool) (*rbacv1.ClusterRole, error)

ReconcilePromoterClusterRole is a generic ClusterRole reconcilation function that reconciles a ClusterRole based on the provided PolicyRule

func ReconcilePromoterClusterRoleBinding

func ReconcilePromoterClusterRoleBinding(client client.Client, compName, bindingName, roleRefName string, sa *corev1.ServiceAccount, cr *argoproj.ArgoCD, enabled bool) (*rbacv1.ClusterRoleBinding, error)

ReconcilePromoterClusterRoleBinding is a generic reconcilation function for ClusterRoleBindings based on the provided name and role reference

func ReconcilePromoterControllerClusterRoleBindings

func ReconcilePromoterControllerClusterRoleBindings(client client.Client, compName string, sa *corev1.ServiceAccount, cr *argoproj.ArgoCD) ([]*rbacv1.ClusterRoleBinding, error)

ReconcilePromoterControllerClusterRoleBindings reconciles the ClusterRoleBinding for the controller

func ReconcilePromoterControllerClusterRoles

func ReconcilePromoterControllerClusterRoles(client client.Client, compName string, cr *argoproj.ArgoCD) ([]*rbacv1.ClusterRole, error)

ReconcilePromoterControllerClusterRoles reconciles the ClusterRoles for the Controller

func ReconcilePromoterControllerConfiguration

func ReconcilePromoterControllerConfiguration(client client.Client, compName string, cr *argoproj.ArgoCD) (*promoter.ControllerConfiguration, error)

ReconcilePromoterControllerConfiguration reconciles the Promoter's ControllerConfiguration. It handles creation, updating, and deletion.

func ReconcilePromoterControllerDeployment

func ReconcilePromoterControllerDeployment(client client.Client, compName string, sa *corev1.ServiceAccount, cr *argoproj.ArgoCD, scheme *runtime.Scheme) (*appsv1.Deployment, error)

ReconcilePromoterControllerDeployment reconciles the Promoter's Controller Deployment Calls the generic ReconcilePromoterDeployment function with the settings for the Controller

func ReconcilePromoterControllerWebhookService

func ReconcilePromoterControllerWebhookService(client client.Client, compName string, cr *argoproj.ArgoCD) (*corev1.Service, error)

ReconcilePromoterControllerWebhookService reconciles the Promoter's Controller Service for the webhook

func ReconcilePromoterDeployment

func ReconcilePromoterDeployment(client client.Client, compName string, sa *corev1.ServiceAccount, cr *argoproj.ArgoCD, scheme *runtime.Scheme, cfg deploymentConfig, enabled bool) (*appsv1.Deployment, error)

ReconcilePromoterDeployment is a generic reconcilation function for Promoter Deployments. Handles creation, updating, and deletion. Specific settings are determined by the provided deploymentConfig

func ReconcilePromoterRoleBinding

func ReconcilePromoterRoleBinding(client client.Client, compName, bindingName, roleRefName string, sa *corev1.ServiceAccount, cr *argoproj.ArgoCD, enabled, allowed bool) (*rbacv1.RoleBinding, error)

ReconcilePromoterRoleBinding is a generic reconcilation function for RoleBindings based on the provided name and role reference

func ReconcilePromoterService

func ReconcilePromoterService(client client.Client, compName string, cr *argoproj.ArgoCD, expectedSpec corev1.ServiceSpec, enabled bool) (*corev1.Service, error)

ReconcilePromoterService is a generic reconcilation function for Services and reconciles based on the provided spec. Handles creation, updating, and deletion.

func ReconcilePromoterServiceAccount

func ReconcilePromoterServiceAccount(client client.Client, compName string, cr *argoproj.ArgoCD, scheme *runtime.Scheme, enabled bool, imagePullSecrets []corev1.LocalObjectReference) (*corev1.ServiceAccount, error)

ReconcilePromoterServiceAccount reconciles a ServiceAccount needed for the Promoter's workloads. Handles creation, updating, and deletion.

Types

This section is empty.

Jump to

Keyboard shortcuts

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