Documentation
¶
Index ¶
- Variables
- func CSINodeMatchesLINSTOR(csiNodeDriver *storagev1.CSINodeDriver, linstorNode *lapi.Node) bool
- func ClusterApiTLSCertManagerPatch(secretName string, issuer *cmmetav1.ObjectReference, dnsNames []string) ([]kusttypes.Patch, error)
- func ClusterApiTLSClientCertManagerPatch(certName, secretName string, issuer *cmmetav1.ObjectReference) ([]kusttypes.Patch, error)
- func ClusterApiTLSPatch(apiSecretName, clientSecretName string) ([]kusttypes.Patch, error)
- func ClusterCSIApiTLSPatch(controllerSecret, nodeSecret string) ([]kusttypes.Patch, error)
- func ClusterCSINodeSelectorPatch(selector map[string]string) ([]kusttypes.Patch, error)
- func ClusterLinstorInternalTLSCertManagerPatch(secretName string, issuer *cmmetav1.ObjectReference) ([]kusttypes.Patch, error)
- func ClusterLinstorInternalTLSPatch(secretName string) ([]kusttypes.Patch, error)
- func ClusterLinstorPassphrasePatch(secretName string) ([]kusttypes.Patch, error)
- func GetCSINodeDriverFromNode(csiNode *storagev1.CSINode) *storagev1.CSINodeDriver
- func PodReady(pod *corev1.Pod) bool
- func PullSecretPatch(secretName string) ([]kusttypes.Patch, error)
- func SatelliteCommonNodePatch(nodeName string) ([]kusttypes.Patch, error)
- func SatelliteHostPathVolumeEnvPatch(hostPaths []string) ([]kusttypes.Patch, error)
- func SatelliteHostPathVolumePatch(volumeName, hostPath string) ([]kusttypes.Patch, error)
- func SatelliteLinstorInternalTLSCertManagerPatch(secretName string, issuer *cmmetav1.ObjectReference) ([]kusttypes.Patch, error)
- func SatelliteLinstorInternalTLSPatch(secretName string) ([]kusttypes.Patch, error)
- type LinstorClusterReconciler
- type LinstorSatelliteReconciler
Constants ¶
This section is empty.
Variables ¶
View Source
var SatelliteNameReplacements = []kusttypes.ReplacementField{ {Replacement: kusttypes.Replacement{ Source: &kusttypes.SourceSelector{ ResId: resid.NewResId(resid.NewGvk("", "v1", "Pod"), "satellite"), FieldPath: "spec.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms.0.matchFields.0.values.0", }, Targets: []*kusttypes.TargetSelector{ { Select: &kusttypes.Selector{ResId: resid.NewResId(resid.NewGvk("", "v1", "Pod"), "satellite")}, FieldPaths: []string{"metadata.name"}, }, { Select: &kusttypes.Selector{ResId: resid.NewResIdKindOnly("ConfigMap", "")}, FieldPaths: []string{"metadata.name"}, Options: &kusttypes.FieldOptions{Delimiter: "-", Index: -1}, }, { Select: &kusttypes.Selector{ResId: resid.NewResId(resid.NewGvk("cert-manager.io", "v1", "Certificate"), "tls")}, FieldPaths: []string{"metadata.name"}, Options: &kusttypes.FieldOptions{Delimiter: "-", Index: -1}, }, { Select: &kusttypes.Selector{ResId: resid.NewResId(resid.NewGvk("cert-manager.io", "v1", "Certificate"), "tls")}, FieldPaths: []string{"spec.dnsNames.0"}, }, }, }}, }
SatelliteNameReplacements are the kustomize replacements for renaming resources for a single satellite.
Functions ¶
func CSINodeMatchesLINSTOR ¶
func CSINodeMatchesLINSTOR(csiNodeDriver *storagev1.CSINodeDriver, linstorNode *lapi.Node) bool
func ClusterApiTLSPatch ¶
func ClusterCSIApiTLSPatch ¶
func GetCSINodeDriverFromNode ¶
func GetCSINodeDriverFromNode(csiNode *storagev1.CSINode) *storagev1.CSINodeDriver
Types ¶
type LinstorClusterReconciler ¶
type LinstorClusterReconciler struct {
client.Client
Scheme *runtime.Scheme
Namespace string
PullSecret string
ImageVersions *imageversions.Config
Kustomizer *resources.Kustomizer
}
LinstorClusterReconciler reconciles a LinstorCluster object
func (*LinstorClusterReconciler) Reconcile ¶
func (r *LinstorClusterReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.
func (*LinstorClusterReconciler) SetupWithManager ¶
func (r *LinstorClusterReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type LinstorSatelliteReconciler ¶
type LinstorSatelliteReconciler struct {
client.Client
Scheme *runtime.Scheme
Namespace string
ImageVersions *imageversions.Config
Kustomizer *resources.Kustomizer
// contains filtered or unexported fields
}
LinstorSatelliteReconciler reconciles a LinstorSatellite object
func (*LinstorSatelliteReconciler) Reconcile ¶
func (r *LinstorSatelliteReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.
func (*LinstorSatelliteReconciler) SetupWithManager ¶
func (r *LinstorSatelliteReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
Click to show internal directories.
Click to hide internal directories.