1- // Copyright 2022-2023 FLUIDOS Project
1+ // Copyright 2022-2024 FLUIDOS Project
22//
33// Licensed under the Apache License, Version 2.0 (the "License");
44// you may not use this file except in compliance with the License.
@@ -23,7 +23,7 @@ import (
2323// EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN!
2424// NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized.
2525
26- // DiscoverySpec defines the desired state of Discovery
26+ // DiscoverySpec defines the desired state of Discovery.
2727type DiscoverySpec struct {
2828
2929 // This is the Solver ID of the solver that creates and so asks for the discovery.
@@ -32,14 +32,14 @@ type DiscoverySpec struct {
3232
3333 // This is the FlavourSelector that describes the characteristics of the intent that the solver is looking to satisfy
3434 // This pattern corresponds to what has been defined in the REAR Protocol to do a discovery with a selector
35- Selector * nodecorev1alpha1.FlavourSelector `json:"selector"`
35+ Selector * nodecorev1alpha1.Selector `json:"selector"`
3636
3737 // This flag indicates that needs to be established a subscription to the provider in case a match is found.
38- // In order to have periodic updates of the status of the matching Flavour
38+ // In order to have periodic updates of the status of the matching Flavor
3939 Subscribe bool `json:"subscribe"`
4040}
4141
42- // DiscoveryStatus defines the observed state of Discovery
42+ // DiscoveryStatus defines the observed state of Discovery.
4343type DiscoveryStatus struct {
4444
4545 // This is the current phase of the discovery
@@ -52,13 +52,13 @@ type DiscoveryStatus struct {
5252//+kubebuilder:object:root=true
5353//+kubebuilder:subresource:status
5454
55+ // Discovery is the Schema for the discoveries API.
5556// +kubebuilder:printcolumn:name="Solver ID",type=string,JSONPath=`.spec.solverID`
5657// +kubebuilder:printcolumn:name="Subscribe",type=boolean,JSONPath=`.spec.subscribe`
5758// +kubebuilder:printcolumn:name="PC Namespace",type=string,JSONPath=`.status.peeringCandidate.namespace`
5859// +kubebuilder:printcolumn:name="PC Name",type=string,JSONPath=`.status.peeringCandidate.name`
5960// +kubebuilder:printcolumn:name="Status",type=string,JSONPath=`.status.phase.phase`
6061// +kubebuilder:printcolumn:name="Message",type=string,JSONPath=`.status.phase.message`
61- // Discovery is the Schema for the discoveries API
6262type Discovery struct {
6363 metav1.TypeMeta `json:",inline"`
6464 metav1.ObjectMeta `json:"metadata,omitempty"`
@@ -69,7 +69,7 @@ type Discovery struct {
6969
7070//+kubebuilder:object:root=true
7171
72- // DiscoveryList contains a list of Discovery
72+ // DiscoveryList contains a list of Discovery.
7373type DiscoveryList struct {
7474 metav1.TypeMeta `json:",inline"`
7575 metav1.ListMeta `json:"metadata,omitempty"`
0 commit comments