-
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 #1008 from jacobweinstock/iso-mounting
Add ISO mounting to Workflow boot options: ## Description <!--- Please describe what this PR is going to change --> Add ISO mounting capabilities to Workflow (spec) boot options. This is similar to the netboot option but with a virtual media mount and CDROM as the next boot device. This refactors the Workflow spec to be able to handle both network boot and iso booting. 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 bootOptions: toggleAllowNetboot: true oneTimeNetboot: true ``` New Workflow spec example for network booting a machine: ```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 bootMode: netboot ``` New Workflow spec example for ISO booting a machine: ```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 bootMode: iso isoURL: http://192.168.2.113:7171/ipxe/ipxe.iso ``` ## 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. --> Upgrade: 1. Update the workflow CRD ```bash kubectl replace -f https://raw.githubusercontent.com/tinkerbell/tink/refs/heads/main/config/crd/bases/tinkerbell.org_workflows.yaml ``` 2. Update the tink controller Role ```bash kubectl replace -f https://raw.githubusercontent.com/tinkerbell/tink/refs/heads/main/config/manager-rbac/role.yaml -n tink-system ``` 3. Update tink controller and tink server images ```bash kubectl set image -n tink-system deployment/tink-controller tink-controller=quay.io/tinkerbell/tink-controller:latest kubectl set image -n tink-system deployment/tink-server server=quay.io/tinkerbell/tink-server:latest ``` ## 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
19 changed files
with
1,353 additions
and
874 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
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
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.