Skip to content

Add post-provisioning check for ETCD S3 configuration#488

Open
navsalehi wants to merge 1 commit intorancher:mainfrom
navsalehi:s3-snapshot-enhancement
Open

Add post-provisioning check for ETCD S3 configuration#488
navsalehi wants to merge 1 commit intorancher:mainfrom
navsalehi:s3-snapshot-enhancement

Conversation

@navsalehi
Copy link
Contributor

@navsalehi navsalehi commented Jan 30, 2026

This PR adds a post-provisioning validation to S3 snapshot restore tests to ensure the cluster was created with ETCD S3 configuration enabled.

@github-actions
Copy link

S3SnapshotRestoreTestSuite TestS3SnapshotRestore

TestSuites above were modified. TestSuites below use modified code from this PR.

@github-actions
Copy link

S3SnapshotRestoreTestSuite TestS3SnapshotRestore
RKE1S3SnapshotRestoreTestSuite TestRKE1S3SnapshotRestore
S3SnapshotRestoreTestSuite TestS3SnapshotRestore

TestSuites above were modified. TestSuites below use modified code from this PR.

@navsalehi navsalehi force-pushed the s3-snapshot-enhancement branch from 96294e2 to 0207e11 Compare January 30, 2026 01:09
@github-actions
Copy link

S3SnapshotRestoreTestSuite TestS3SnapshotRestore
RKE1S3SnapshotRestoreTestSuite TestRKE1S3SnapshotRestore
S3SnapshotRestoreTestSuite TestS3SnapshotRestore

TestSuites above were modified. TestSuites below use modified code from this PR.

add rke2 and rke1

add package

remove rke1
@navsalehi navsalehi force-pushed the s3-snapshot-enhancement branch from 0207e11 to 17295de Compare January 30, 2026 01:33
@github-actions
Copy link

S3SnapshotRestoreTestSuite TestS3SnapshotRestore
S3SnapshotRestoreTestSuite TestS3SnapshotRestore

TestSuites above were modified. TestSuites below use modified code from this PR.

Copy link
Contributor

@markusewalker markusewalker left a comment

Choose a reason for hiding this comment

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

Overall, LGTM, nice job! Left one comment and will await offline test results to make sure all is well.

err = etcdsnapshot.CreateAndValidateSnapshotRestore(s.client, cluster.Name, tt.etcdSnapshot, containerImage)
require.NoError(s.T(), err)

err = etcdsnapshot.VerifyS3Config(s.cluster)
Copy link
Contributor

Choose a reason for hiding this comment

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

This can be moved to be immediately after the ProvisionRKE2K3SCluster function. For existing clusters and non-existing clusters.

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

Comments