-
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(vd): apply new controller design
Signed-off-by: Isteb4k <dmitry.rakitin@flant.com>
- Loading branch information
Showing
97 changed files
with
8,602 additions
and
3,096 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"feature": { | ||
"network": { | ||
"incoming": "steal", | ||
"outgoing": true | ||
}, | ||
"fs": { | ||
"mode": "read", | ||
"read_only": [ "^/tmp/", "^/var/" ] | ||
}, | ||
"env": true | ||
}, | ||
"agent": { | ||
"communication_timeout": 6000, | ||
"startup_timeout": 56000 | ||
}, | ||
"internal_proxy": { | ||
"start_idle_timeout": 13000, | ||
"idle_timeout": 1500 | ||
}, | ||
"target": { | ||
"namespace": "d8-virtualization", | ||
"path": "deployment/virtualization-controller/container/virtualization-controller" | ||
} | ||
} |
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,42 @@ | ||
/* | ||
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 cvicondition | ||
|
||
type Type = string | ||
|
||
const ( | ||
DatasourceReadyType Type = "DatasourceReady" | ||
ReadyType Type = "Ready" | ||
) | ||
|
||
type ( | ||
DatasourceReadyReason = string | ||
ReadyReason = string | ||
) | ||
|
||
const ( | ||
DatasourceReadyReason_DatasourceReady DatasourceReadyReason = "DatasourceReady" | ||
DatasourceReadyReason_ContainerRegistrySecretNotFound DatasourceReadyReason = "ContainerRegistrySecretNotFound" | ||
DatasourceReadyReason_ImageNotReady DatasourceReadyReason = "ImageNotReady" | ||
DatasourceReadyReason_ClusterImageNotReady DatasourceReadyReason = "ClusterImageNotReady" | ||
|
||
ReadyReason_WaitForUserUpload ReadyReason = "WaitForUserUpload" | ||
ReadyReason_Provisioning ReadyReason = "Provisioning" | ||
ReadyReason_ProvisioningNotStarted ReadyReason = "ProvisioningNotStarted" | ||
ReadyReason_ProvisioningFailed ReadyReason = "ProvisioningFailed" | ||
ReadyReason_Ready ReadyReason = "Ready" | ||
) |
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,50 @@ | ||
/* | ||
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 vdcondition | ||
|
||
type Type = string | ||
|
||
const ( | ||
DatasourceReadyType Type = "DatasourceReady" | ||
ReadyType Type = "Ready" | ||
ResizedType Type = "Resized" | ||
) | ||
|
||
type ( | ||
DatasourceReadyReason = string | ||
ReadyReason = string | ||
ResizedReason = string | ||
) | ||
|
||
const ( | ||
DatasourceReadyReason_DatasourceReady DatasourceReadyReason = "DatasourceReady" | ||
DatasourceReadyReason_ContainerRegistrySecretNotFound DatasourceReadyReason = "ContainerRegistrySecretNotFound" | ||
DatasourceReadyReason_ImageNotReady DatasourceReadyReason = "ImageNotReady" | ||
DatasourceReadyReason_ClusterImageNotReady DatasourceReadyReason = "ClusterImageNotReady" | ||
|
||
ReadyReason_WaitForUserUpload ReadyReason = "WaitForUserUpload" | ||
ReadyReason_Provisioning ReadyReason = "Provisioning" | ||
ReadyReason_ProvisioningNotStarted ReadyReason = "ProvisioningNotStarted" | ||
ReadyReason_ProvisioningFailed ReadyReason = "ProvisioningFailed" | ||
ReadyReason_Ready ReadyReason = "Ready" | ||
ReadyReason_Lost ReadyReason = "PVCLost" | ||
|
||
ResizedReason_NotRequested ResizedReason = "NotRequested" | ||
ResizedReason_InProgress ResizedReason = "InProgress" | ||
ResizedReason_TooSmallDiskSize ResizedReason = "TooSmallDiskSize" | ||
ResizedReason_Resized ResizedReason = "Resized" | ||
) |
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
Oops, something went wrong.