mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
Fix comment dot
This commit is contained in:
parent
eb213878a2
commit
fb7ceb5586
@ -10,7 +10,7 @@ import (
|
|||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
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 {
|
type AutoscalingStrategySpec struct {
|
||||||
// Enabled defines whether cluster autoscaling should be enabled or not.
|
// Enabled defines whether cluster autoscaling should be enabled or not.
|
||||||
Enabled bool `json:"enabled"`
|
Enabled bool `json:"enabled"`
|
||||||
@ -20,7 +20,7 @@ type AutoscalingStrategySpec struct {
|
|||||||
DeploymentNamespace string `json:"deploymentNamespace"`
|
DeploymentNamespace string `json:"deploymentNamespace"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// AutoscalingStrategyStatus defines the observed state of AutoscalingStrategy
|
// AutoscalingStrategyStatus defines the observed state of AutoscalingStrategy.
|
||||||
type AutoscalingStrategyStatus struct {
|
type AutoscalingStrategyStatus struct {
|
||||||
// Enabled shows whether cluster autoscaling is currently enabled or not.
|
// Enabled shows whether cluster autoscaling is currently enabled or not.
|
||||||
// +optional
|
// +optional
|
||||||
@ -34,7 +34,7 @@ type AutoscalingStrategyStatus struct {
|
|||||||
//+kubebuilder:subresource:status
|
//+kubebuilder:subresource:status
|
||||||
//+kubebuilder:resource:scope=Cluster
|
//+kubebuilder:resource:scope=Cluster
|
||||||
|
|
||||||
// AutoscalingStrategy is the Schema for the autoscalingstrategies API
|
// AutoscalingStrategy is the Schema for the autoscalingstrategies API.
|
||||||
type AutoscalingStrategy struct {
|
type AutoscalingStrategy struct {
|
||||||
metav1.TypeMeta `json:",inline"`
|
metav1.TypeMeta `json:",inline"`
|
||||||
metav1.ObjectMeta `json:"metadata,omitempty"`
|
metav1.ObjectMeta `json:"metadata,omitempty"`
|
||||||
@ -45,7 +45,7 @@ type AutoscalingStrategy struct {
|
|||||||
|
|
||||||
//+kubebuilder:object:root=true
|
//+kubebuilder:object:root=true
|
||||||
|
|
||||||
// AutoscalingStrategyList contains a list of AutoscalingStrategy
|
// AutoscalingStrategyList contains a list of AutoscalingStrategy.
|
||||||
type AutoscalingStrategyList struct {
|
type AutoscalingStrategyList struct {
|
||||||
metav1.TypeMeta `json:",inline"`
|
metav1.TypeMeta `json:",inline"`
|
||||||
metav1.ListMeta `json:"metadata,omitempty"`
|
metav1.ListMeta `json:"metadata,omitempty"`
|
||||||
|
@ -15,10 +15,10 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
var (
|
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"}
|
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}
|
SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}
|
||||||
|
|
||||||
// AddToScheme adds the types in this group-version to the given scheme.
|
// AddToScheme adds the types in this group-version to the given scheme.
|
||||||
|
@ -11,13 +11,13 @@ import (
|
|||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
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 {
|
type NodeImageSpec struct {
|
||||||
// ImageReference is the image to use for all nodes.
|
// ImageReference is the image to use for all nodes.
|
||||||
ImageReference string `json:"image,omitempty"`
|
ImageReference string `json:"image,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NodeImageStatus defines the observed state of NodeImage
|
// NodeImageStatus defines the observed state of NodeImage.
|
||||||
type NodeImageStatus struct {
|
type NodeImageStatus struct {
|
||||||
// Outdated is a list of nodes that are using an outdated image.
|
// Outdated is a list of nodes that are using an outdated image.
|
||||||
Outdated []corev1.ObjectReference `json:"outdated,omitempty"`
|
Outdated []corev1.ObjectReference `json:"outdated,omitempty"`
|
||||||
@ -45,7 +45,7 @@ type NodeImageStatus struct {
|
|||||||
//+kubebuilder:subresource:status
|
//+kubebuilder:subresource:status
|
||||||
//+kubebuilder:resource:scope=Cluster
|
//+kubebuilder:resource:scope=Cluster
|
||||||
|
|
||||||
// NodeImage is the Schema for the nodeimages API
|
// NodeImage is the Schema for the nodeimages API.
|
||||||
type NodeImage struct {
|
type NodeImage struct {
|
||||||
metav1.TypeMeta `json:",inline"`
|
metav1.TypeMeta `json:",inline"`
|
||||||
metav1.ObjectMeta `json:"metadata,omitempty"`
|
metav1.ObjectMeta `json:"metadata,omitempty"`
|
||||||
@ -56,7 +56,7 @@ type NodeImage struct {
|
|||||||
|
|
||||||
//+kubebuilder:object:root=true
|
//+kubebuilder:object:root=true
|
||||||
|
|
||||||
// NodeImageList contains a list of NodeImage
|
// NodeImageList contains a list of NodeImage.
|
||||||
type NodeImageList struct {
|
type NodeImageList struct {
|
||||||
metav1.TypeMeta `json:",inline"`
|
metav1.TypeMeta `json:",inline"`
|
||||||
metav1.ListMeta `json:"metadata,omitempty"`
|
metav1.ListMeta `json:"metadata,omitempty"`
|
||||||
|
@ -44,7 +44,7 @@ type PendingNodeGoal string
|
|||||||
// +kubebuilder:validation:Enum=Unknown;Creating;Ready;Stopped;Terminating;Terminated;Failed
|
// +kubebuilder:validation:Enum=Unknown;Creating;Ready;Stopped;Terminating;Terminated;Failed
|
||||||
type CSPNodeState string
|
type CSPNodeState string
|
||||||
|
|
||||||
// PendingNodeSpec defines the desired state of PendingNode
|
// PendingNodeSpec defines the desired state of PendingNode.
|
||||||
type PendingNodeSpec struct {
|
type PendingNodeSpec struct {
|
||||||
// ProviderID is the provider ID of the node.
|
// ProviderID is the provider ID of the node.
|
||||||
ProviderID string `json:"providerID,omitempty"`
|
ProviderID string `json:"providerID,omitempty"`
|
||||||
@ -62,7 +62,7 @@ type PendingNodeSpec struct {
|
|||||||
Deadline *metav1.Time `json:"deadline,omitempty"`
|
Deadline *metav1.Time `json:"deadline,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// PendingNodeStatus defines the observed state of PendingNode
|
// PendingNodeStatus defines the observed state of PendingNode.
|
||||||
type PendingNodeStatus struct {
|
type PendingNodeStatus struct {
|
||||||
// CSPNodeState is the state of the node in the cloud.
|
// CSPNodeState is the state of the node in the cloud.
|
||||||
CSPNodeState `json:"cspState,omitempty"`
|
CSPNodeState `json:"cspState,omitempty"`
|
||||||
@ -74,7 +74,7 @@ type PendingNodeStatus struct {
|
|||||||
//+kubebuilder:subresource:status
|
//+kubebuilder:subresource:status
|
||||||
//+kubebuilder:resource:scope=Cluster
|
//+kubebuilder:resource:scope=Cluster
|
||||||
|
|
||||||
// PendingNode is the Schema for the pendingnodes API
|
// PendingNode is the Schema for the pendingnodes API.
|
||||||
type PendingNode struct {
|
type PendingNode struct {
|
||||||
metav1.TypeMeta `json:",inline"`
|
metav1.TypeMeta `json:",inline"`
|
||||||
metav1.ObjectMeta `json:"metadata,omitempty"`
|
metav1.ObjectMeta `json:"metadata,omitempty"`
|
||||||
@ -85,7 +85,7 @@ type PendingNode struct {
|
|||||||
|
|
||||||
//+kubebuilder:object:root=true
|
//+kubebuilder:object:root=true
|
||||||
|
|
||||||
// PendingNodeList contains a list of PendingNode
|
// PendingNodeList contains a list of PendingNode.
|
||||||
type PendingNodeList struct {
|
type PendingNodeList struct {
|
||||||
metav1.TypeMeta `json:",inline"`
|
metav1.TypeMeta `json:",inline"`
|
||||||
metav1.ListMeta `json:"metadata,omitempty"`
|
metav1.ListMeta `json:"metadata,omitempty"`
|
||||||
|
@ -15,7 +15,7 @@ const (
|
|||||||
ConditionOutdated = "Outdated"
|
ConditionOutdated = "Outdated"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ScalingGroupSpec defines the desired state of ScalingGroup
|
// ScalingGroupSpec defines the desired state of ScalingGroup.
|
||||||
type ScalingGroupSpec struct {
|
type ScalingGroupSpec struct {
|
||||||
// NodeImage is the name of the NodeImage resource.
|
// NodeImage is the name of the NodeImage resource.
|
||||||
NodeImage string `json:"nodeImage,omitempty"`
|
NodeImage string `json:"nodeImage,omitempty"`
|
||||||
@ -25,7 +25,7 @@ type ScalingGroupSpec struct {
|
|||||||
Autoscaling bool `json:"autoscaling,omitempty"`
|
Autoscaling bool `json:"autoscaling,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ScalingGroupStatus defines the observed state of ScalingGroup
|
// ScalingGroupStatus defines the observed state of ScalingGroup.
|
||||||
type ScalingGroupStatus struct {
|
type ScalingGroupStatus struct {
|
||||||
// ImageReference is the image currently used for newly created nodes in this scaling group.
|
// ImageReference is the image currently used for newly created nodes in this scaling group.
|
||||||
ImageReference string `json:"imageReference,omitempty"`
|
ImageReference string `json:"imageReference,omitempty"`
|
||||||
@ -37,7 +37,7 @@ type ScalingGroupStatus struct {
|
|||||||
//+kubebuilder:subresource:status
|
//+kubebuilder:subresource:status
|
||||||
//+kubebuilder:resource:scope=Cluster
|
//+kubebuilder:resource:scope=Cluster
|
||||||
|
|
||||||
// ScalingGroup is the Schema for the scalinggroups API
|
// ScalingGroup is the Schema for the scalinggroups API.
|
||||||
type ScalingGroup struct {
|
type ScalingGroup struct {
|
||||||
metav1.TypeMeta `json:",inline"`
|
metav1.TypeMeta `json:",inline"`
|
||||||
metav1.ObjectMeta `json:"metadata,omitempty"`
|
metav1.ObjectMeta `json:"metadata,omitempty"`
|
||||||
@ -48,7 +48,7 @@ type ScalingGroup struct {
|
|||||||
|
|
||||||
//+kubebuilder:object:root=true
|
//+kubebuilder:object:root=true
|
||||||
|
|
||||||
// ScalingGroupList contains a list of ScalingGroup
|
// ScalingGroupList contains a list of ScalingGroup.
|
||||||
type ScalingGroupList struct {
|
type ScalingGroupList struct {
|
||||||
metav1.TypeMeta `json:",inline"`
|
metav1.TypeMeta `json:",inline"`
|
||||||
metav1.ListMeta `json:"metadata,omitempty"`
|
metav1.ListMeta `json:"metadata,omitempty"`
|
||||||
|
@ -19,7 +19,7 @@ spec:
|
|||||||
schema:
|
schema:
|
||||||
openAPIV3Schema:
|
openAPIV3Schema:
|
||||||
description: AutoscalingStrategy is the Schema for the autoscalingstrategies
|
description: AutoscalingStrategy is the Schema for the autoscalingstrategies
|
||||||
API
|
API.
|
||||||
properties:
|
properties:
|
||||||
apiVersion:
|
apiVersion:
|
||||||
description: 'APIVersion defines the versioned schema of this representation
|
description: 'APIVersion defines the versioned schema of this representation
|
||||||
@ -34,7 +34,7 @@ spec:
|
|||||||
metadata:
|
metadata:
|
||||||
type: object
|
type: object
|
||||||
spec:
|
spec:
|
||||||
description: AutoscalingStrategySpec defines the desired state of AutoscalingStrategy
|
description: AutoscalingStrategySpec defines the desired state of AutoscalingStrategy.
|
||||||
properties:
|
properties:
|
||||||
deploymentName:
|
deploymentName:
|
||||||
description: DeploymentName defines the name of the autoscaler deployment.
|
description: DeploymentName defines the name of the autoscaler deployment.
|
||||||
@ -53,7 +53,7 @@ spec:
|
|||||||
- enabled
|
- enabled
|
||||||
type: object
|
type: object
|
||||||
status:
|
status:
|
||||||
description: AutoscalingStrategyStatus defines the observed state of AutoscalingStrategy
|
description: AutoscalingStrategyStatus defines the observed state of AutoscalingStrategy.
|
||||||
properties:
|
properties:
|
||||||
enabled:
|
enabled:
|
||||||
description: Enabled shows whether cluster autoscaling is currently
|
description: Enabled shows whether cluster autoscaling is currently
|
||||||
|
@ -18,7 +18,7 @@ spec:
|
|||||||
- name: v1alpha1
|
- name: v1alpha1
|
||||||
schema:
|
schema:
|
||||||
openAPIV3Schema:
|
openAPIV3Schema:
|
||||||
description: NodeImage is the Schema for the nodeimages API
|
description: NodeImage is the Schema for the nodeimages API.
|
||||||
properties:
|
properties:
|
||||||
apiVersion:
|
apiVersion:
|
||||||
description: 'APIVersion defines the versioned schema of this representation
|
description: 'APIVersion defines the versioned schema of this representation
|
||||||
@ -33,14 +33,14 @@ spec:
|
|||||||
metadata:
|
metadata:
|
||||||
type: object
|
type: object
|
||||||
spec:
|
spec:
|
||||||
description: NodeImageSpec defines the desired state of NodeImage
|
description: NodeImageSpec defines the desired state of NodeImage.
|
||||||
properties:
|
properties:
|
||||||
image:
|
image:
|
||||||
description: ImageReference is the image to use for all nodes.
|
description: ImageReference is the image to use for all nodes.
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
status:
|
status:
|
||||||
description: NodeImageStatus defines the observed state of NodeImage
|
description: NodeImageStatus defines the observed state of NodeImage.
|
||||||
properties:
|
properties:
|
||||||
budget:
|
budget:
|
||||||
description: Budget is the amount of extra nodes that can be created
|
description: Budget is the amount of extra nodes that can be created
|
||||||
|
@ -18,7 +18,7 @@ spec:
|
|||||||
- name: v1alpha1
|
- name: v1alpha1
|
||||||
schema:
|
schema:
|
||||||
openAPIV3Schema:
|
openAPIV3Schema:
|
||||||
description: PendingNode is the Schema for the pendingnodes API
|
description: PendingNode is the Schema for the pendingnodes API.
|
||||||
properties:
|
properties:
|
||||||
apiVersion:
|
apiVersion:
|
||||||
description: 'APIVersion defines the versioned schema of this representation
|
description: 'APIVersion defines the versioned schema of this representation
|
||||||
@ -33,7 +33,7 @@ spec:
|
|||||||
metadata:
|
metadata:
|
||||||
type: object
|
type: object
|
||||||
spec:
|
spec:
|
||||||
description: PendingNodeSpec defines the desired state of PendingNode
|
description: PendingNodeSpec defines the desired state of PendingNode.
|
||||||
properties:
|
properties:
|
||||||
deadline:
|
deadline:
|
||||||
description: Deadline is the deadline for reaching the goal state.
|
description: Deadline is the deadline for reaching the goal state.
|
||||||
@ -60,7 +60,7 @@ spec:
|
|||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
status:
|
status:
|
||||||
description: PendingNodeStatus defines the observed state of PendingNode
|
description: PendingNodeStatus defines the observed state of PendingNode.
|
||||||
properties:
|
properties:
|
||||||
cspState:
|
cspState:
|
||||||
description: CSPNodeState is the state of the node in the cloud.
|
description: CSPNodeState is the state of the node in the cloud.
|
||||||
|
@ -18,7 +18,7 @@ spec:
|
|||||||
- name: v1alpha1
|
- name: v1alpha1
|
||||||
schema:
|
schema:
|
||||||
openAPIV3Schema:
|
openAPIV3Schema:
|
||||||
description: ScalingGroup is the Schema for the scalinggroups API
|
description: ScalingGroup is the Schema for the scalinggroups API.
|
||||||
properties:
|
properties:
|
||||||
apiVersion:
|
apiVersion:
|
||||||
description: 'APIVersion defines the versioned schema of this representation
|
description: 'APIVersion defines the versioned schema of this representation
|
||||||
@ -33,7 +33,7 @@ spec:
|
|||||||
metadata:
|
metadata:
|
||||||
type: object
|
type: object
|
||||||
spec:
|
spec:
|
||||||
description: ScalingGroupSpec defines the desired state of ScalingGroup
|
description: ScalingGroupSpec defines the desired state of ScalingGroup.
|
||||||
properties:
|
properties:
|
||||||
autoscaling:
|
autoscaling:
|
||||||
description: Autoscaling specifies wether the scaling group should
|
description: Autoscaling specifies wether the scaling group should
|
||||||
@ -48,7 +48,7 @@ spec:
|
|||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
status:
|
status:
|
||||||
description: ScalingGroupStatus defines the observed state of ScalingGroup
|
description: ScalingGroupStatus defines the observed state of ScalingGroup.
|
||||||
properties:
|
properties:
|
||||||
conditions:
|
conditions:
|
||||||
description: Conditions represent the latest available observations
|
description: Conditions represent the latest available observations
|
||||||
|
@ -20,7 +20,7 @@ import (
|
|||||||
updatev1alpha1 "github.com/edgelesssys/constellation/operators/constellation-node-operator/api/v1alpha1"
|
updatev1alpha1 "github.com/edgelesssys/constellation/operators/constellation-node-operator/api/v1alpha1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// AutoscalingStrategyReconciler reconciles a AutoscalingStrategy object
|
// AutoscalingStrategyReconciler reconciles a AutoscalingStrategy object.
|
||||||
type AutoscalingStrategyReconciler struct {
|
type AutoscalingStrategyReconciler struct {
|
||||||
client.Client
|
client.Client
|
||||||
Scheme *runtime.Scheme
|
Scheme *runtime.Scheme
|
||||||
|
@ -719,7 +719,7 @@ type mintNode struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// replacementPair is a pair of a donor (outdated node that should be replaced)
|
// replacementPair is a pair of a donor (outdated node that should be replaced)
|
||||||
// and a heir (up to date node that inherits node labels)
|
// and a heir (up to date node that inherits node labels).
|
||||||
type replacementPair struct {
|
type replacementPair struct {
|
||||||
donor corev1.Node
|
donor corev1.Node
|
||||||
heir corev1.Node
|
heir corev1.Node
|
||||||
|
@ -35,7 +35,7 @@ const (
|
|||||||
defaultCheckInterval = 30 * time.Second
|
defaultCheckInterval = 30 * time.Second
|
||||||
)
|
)
|
||||||
|
|
||||||
// PendingNodeReconciler reconciles a PendingNode object
|
// PendingNodeReconciler reconciles a PendingNode object.
|
||||||
type PendingNodeReconciler struct {
|
type PendingNodeReconciler struct {
|
||||||
nodeStateGetter
|
nodeStateGetter
|
||||||
client.Client
|
client.Client
|
||||||
|
@ -35,7 +35,7 @@ const (
|
|||||||
conditionScalingGroupOutOfDateMessage = "Scaling group will not use the latest image when creating new nodes"
|
conditionScalingGroupOutOfDateMessage = "Scaling group will not use the latest image when creating new nodes"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ScalingGroupReconciler reconciles a ScalingGroup object
|
// ScalingGroupReconciler reconciles a ScalingGroup object.
|
||||||
type ScalingGroupReconciler struct {
|
type ScalingGroupReconciler struct {
|
||||||
scalingGroupUpdater
|
scalingGroupUpdater
|
||||||
client.Client
|
client.Client
|
||||||
|
@ -20,15 +20,15 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
// etcdListenClientPort defines the port etcd listen on for client traffic
|
// etcdListenClientPort defines the port etcd listen on for client traffic.
|
||||||
etcdListenClientPort = "2379"
|
etcdListenClientPort = "2379"
|
||||||
// etcdListenPeerPort defines the port etcd listen on for peer traffic
|
// etcdListenPeerPort defines the port etcd listen on for peer traffic.
|
||||||
etcdListenPeerPort = "2380"
|
etcdListenPeerPort = "2380"
|
||||||
// etcdCACertName defines etcd's CA certificate name
|
// etcdCACertName defines etcd's CA certificate name.
|
||||||
etcdCACertName = "/etc/kubernetes/pki/etcd/ca.crt"
|
etcdCACertName = "/etc/kubernetes/pki/etcd/ca.crt"
|
||||||
// etcdPeerCertName defines etcd's peer certificate name
|
// etcdPeerCertName defines etcd's peer certificate name.
|
||||||
etcdPeerCertName = "/etc/kubernetes/pki/etcd/peer.crt"
|
etcdPeerCertName = "/etc/kubernetes/pki/etcd/peer.crt"
|
||||||
// etcdPeerKeyName defines etcd's peer key name
|
// etcdPeerKeyName defines etcd's peer key name.
|
||||||
etcdPeerKeyName = "/etc/kubernetes/pki/etcd/peer.key"
|
etcdPeerKeyName = "/etc/kubernetes/pki/etcd/peer.key"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user