Skip to content

Commit

Permalink
Add BMC env opts:
Browse files Browse the repository at this point in the history
TinkerbellBMCCustomPayload and TinkerbellBMCCustomPayloadDotLocation.
Docs to follow on their proper use.

Signed-off-by: Jacob Weinstock <[email protected]>
  • Loading branch information
jacobweinstock committed Oct 4, 2023
1 parent aff8897 commit 0c29f39
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
12 changes: 12 additions & 0 deletions cmd/eksctl-anywhere/cmd/aflag/tinkerbell.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,15 @@ var TinkerbellBMCHMACSecrets = Flag[[]string]{
Name: "tinkerbell-bmc-hmac-secrets",
Usage: "The secrets used to HMAC sign a payload, used in RPC BMC interactions",
}

// TinkerbellBMCCustomPayload

Check failure on line 91 in cmd/eksctl-anywhere/cmd/aflag/tinkerbell.go

View workflow job for this annotation

GitHub Actions / lint

Comment should end in a period (godot)
var TinkerbellBMCCustomPayload = Flag[string]{
Name: "tinkerbell-bmc-custom-payload",
Usage: "The custom payload used in RPC BMC interactions, must be used with tinkerbell-bmc-custom-payload-dot-location",
}

// TinkerbellBMCCustomPayloadDotLocation

Check failure on line 97 in cmd/eksctl-anywhere/cmd/aflag/tinkerbell.go

View workflow job for this annotation

GitHub Actions / lint

Comment should end in a period (godot)
var TinkerbellBMCCustomPayloadDotLocation = Flag[string]{
Name: "tinkerbell-bmc-custom-payload-dot-location",
Usage: "The dot location of the custom payload used in RPC BMC interactions, must be used with tinkerbell-bmc-custom-payload",
}

Check failure on line 101 in cmd/eksctl-anywhere/cmd/aflag/tinkerbell.go

View workflow job for this annotation

GitHub Actions / lint

File is not `gofumpt`-ed (gofumpt)

Check failure on line 101 in cmd/eksctl-anywhere/cmd/aflag/tinkerbell.go

View workflow job for this annotation

GitHub Actions / build

syntax error: unexpected var after top level declaration
4 changes: 4 additions & 0 deletions cmd/eksctl-anywhere/cmd/createcluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ func tinkerbellFlags(fs *pflag.FlagSet, r *hardware.RPCOpts) {
aflag.MarkHidden(fs, aflag.TinkerbellBMCPrefixSigDisabled.Name)
aflag.StringSlice(aflag.TinkerbellBMCHMACSecrets, &r.HMAC.Secrets, fs)
aflag.MarkHidden(fs, aflag.TinkerbellBMCHMACSecrets.Name)
aflag.String(aflag.TinkerbellBMCCustomPayload, &r.Experimental.CustomRequestPayload, fs)
aflag.MarkHidden(fs, aflag.TinkerbellBMCCustomPayload.Name)
aflag.String(aflag.TinkerbellBMCCustomPayloadDotLocation, &r.Experimental.DotPath, fs)
aflag.MarkHidden(fs, aflag.TinkerbellBMCCustomPayloadDotLocation.Name)
}

func (cc *createClusterOptions) createCluster(cmd *cobra.Command, _ []string) error {
Expand Down

0 comments on commit 0c29f39

Please sign in to comment.