-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(vm): apply new controller design (#120)
apply new controller design Signed-off-by: yaroslavborbat <[email protected]>
- Loading branch information
1 parent
bf009a0
commit ba12e49
Showing
38 changed files
with
3,630 additions
and
2,545 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
/* | ||
Copyright 2024 Flant JSC | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
|
||
package vmcondition | ||
|
||
type Type string | ||
|
||
func (t Type) String() string { | ||
return string(t) | ||
} | ||
|
||
const ( | ||
TypeCPUModelReady Type = "CPUModelReady" | ||
TypeIPAddressClaimReady Type = "VirtualMachineIPAddressClaimReady" | ||
TypeBlockDevicesReady Type = "BlockDevicesReady" | ||
TypeRunning Type = "Running" | ||
TypeMigrating Type = "Migrating" | ||
TypePodStarted Type = "PodStarted" | ||
TypeProvisioningReady Type = "ProvisioningReady" | ||
TypeAgentReady Type = "AgentReady" | ||
TypeAgentVersionNotSupported Type = "AgentVersionNotSupported" | ||
TypeConfigurationApplied Type = "ConfigurationApplied" | ||
TypeAwaitingRestartToApplyConfiguration Type = "AwaitingRestartToApplyConfiguration" | ||
) | ||
|
||
type Reason string | ||
|
||
func (r Reason) String() string { | ||
return string(r) | ||
} | ||
|
||
const ( | ||
ReasonAgentNotReady Reason = "AgentNotReady" | ||
|
||
ReasonCPUModelReady Reason = "CPUModelReady" | ||
ReasonCPUModelNotReady Reason = "CPUModelNotReady" | ||
|
||
ReasonIPAddressClaimReady Reason = "VirtualMachineIPAddressClaimReady" | ||
ReasonIPAddressClaimNotReady Reason = "VirtualMachineIPAddressClaimNotReady" | ||
ReasonIPAddressClaimNotAssigned Reason = "VirtualMachineIPAddressClaimNotAssigned" | ||
ReasonIPAddressClaimNotAvailable Reason = "VirtualMachineIPAddressClaimNotAvailable" | ||
|
||
ReasonBlockDevicesAttachmentReady Reason = "BlockDevicesAttachmentReady" | ||
ReasonBlockDevicesAttachmentNotReady Reason = "BlockDevicesAttachmentNotReady" | ||
|
||
ReasonProvisioningReady Reason = "ProvisioningReady" | ||
ReasonProvisioningNotReady Reason = "ProvisioningNotReady" | ||
|
||
ReasonConfigurationApplied Reason = "ConfigurationApplied" | ||
ReasonConfigurationNotApplied Reason = "ConfigurationNotApplied" | ||
ReasonRestartAwaitingChangesExist Reason = "RestartAwaitingChangesExist" | ||
ReasonRestartAwaitingChangesNotExist Reason = "RestartAwaitingChangesNotExist" | ||
ReasonRestartNoNeed Reason = "NoNeedRestart" | ||
|
||
ReasonPodNodFound Reason = "PodNotFound" | ||
ReasonPodStarted Reason = "PodStarted" | ||
ReasonVmIsMigrating Reason = "VirtualMachineMigrating" | ||
ReasonVmIsNotMigrating Reason = "VirtualMachineNotMigrating" | ||
ReasonVmIsNotRunning Reason = "VirtualMachineNotRunning" | ||
ReasonVmIsRunning Reason = "VirtualMachineRunning" | ||
) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.