features

package
v0.24.1 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package features sets the feature gates that source-controller supports, and their default states.

Index

Constants

View Source
const (
	// GitManagedTransport implements a managed transport for GitRepository
	// objects that use the libgit2 implementation.
	//
	// When enabled, improves the reliability of libgit2 reconciliations,
	// by enforcing timeouts and ensuring libgit2 cannot hijack the process
	// and hang it indefinitely.
	GitManagedTransport = "GitManagedTransport"
)

Variables

This section is empty.

Functions

func Enabled

func Enabled(feature string) (bool, error)

Enabled verifies whether the feature is enabled or not.

This is only a wrapper around the Enabled func in pkg/runtime/features, so callers won't need to import both packages for checking whether a feature is enabled.

func FeatureGates

func FeatureGates() map[string]bool

DefaultFeatureGates contains a list of all supported feature gates and their default values.

Types

This section is empty.

Jump to

Keyboard shortcuts

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