Added: ctl create controller
This commit is contained in:
@@ -16,6 +16,7 @@ var (
|
||||
AltPartDeviceLink = "/dev/mksaltpart"
|
||||
BootStateFile = "/run/monok8s/boot-state.env"
|
||||
CatalogURL = "https://example.com/monok8s.io/v1alpha1/catalog.yaml"
|
||||
ControlAgentName = "control-agent"
|
||||
ControlAgentKey = "monok8s.io/control-agent"
|
||||
EnvConfigDir = "/opt/monok8s/config"
|
||||
Label = "monok8s.io/label"
|
||||
|
||||
@@ -53,6 +53,10 @@ type OSUpgradeSpec struct {
|
||||
|
||||
// +kubebuilder:validation:Enum=fast;balanced;safe
|
||||
// +kubebuilder:default=balanced
|
||||
// Profiles (TODO)
|
||||
// safe - api-server can be responsive most of the time
|
||||
// balanced - api-server can sometimes be unresponsive
|
||||
// fast - disable throttling. Good for worker node.
|
||||
FlashProfile string `json:"flashProfile,omitempty" yaml:"flashProfile,omitempty"`
|
||||
|
||||
Catalog *VersionCatalogSource `json:"catalog,omitempty" yaml:"catalog,omitempty"`
|
||||
@@ -100,7 +104,13 @@ type OSUpgradeProgressList struct {
|
||||
|
||||
type OSUpgradeProgressSpec struct {
|
||||
SourceRef OSUpgradeSourceRef `json:"sourceRef,omitempty" yaml:"sourceRef,omitempty"`
|
||||
NodeName string `json:"nodeName,omitempty" yaml:"nodeName,omitempty"`
|
||||
|
||||
// RetryNonce triggers a retry when its value changes.
|
||||
// Users can update this field (for example, set it to the current time)
|
||||
// to request a retry of a failed OS upgrade.
|
||||
RetryNonce string `json:"retryNonce,omitempty" yaml:"retryNonce,omitempty"`
|
||||
|
||||
NodeName string `json:"nodeName,omitempty" yaml:"nodeName,omitempty"`
|
||||
}
|
||||
|
||||
type OSUpgradeSourceRef struct {
|
||||
|
||||
Reference in New Issue
Block a user