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 ¶
Types ¶
type DSCInitializationReconciler ¶
type DSCInitializationReconciler struct { client.Client Scheme *runtime.Scheme Recorder record.EventRecorder ApplicationsNamespace string }
DSCInitializationReconciler reconciles a DSCInitialization object.
func (*DSCInitializationReconciler) Reconcile ¶
func (r *DSCInitializationReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile contains controller logic specific to DSCInitialization instance updates.
func (*DSCInitializationReconciler) SetupWithManager ¶
SetupWithManager sets up the controller with the Manager.
Click to show internal directories.
Click to hide internal directories.