Added fields to federationconfig and remove status of the resource
@@ -17,6 +17,8 @@ limitations under the License.
package v1alpha1
import (
+ "time"
+
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
@@ -29,12 +31,28 @@ import (
type FederationConfigSpec struct {
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
// Important: Run "kubebuilder generate" to regenerate code after modifying this file
+
+ LimitedScope bool `json:"limited-scope,omitempty"`
+ RegistryNamespace string `json:"registry-namespace,omitempty"`
+ ControllerDuration DurationConfig `json:"controller-duration,omitempty"`
+ LeaderElect LeaderElectConfig `json:"leader-elect,omitempty"`
+ FeatureGates []FeatureGatesConfig `json:"feature-gates,omitempty"`
}
-// FederationConfigStatus defines the observed state of FederationConfig
-type FederationConfigStatus struct {
- // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
- // Important: Run "kubebuilder generate" to regenerate code after modifying this file
+type DurationConfig struct {
+ AvailableDelay time.Duration `json:"available-delay,omitempty"`
+ UnavailableDelay time.Duration `json:"unavailable-delay,omitempty"`
+ ClusterMonitorPeriod time.Duration `json:"cluster-monitor-period,omitempty"`
+}
+type LeaderElectConfig struct {
+ LeaseDuration time.Duration `json:"lease-duration,omitempty"`
+ RenewDeadline time.Duration `json:"renew-deadline,omitempty"`
+ RetryPeriod time.Duration `json:"retry-period,omitempty"`
+ ResourceLock string `json:"resource-lock,omitempty"`
+}
+type FeatureGatesConfig struct {
+ Name string `json:"name,omitempty"`
+ Enabled bool `json:"enabled,omitempty"`
}
// +genclient
@@ -48,5 +66,4 @@ type FederationConfig struct {
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec FederationConfigSpec `json:"spec,omitempty"`
- Status FederationConfigStatus `json:"status,omitempty"`
}
