intents_reconcilers

package
v0.1.15 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KafkaACLsFinalizerName                  = "intents.otterize.com/kafka-finalizer"
	ReasonCouldNotConnectToKafkaServer      = "CouldNotConnectToKafkaServer"
	ReasonCouldNotApplyIntentsOnKafkaServer = "CouldNotApplyIntentsOnKafkaServer"
	ReasonKafkaACLCreationDisabled          = "KafkaACLCreationDisabled"
	ReasonKafkaServerNotConfigured          = "KafkaServerNotConfigured"
	ReasonRemovingKafkaACLsFailed           = "RemovingKafkaACLsFailed"
	ReasonApplyingKafkaACLsFailed           = "ApplyingKafkaACLsFailed"
	ReasonAppliedKafkaACLs                  = "AppliedKafkaACLs"
)
View Source
const (
	ReasonEnforcementGloballyDisabled   = "EnforcementGloballyDisabled"
	ReasonNetworkPolicyCreationDisabled = "NetworkPolicyCreationDisabled"
	ReasonGettingNetworkPolicyFailed    = "GettingNetworkPolicyFailed"
	ReasonRemovingNetworkPolicyFailed   = "RemovingNetworkPolicyFailed"
	ReasonNamespaceNotAllowed           = "NamespaceNotAllowed"
	ReasonCreatingNetworkPoliciesFailed = "CreatingNetworkPoliciesFailed"
	ReasonCreatedNetworkPolicies        = "CreatedNetworkPolicies"
)
View Source
const (
	ReasonRemovingPodLabelsFailed = "RemovingPodLabelsFailed"
	ReasonUpdatePodFailed         = "UpdatePodFailed"
	ReasonListPodsFailed          = "ListPodsFailed"
)
View Source
const PodLabelFinalizerName = "intents.otterize.com/pods-finalizer"

Variables

This section is empty.

Functions

func MatchSaramaResource

func MatchSaramaResource(s SaramaResource) gomock.Matcher

Types

type KafkaACLReconciler

type KafkaACLReconciler struct {
	KafkaServersStore kafkaacls.ServersStore

	injectablerecorder.InjectableRecorder
	// contains filtered or unexported fields
}

func NewKafkaACLReconciler

func NewKafkaACLReconciler(client client.Client, scheme *runtime.Scheme, serversStore kafkaacls.ServersStore, enableKafkaACLCreation bool, factoryFunc kafkaacls.IntentsAdminFactoryFunction, enforcementEnabledGlobally bool) *KafkaACLReconciler

func (*KafkaACLReconciler) Reconcile

func (r *KafkaACLReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*KafkaACLReconciler) RemoveACLs

func (r *KafkaACLReconciler) RemoveACLs(intents *otterizev1alpha2.ClientIntents) error

type NetworkPolicyReconciler

type NetworkPolicyReconciler struct {
	client.Client
	Scheme *runtime.Scheme

	RestrictToNamespaces []string

	injectablerecorder.InjectableRecorder
	// contains filtered or unexported fields
}

func NewNetworkPolicyReconciler

func NewNetworkPolicyReconciler(
	c client.Client,
	s *runtime.Scheme,
	endpointsReconciler *external_traffic.EndpointsReconciler,
	restrictToNamespaces []string,
	enableNetworkPolicyCreation bool,
	enforcementEnabledGlobally bool) *NetworkPolicyReconciler

func (*NetworkPolicyReconciler) Reconcile

func (r *NetworkPolicyReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

type PodLabelReconciler

type PodLabelReconciler struct {
	client.Client
	Scheme *runtime.Scheme
	injectablerecorder.InjectableRecorder
}

func NewPodLabelReconciler

func NewPodLabelReconciler(c client.Client, s *runtime.Scheme) *PodLabelReconciler

func (*PodLabelReconciler) Reconcile

func (r *PodLabelReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

type SaramaResource

type SaramaResource []*sarama.ResourceAcls

func (*SaramaResource) Matches

func (s *SaramaResource) Matches(arg interface{}) bool

func (*SaramaResource) String

func (s *SaramaResource) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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