Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
fabriziopandini committed Oct 17, 2019
1 parent 534e422 commit 6ac8b37
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 14 deletions.
6 changes: 6 additions & 0 deletions operator/README.md
@@ -0,0 +1,6 @@
# Kubeadm operator

The kubeadm-operator is an experimental project, still WIP.
Do not use in production.

See [KEP](https://github.com/kubernetes/enhancements/blob/master/keps/sig-cluster-lifecycle/kubeadm/20190916-kubeadm-operator.md) for more details.
7 changes: 4 additions & 3 deletions operator/api/v1alpha1/operation_descriptor_types.go
Expand Up @@ -34,8 +34,8 @@ type OperatorDescriptor struct {

// UpgradeOperationSpec provide declarative support for the kubeadm upgrade workflow.
type UpgradeOperationSpec struct {
// +optional
KubernetesVersion string `json:"kubernetesVersion,omitempty"`
// KubernetesVersion specifies the target kubernetes version
KubernetesVersion string `json:"kubernetesVersion"`

// INSERT ADDITIONAL SPEC FIELDS -
// Important: Run "make" to regenerate code after modifying this file
Expand All @@ -50,5 +50,6 @@ type RenewCertificatesOperationSpec struct {

// CustomOperationSpec enable definition of custom list of RuntimeTaskGroup.
type CustomOperationSpec struct {
Workflow []RuntimeTaskGroup `json:"workflow,omitempty"`
// Workflow allows to define a custom list of RuntimeTaskGroup.
Workflow []RuntimeTaskGroup `json:"workflow"`
}
Expand Up @@ -406,6 +406,7 @@ spec:
description: CustomOperation enable definition of custom list of RuntimeTaskGroup.
properties:
workflow:
description: Workflow allows to define a custom list of RuntimeTaskGroup.
items:
properties:
apiVersion:
Expand Down Expand Up @@ -1448,10 +1449,6 @@ spec:
description: NodeName is a request to schedule
this RuntimeTask onto a specific node.
type: string
paused:
description: Paused indicates that the RuntimeTask
is paused.
type: boolean
recoveryMode:
description: RecoveryMode sets the strategy to
use when a command is failed.
Expand Down Expand Up @@ -1520,6 +1517,8 @@ spec:
type: object
type: object
type: array
required:
- workflow
type: object
executionMode:
description: ExecutionMode indicates how the controller should handle
Expand All @@ -1538,7 +1537,10 @@ spec:
workflow.
properties:
kubernetesVersion:
description: KubernetesVersion specifies the target kubernetes version
type: string
required:
- kubernetesVersion
type: object
type: object
status:
Expand Down
Expand Up @@ -935,9 +935,6 @@ spec:
description: NodeName is a request to schedule this RuntimeTask
onto a specific node.
type: string
paused:
description: Paused indicates that the RuntimeTask is paused.
type: boolean
recoveryMode:
description: RecoveryMode sets the strategy to use when a command
is failed.
Expand Down
Expand Up @@ -446,9 +446,6 @@ spec:
description: NodeName is a request to schedule this RuntimeTask onto
a specific node.
type: string
paused:
description: Paused indicates that the RuntimeTask is paused.
type: boolean
recoveryMode:
description: RecoveryMode sets the strategy to use when a command is
failed.
Expand All @@ -460,7 +457,7 @@ spec:
properties:
commandProgress:
description: CommandProgress Please note that this field is only for
allowing a better
allowing a better visal representation of status
type: string
completionTime:
description: CompletionTime represents time when the RuntimeTask was
Expand Down

0 comments on commit 6ac8b37

Please sign in to comment.