Fix comment dot

This commit is contained in:
katexochen 2022-09-12 13:45:31 +02:00 committed by Paul Meyer
parent eb213878a2
commit fb7ceb5586
14 changed files with 39 additions and 39 deletions

View file

@ -10,7 +10,7 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
// AutoscalingStrategySpec defines the desired state of AutoscalingStrategy
// AutoscalingStrategySpec defines the desired state of AutoscalingStrategy.
type AutoscalingStrategySpec struct {
// Enabled defines whether cluster autoscaling should be enabled or not.
Enabled bool `json:"enabled"`
@ -20,7 +20,7 @@ type AutoscalingStrategySpec struct {
DeploymentNamespace string `json:"deploymentNamespace"`
}
// AutoscalingStrategyStatus defines the observed state of AutoscalingStrategy
// AutoscalingStrategyStatus defines the observed state of AutoscalingStrategy.
type AutoscalingStrategyStatus struct {
// Enabled shows whether cluster autoscaling is currently enabled or not.
// +optional
@ -34,7 +34,7 @@ type AutoscalingStrategyStatus struct {
//+kubebuilder:subresource:status
//+kubebuilder:resource:scope=Cluster
// AutoscalingStrategy is the Schema for the autoscalingstrategies API
// AutoscalingStrategy is the Schema for the autoscalingstrategies API.
type AutoscalingStrategy struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
@ -45,7 +45,7 @@ type AutoscalingStrategy struct {
//+kubebuilder:object:root=true
// AutoscalingStrategyList contains a list of AutoscalingStrategy
// AutoscalingStrategyList contains a list of AutoscalingStrategy.
type AutoscalingStrategyList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`

View file

@ -15,10 +15,10 @@ import (
)
var (
// GroupVersion is group version used to register these objects
// GroupVersion is group version used to register these objects.
GroupVersion = schema.GroupVersion{Group: "update.edgeless.systems", Version: "v1alpha1"}
// SchemeBuilder is used to add go types to the GroupVersionKind scheme
// SchemeBuilder is used to add go types to the GroupVersionKind scheme.
SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}
// AddToScheme adds the types in this group-version to the given scheme.

View file

@ -11,13 +11,13 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
// NodeImageSpec defines the desired state of NodeImage
// NodeImageSpec defines the desired state of NodeImage.
type NodeImageSpec struct {
// ImageReference is the image to use for all nodes.
ImageReference string `json:"image,omitempty"`
}
// NodeImageStatus defines the observed state of NodeImage
// NodeImageStatus defines the observed state of NodeImage.
type NodeImageStatus struct {
// Outdated is a list of nodes that are using an outdated image.
Outdated []corev1.ObjectReference `json:"outdated,omitempty"`
@ -45,7 +45,7 @@ type NodeImageStatus struct {
//+kubebuilder:subresource:status
//+kubebuilder:resource:scope=Cluster
// NodeImage is the Schema for the nodeimages API
// NodeImage is the Schema for the nodeimages API.
type NodeImage struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
@ -56,7 +56,7 @@ type NodeImage struct {
//+kubebuilder:object:root=true
// NodeImageList contains a list of NodeImage
// NodeImageList contains a list of NodeImage.
type NodeImageList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`

View file

@ -44,7 +44,7 @@ type PendingNodeGoal string
// +kubebuilder:validation:Enum=Unknown;Creating;Ready;Stopped;Terminating;Terminated;Failed
type CSPNodeState string
// PendingNodeSpec defines the desired state of PendingNode
// PendingNodeSpec defines the desired state of PendingNode.
type PendingNodeSpec struct {
// ProviderID is the provider ID of the node.
ProviderID string `json:"providerID,omitempty"`
@ -62,7 +62,7 @@ type PendingNodeSpec struct {
Deadline *metav1.Time `json:"deadline,omitempty"`
}
// PendingNodeStatus defines the observed state of PendingNode
// PendingNodeStatus defines the observed state of PendingNode.
type PendingNodeStatus struct {
// CSPNodeState is the state of the node in the cloud.
CSPNodeState `json:"cspState,omitempty"`
@ -74,7 +74,7 @@ type PendingNodeStatus struct {
//+kubebuilder:subresource:status
//+kubebuilder:resource:scope=Cluster
// PendingNode is the Schema for the pendingnodes API
// PendingNode is the Schema for the pendingnodes API.
type PendingNode struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
@ -85,7 +85,7 @@ type PendingNode struct {
//+kubebuilder:object:root=true
// PendingNodeList contains a list of PendingNode
// PendingNodeList contains a list of PendingNode.
type PendingNodeList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`

View file

@ -15,7 +15,7 @@ const (
ConditionOutdated = "Outdated"
)
// ScalingGroupSpec defines the desired state of ScalingGroup
// ScalingGroupSpec defines the desired state of ScalingGroup.
type ScalingGroupSpec struct {
// NodeImage is the name of the NodeImage resource.
NodeImage string `json:"nodeImage,omitempty"`
@ -25,7 +25,7 @@ type ScalingGroupSpec struct {
Autoscaling bool `json:"autoscaling,omitempty"`
}
// ScalingGroupStatus defines the observed state of ScalingGroup
// ScalingGroupStatus defines the observed state of ScalingGroup.
type ScalingGroupStatus struct {
// ImageReference is the image currently used for newly created nodes in this scaling group.
ImageReference string `json:"imageReference,omitempty"`
@ -37,7 +37,7 @@ type ScalingGroupStatus struct {
//+kubebuilder:subresource:status
//+kubebuilder:resource:scope=Cluster
// ScalingGroup is the Schema for the scalinggroups API
// ScalingGroup is the Schema for the scalinggroups API.
type ScalingGroup struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
@ -48,7 +48,7 @@ type ScalingGroup struct {
//+kubebuilder:object:root=true
// ScalingGroupList contains a list of ScalingGroup
// ScalingGroupList contains a list of ScalingGroup.
type ScalingGroupList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`