extensions

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

The extension package is a package to aid local customizations of handlers. Every user of this operator might have custom needs for operating in the local environment (e.g., node selectors, spacial tags, etc.). In order to overload the `Subset` object with all possible customizations, we created this package that does not contain any implementations, just empty functions to be called from within specific points in the `Reconcile` loop. If a company has spacial requirements, it can populate these functions in a local fork of the repository. While it still forces the company to handle merges, the merges are in a specific package where chances of merge conflicts are reduced to effectively zero.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtendOverridingDeployment

func ExtendOverridingDeployment(deployment *appsv1.Deployment, data DeploymentExtensionData) error

ExtendOverridingDeployment is a function that could be used to customize the overriding deployment. Optionally, using the `DeploymentExtensionData` data, you can overwrite parts of the `deployment` ref.

Types

type DeploymentExtensionData

type DeploymentExtensionData struct {
	// The deployment we should use as base
	BaseDeployment *appsv1.Deployment
	// The DynamicEnv matchers
	Matches []riskifiedv1alpha1.IstioMatch
	// The subset that contains the data of our deployment
	Subset riskifiedv1alpha1.Subset
}

DeploymentExtensionData contains handler context data to be passed to the extension methods that might be required by the extension method.

Jump to

Keyboard shortcuts

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