-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1000 from jacobweinstock/builtin-workflow-features
Workflow boot features, print columns, and Workflow Conditions: ## Description <!--- Please describe what this PR is going to change --> 1. Adds fields in the Workflow spec that trigger handling of setting hardware `allowPxe` field and getting machines into a netbooting state. **`toggleAllowNetboot`:** indicates whether the controller should toggle the field in the associated hardware for allowing PXE booting. This will be enabled before a Workflow is executed and disabled after the Workflow has completed successfully. A HardwareRef must be provided. **`oneTimeNetboot`:** indicates whether the controller should create a `job.bmc.tinkerbell.org` object for getting the associated hardware into a netbooting state. A HardwareRef that contains a spec.bmcRef must be provided. Current Workflow spec example: ```yaml apiVersion: tinkerbell.org/v1alpha1 kind: Workflow metadata: name: example1 namespace: tink-system spec: hardwareMap: device_1: 01:02:03:04:05:06 templateRef: myTemplate hardwareRef: example1 ``` New Workflow spec example: ```yaml apiVersion: tinkerbell.org/v1alpha1 kind: Workflow metadata: name: example1 namespace: tink-system spec: hardwareMap: device_1: 01:02:03:04:05:06 templateRef: myTemplate hardwareRef: example1 bootOptions: toggleAllowNetboot: true oneTimeNetboot: true ``` 2. Adds the following columns to `kubectl get workflow`: `CURRENT-ACTION` and `TEMPLATE-RENDERING`. ```bash ❯ kubectl get wf -n tink-system NAME TEMPLATE STATE CURRENT-ACTION TEMPLATE-RENDERING testing testing STATE_SUCCESS action 7 successful ``` 3. Introduces [Conditions](https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#typical-status-properties) to the Workflow spec. The following are the initial conditions. ``` NetbootJobFailed NetbootJobComplete NetbootJobRunning NetbootJobSetupFailed NetbootJobSetupComplete ToggleAllowNetbootTrue ToggleAllowNetbootFalse TemplateRenderedSuccess ``` ## Why is this needed <!--- Link to issue you have raised --> Fixes: # ## How Has This Been Tested? <!--- Please describe in detail how you tested your changes. --> <!--- Include details of your testing environment, and the tests you ran to --> <!--- see how your change affects other areas of the code, etc. --> ## How are existing users impacted? What migration steps/scripts do we need? <!--- Fixes a bug, unblocks installation, removes a component of the stack etc --> <!--- Requires a DB migration script, etc. --> ## Checklist: I have: - [ ] updated the documentation and/or roadmap (if required) - [ ] added unit or e2e tests - [ ] provided instructions on how to upgrade
- Loading branch information
Showing
42 changed files
with
1,646 additions
and
1,355 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
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.