Skip to content

Comments

✨ feat: add ignition bootstrap data support#270

Open
tuunit wants to merge 10 commits intomainfrom
flatcar-support
Open

✨ feat: add ignition bootstrap data support#270
tuunit wants to merge 10 commits intomainfrom
flatcar-support

Conversation

@tuunit
Copy link
Member

@tuunit tuunit commented Jan 23, 2025

What is the purpose of this pull request/Why do we need it?

Introduce experimental support for flatcar by adding injection support for ignition user-data.

Issue #, if available:
Implements #268

Description of changes:

  • Image builder build flatcar for IONOS cloud.
  • Add Feature Gate BootstrapFormatIgnition.
  • Ignition support and generation along with Cloudinit in CAPIC.
  • Provision clusters with Flatcar.
    • Cluster template
    • Tests.
    • E2e test for Flatcar.

Special notes for your reviewer:

Checklist:

  • Documentation updated
  • Unit Tests added
  • E2E Tests added
  • Includes emojis

@tuunit tuunit changed the title feat: add ignition bootstrap data support ✨ feat: add ignition bootstrap data support Jan 24, 2025
renderedData := s.renderUserData(ms, string(bootstrapData))
renderedData, err := s.enrichUserData(ms, bootstrapFormat, string(bootstrapData))
if err != nil {
return fmt.Errorf("enriching user data: %w", err)
Copy link
Member

Choose a reason for hiding this comment

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

We can improve user visibility here.
by setting a condition and throwing a warning event.

Copy link
Member Author

Choose a reason for hiding this comment

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

What exactly do you mean by setting a condition?

Copy link
Member

Choose a reason for hiding this comment

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

something like:

conditions.MarkFalse(
	ms.IonosMachine,
	infrav1.MachineProvisionedCondition,
	infrav1.RenderBootstrapDataReason,
	clusterv1.ConditionSeverityInfo, "",
)

@sonarqubecloud
Copy link

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.

2 participants