dscinitialization

package
v2.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 48 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
	// InstallDir is the path to the Serving install templates.
	AuthorinoDir string
	// GatewaysDir is the path to the Serving Istio gateways templates.
	MetricsDir string
	// Source the templates to be used
	Source 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"),
	Source:         dsciEmbeddedFS,
	BaseDir:        baseDir,
}

Functions

func CompareNotebookNetworkPolicies

func CompareNotebookNetworkPolicies(np1 netv1.NetworkPolicy, np2 netv1.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
	Log                   logr.Logger
	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(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