Documentation ¶
Overview ¶
package discoverymanager implements the utility functions for the discovery manager controller
Index ¶
- Constants
- Variables
- type DiscoveryReconciler
- type PCValidator
- func (v *PCValidator) DecodePeeringCandidate(obj runtime.RawExtension) (pc *advertisementv1alpha1.PeeringCandidate, err error)
- func (v *PCValidator) Handle(ctx context.Context, req admission.Request) admission.Response
- func (v *PCValidator) HandleCreate(ctx context.Context, req admission.Request) admission.Response
- func (v *PCValidator) HandleDelete(ctx context.Context, req admission.Request) admission.Response
- func (v *PCValidator) HandleUpdate(ctx context.Context, req admission.Request) admission.Response
Constants ¶
const ( SERVER_ADDR = "http://localhost:14144/api" K8S_TYPE = "k8s-fluidos" DEFAULT_NAMESPACE = "default" CLIENT_ID = "topix.fluidos.eu" )
Variables ¶
var (
SERVER_ADDRESSES = []string{"http://localhost:14144/api"}
)
We define different server addresses, much more dynamic and less hardcoded
Functions ¶
This section is empty.
Types ¶
type DiscoveryReconciler ¶
DiscoveryReconciler reconciles a Discovery object
func (*DiscoveryReconciler) Reconcile ¶
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the Discovery object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.11.2/pkg/reconcile
func (*DiscoveryReconciler) SetupWithManager ¶
func (r *DiscoveryReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type PCValidator ¶
type PCValidator struct {
// contains filtered or unexported fields
}
func NewPCValidator ¶
func NewPCValidator(client client.Client) *PCValidator
func (*PCValidator) DecodePeeringCandidate ¶
func (v *PCValidator) DecodePeeringCandidate(obj runtime.RawExtension) (pc *advertisementv1alpha1.PeeringCandidate, err error)