-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: import fixes/updates from kubeadm bootstrap provider
This adds new conditions, and some small features, cleaning up failure conditions. Some changes: * tests no longer set up owner refs, they should be set by core CAPI controllers * set correctly `BootstrapRef` * TalosConfig controller no longer fails when requeueing is handled by watches * more tests for conditions With conditions enabled there should be no longer required to look into the controller logs to see why reconciliation failed. Signed-off-by: Andrey Smirnov <[email protected]>
- Loading branch information
Showing
15 changed files
with
401 additions
and
87 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,32 @@ | ||
// This Source Code Form is subject to the terms of the Mozilla Public | ||
// License, v. 2.0. If a copy of the MPL was not distributed with this | ||
// file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
|
||
package v1alpha3 | ||
|
||
import ( | ||
capiv1 "sigs.k8s.io/cluster-api/api/v1alpha4" | ||
) | ||
|
||
// Conditions and condition Reasons for the TalosConfig object | ||
|
||
const ( | ||
// DataSecretAvailableCondition documents the status of the bootstrap secret generation process. | ||
// | ||
// NOTE: When the DataSecret generation starts the process completes immediately and within the | ||
// same reconciliation, so the user will always see a transition from Wait to Generated without having | ||
// evidence that BootstrapSecret generation is started/in progress. | ||
DataSecretAvailableCondition capiv1.ConditionType = "DataSecretAvailable" | ||
|
||
// WaitingForClusterInfrastructureReason (Severity=Info) document a bootstrap secret generation process | ||
// waiting for the cluster infrastructure to be ready. | ||
// | ||
// NOTE: Having the cluster infrastructure ready is a pre-condition for starting to create machines; | ||
// the TalosConfig controller ensure this pre-condition is satisfied. | ||
WaitingForClusterInfrastructureReason = "WaitingForClusterInfrastructure" | ||
|
||
// DataSecretGenerationFailedReason (Severity=Warning) documents a TalosConfig controller detecting | ||
// an error while generating a data secret; those kind of errors are usually due to misconfigurations | ||
// and user intervention is required to get them fixed. | ||
DataSecretGenerationFailedReason = "DataSecretGenerationFailed" | ||
) |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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.