Documentation ¶
Index ¶
Constants ¶
const (
DefaultFetchInterval = 15 * time.Second
)
Variables ¶
var (
Scheme = runtime.NewScheme()
)
Functions ¶
This section is empty.
Types ¶
type NodeConfigReconciler ¶
type NodeConfigReconciler struct { client.Client Scheme *runtime.Scheme // SecretClient is used to get namespace scoped Secrets. // See: NodeConfigReconciler.getBasicAuthFromSecret() SecretClient kubernetes.Interface MetricsCollector *metrics.Collector MetricsStore *metrics.Store }
NodeConfigReconciler reconciles a NodeConfig object.
NOTE: This reconciler is used in wao-metrics-adaptor instead of the controller. So RBAC rules below should be applied to wao-metrics-adaptor. kubebuilder:rbac:groups=wao.bitmedia.co.jp,resources=nodeconfigs,verbs=get;list;watch;create;update;patch;delete kubebuilder:rbac:groups=wao.bitmedia.co.jp,resources=nodeconfigs/status,verbs=get;update;patch kubebuilder:rbac:groups=wao.bitmedia.co.jp,resources=nodeconfigs/finalizers,verbs=update kubebuilder:rbac:groups=core,namespace=wao-system,resources=secrets,verbs=get
func (*NodeConfigReconciler) Reconcile ¶
func (r *NodeConfigReconciler) 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 (*NodeConfigReconciler) SetupWithManager ¶
func (r *NodeConfigReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.