rollouts

package
v0.0.5 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: 32 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// ArgoRolloutsImageEnvName is an environment variable that can be used to deploy a
	// Custom Image of rollouts controller.
	ArgoRolloutsImageEnvName = "ARGO_ROLLOUTS_IMAGE"

	// DefaultArgoRolloutsMetricsServiceName is the default name for rollouts metrics Service.
	DefaultArgoRolloutsMetricsServiceName = "argo-rollouts-metrics"

	// ArgoRolloutsDefaultImage is the default image for rollouts controller.
	DefaultArgoRolloutsImage = "quay.io/argoproj/argo-rollouts"

	// ArgoRolloutsDefaultVersion is the default version for the Rollouts controller.
	DefaultArgoRolloutsVersion = "v1.7.2" // v1.7.2

	// DefaultArgoRolloutsResourceName is the default name for Rollouts controller resources such as
	// deployment, service, role, rolebinding and serviceaccount.
	DefaultArgoRolloutsResourceName = "argo-rollouts"

	// DefaultRolloutsNotificationSecretName is the default name for rollout controller secret resource.
	DefaultRolloutsNotificationSecretName = "argo-rollouts-notification-secret" // #nosec G101

	// DefaultRolloutsServiceSelectorKey is key used by selector
	DefaultRolloutsSelectorKey = "app.kubernetes.io/name"

	// OpenShiftRolloutPluginName is the plugin name for Openshift Route Plugin
	OpenShiftRolloutPluginName = "argoproj-labs/openshift"

	// DefaultRolloutsConfigMapName is the default name of the ConfigMap that contains the Rollouts controller configuration
	DefaultRolloutsConfigMapName = "argo-rollouts-config"

	DefaultOpenShiftRoutePluginURL = "" /* 190-byte string literal not displayed */

	// NamespaceScopedArgoRolloutsController is an environment variable that can be used to configure scope of Argo Rollouts controller
	// Set true to allow only namespace-scoped Argo Rollouts controller deployment and false for cluster-scoped
	NamespaceScopedArgoRolloutsController = "NAMESPACE_SCOPED_ARGO_ROLLOUTS"

	// ClusterScopedArgoRolloutsNamespaces is an environment variable that can be used to configure namespaces that are allowed to host cluster-scoped Argo Rollouts
	ClusterScopedArgoRolloutsNamespaces = "CLUSTER_SCOPED_ARGO_ROLLOUTS_NAMESPACES"

	KubernetesHostnameLabel = "kubernetes.io/hostname"

	TopologyKubernetesZoneLabel = "topology.kubernetes.io/zone"
)
View Source
const (
	UnsupportedRolloutManagerConfiguration          = "" /* 151-byte string literal not displayed */
	UnsupportedRolloutManagerClusterScoped          = "" /* 217-byte string literal not displayed */
	UnsupportedRolloutManagerNamespaceScoped        = "" /* 202-byte string literal not displayed */
	UnsupportedRolloutManagerClusterScopedNamespace = "" /* 274-byte string literal not displayed */
)
View Source
const MetricPluginConfigMapKey = "metricPlugins"
View Source
const TrafficRouterPluginConfigMapKey = "trafficRouterPlugins"

From https://argo-rollouts.readthedocs.io/en/stable/features/traffic-management/plugins/

Variables

This section is empty.

Functions

func GetAggregateToAdminPolicyRules added in v0.0.3

func GetAggregateToAdminPolicyRules() []rbacv1.PolicyRule

Returns PolicyRules for the Cluster Role argo-rollouts-aggregate-to-admin

func GetAggregateToEditPolicyRules added in v0.0.3

func GetAggregateToEditPolicyRules() []rbacv1.PolicyRule

Returns PolicyRules for the Cluster Role argo-rollouts-aggregate-to-edit

func GetAggregateToViewPolicyRules added in v0.0.3

func GetAggregateToViewPolicyRules() []rbacv1.PolicyRule

Returns PolicyRules for the Cluster Role argo-rollouts-aggregate-to-view

func GetPolicyRules

func GetPolicyRules() []rbacv1.PolicyRule

getPolicyRules returns the policy rules for Argo Rollouts Role.

Types

type RolloutManagerReconciler

type RolloutManagerReconciler struct {
	client.Client
	Scheme                       *runtime.Scheme
	OpenShiftRoutePluginLocation string

	// NamespaceScopedArgoRolloutsController is used to configure scope of Argo Rollouts controller
	// If value is true then deploy namespace-scoped Argo Rollouts controller else cluster-scoped
	NamespaceScopedArgoRolloutsController bool
}

RolloutManagerReconciler reconciles a RolloutManager object

func (*RolloutManagerReconciler) Reconcile

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/[email protected]/pkg/reconcile

func (*RolloutManagerReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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