Skip to content

MCC->Launchpad updates#89

Merged
james-nesbitt merged 2 commits into
mainfrom
1.5.14-upgrade
Oct 28, 2025
Merged

MCC->Launchpad updates#89
james-nesbitt merged 2 commits into
mainfrom
1.5.14-upgrade

Conversation

@james-nesbitt
Copy link
Copy Markdown
Contributor

@james-nesbitt james-nesbitt commented Oct 22, 2025

Description

  • Move to the now public launchpad repo
  • update to schema 15 (noop change)
  • go mod updates
  • gha updates
  • linting updates

Issue

< The JIRA or GitHub issue URL >

@james-nesbitt james-nesbitt force-pushed the 1.5.14-upgrade branch 9 times, most recently from 3348d2d to 673e3dc Compare October 22, 2025 12:35
- Move to the now public launchpad repo
- update to schema 15 (noop change)
- go mod updates
- gha updates
- golang releaser updates
- golangci-lint updates

NOTES

- dropped terraform fmt from go generate to simplify build inv
  that fmt is for the examples

Signed-off-by: James Nesbitt <jnesbitt@mirantis.com>
- mcr metadata might be missing, so we add it to the initial project.

Signed-off-by: James Nesbitt <jnesbitt@mirantis.com>
Copy link
Copy Markdown
Contributor Author

@james-nesbitt james-nesbitt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note the following linting changes:

  • a block variable declaration was replaced with a one-line
  • some variable names were too short
  • some function arguments were unused, so should be ignored
  • some whitespacing

}

func NewLaunchpadConfigResource() resource.Resource {
func NewLaunchpadConfigResource() resource.Resource { //nolint:ireturn
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The function returns an interface so that it matches the interface for the resource

}

cc := ls.ClusterConfig(diags)
cc := ls.ClusterConfig(ctx, diags)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clusterconfig was using context.Background(), but we have the TF context here, so we just pass it through now.

)

func launchpadSchema14() schema.Schema {
func launchpadSchema15() schema.Schema { //nolint:maintidx
Copy link
Copy Markdown
Contributor Author

@james-nesbitt james-nesbitt Oct 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The linter thinks that this function goes too deep. It does go deep, but it is much more readable in this form than it would be to break it out into sub-functions that reduce this depth. The value here is that the function very much maps to the structure of the data.

@james-nesbitt james-nesbitt merged commit bfb4b27 into main Oct 28, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant