Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data dir rfc #45326

Open
wants to merge 29 commits into
base: release/v2.9
Choose a base branch
from
Open

Data dir rfc #45326

wants to merge 29 commits into from

Conversation

jakefhyde
Copy link
Contributor

@jakefhyde jakefhyde commented May 1, 2024

Issue: #45038

Problem

Add support for data-dir configuration for RKE2/K3s, CAPR, and the system-agent

Solution

Introduce a new field DataDirectories on the cluster object for specifying the k8s distro, system agent, and provisioning data directories.

Testing

Engineering Testing

Manual Testing

Manually tested both upgrade and fresh cluster provisioning scenarios, writing to folders in /tmp.

Automated Testing

  • Test types added/modified:
    • Unit

Summary: Update existing unit tests (todo: add more test cases for different data directories)

QA Testing Considerations

Fresh install and upgrade testing for the following cluster configurations (all multinode):

  • RKE2
  • K3s
  • RKE2 + Windows

Regressions Considerations

Should test provisioning without specifying fields is unaffected.

Existing / newly added automated tests that provide evidence there are no regressions:
Todo

@jakefhyde jakefhyde force-pushed the data-dir-rfc branch 2 times, most recently from cf62507 to a81637f Compare May 3, 2024 20:57
@jakefhyde jakefhyde force-pushed the data-dir-rfc branch 3 times, most recently from dcb487a to efe766a Compare May 14, 2024 19:42

for _, cluster := range provClusters.Items {
systemAgentDataDir := ""
for i, e := range cluster.Spec.AgentEnvVars {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think I need to redo this migration for bounds checking.

@jakefhyde jakefhyde requested review from Oats87, snasovich and a team June 4, 2024 18:20
@jakefhyde jakefhyde marked this pull request as ready for review June 4, 2024 18:24
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.

None yet

1 participant