dscinitialization

package
v2.21.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 49 Imported by: 0

Documentation

Overview

Package dscinitialization contains controller logic of CRD DSCInitialization.

Index

Constants

This section is empty.

Variables

View Source
var (
	ComponentName = "monitoring"

	NameConsoleLink      = "console"
	NamespaceConsoleLink = "openshift-console"
)
View Source
var CMContentChangedPredicate = predicate.Funcs{
	UpdateFunc: func(e event.UpdateEvent) bool {
		oldCM, _ := e.ObjectOld.(*corev1.ConfigMap)
		newCM, _ := e.ObjectNew.(*corev1.ConfigMap)

		return !reflect.DeepEqual(oldCM.Data, newCM.Data)
	},
}
View Source
var DSCDeletionPredicate = predicate.Funcs{
	DeleteFunc: func(e event.DeleteEvent) bool {
		return true
	},
}
View Source
var SecretContentChangedPredicate = predicate.Funcs{
	UpdateFunc: func(e event.UpdateEvent) bool {
		oldSecret, _ := e.ObjectOld.(*corev1.Secret)
		newSecret, _ := e.ObjectNew.(*corev1.Secret)

		return !reflect.DeepEqual(oldSecret.Data, newSecret.Data)
	},
}
View Source
var Templates = struct {
	// ServiceMeshDir is the path to the Service Mesh templates.
	ServiceMeshDir string
	// AuthorinoDir is the path to the Authorino templates.
	AuthorinoDir string
	// MetricsDir is the path to the Metrics Collection templates.
	MetricsDir string
	// Location specifies the file system that contains the templates to be used.
	Location fs.FS
	// BaseDir is the path to the base of the embedded FS
	BaseDir string
}{
	ServiceMeshDir: path.Join(baseDir, "servicemesh"),
	AuthorinoDir:   path.Join(baseDir, "authorino"),
	MetricsDir:     path.Join(baseDir, "metrics-collection"),
	Location:       dsciEmbeddedFS,
	BaseDir:        baseDir,
}

Functions

func CompareNotebookNetworkPolicies

func CompareNotebookNetworkPolicies(np1 networkingv1.NetworkPolicy, np2 networkingv1.NetworkPolicy) bool

CompareNotebookNetworkPolicies checks if two services are equal, if not return false.

func GenerateRandomHex

func GenerateRandomHex(length int) ([]byte, error)

Types

type DSCInitializationReconciler

type DSCInitializationReconciler struct {
	client.Client
	Scheme                *runtime.Scheme
	Recorder              record.EventRecorder
	ApplicationsNamespace string
}

DSCInitializationReconciler reconciles a DSCInitialization object.

func (*DSCInitializationReconciler) Reconcile

Reconcile contains controller logic specific to DSCInitialization instance updates.

func (*DSCInitializationReconciler) SetupWithManager

func (r *DSCInitializationReconciler) SetupWithManager(ctx context.Context, 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