penguin/monok8s

k8s image for Mono Gateway Dev Kit

clitools/pkg/node/metadata.go

raw ยท 1068 bytes

package node

import (
    "context"

    "k8s.io/klog/v2"
)

func ApplyLocalNodeMetadataIfPossible(context.Context, *NodeContext) error {
    klog.Info("apply_local_node_metadata_if_possible: TODO implement node labels/annotations")
    return nil
}

func AllowSingleNodeScheduling(context.Context, *NodeContext) error {
    klog.Info("allow_single_node_scheduling: TODO implement control-plane taint removal")
    return nil
}

func SetHostnameIfNeeded(context.Context, *NodeContext) error {
    klog.Info("set_hostname_if_needed: TODO implement hostname and /etc/hostname reconciliation")
    return nil
}

func PrintSummary(context.Context, *NodeContext) error {
    klog.Info("print_summary: TODO emit final summary")
    return nil
}

func ReconcileControlPlane(context.Context, *NodeContext) error {
    klog.Info("reconcile_control_plane: TODO implement existing CP reconciliation")
    return nil
}

func ReconcileNode(context.Context, *NodeContext) error {
    klog.Info("reconcile_node: TODO implement existing joined node reconciliation")
    return nil
}