-
Notifications
You must be signed in to change notification settings - Fork 22
K3s package rework #176
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
K3s package rework #176
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left few comments, but else looks good. Will await the freeform job.
f9d2c20
to
ee9ad31
Compare
ee9ad31
to
1398e45
Compare
679988f
1398e45
to
679988f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
none of my comments are blocking, but I do have some clarifying questions for my own understanding and some comments on syntax/formatting. LGTM for pit team
sshPath: "<>" | ||
|
||
awsCredentials: | ||
secretKey: "<>" | ||
accessKey: "<>" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does it make sense to have these in 'defaults' if they don't have a default value set?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just added them to indicate that those fields are required for the objects in question. I suppose maybe I could replace <> with "< required >" if that would make it clearer.
machinePools []provisioninginput.MachinePools | ||
scanProfileName string | ||
}{ | ||
{"K3S_CIS_1.9_Profile|3_etcd|2_cp|3_worker", k.standardUserClient, nodeRolesStandard, "k3s-cis-1.9-profile"}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for CIS profile, I doesn't that change somewhat often? If so, wouldn't it make sense to make this less hardcoded in some way, i.e. a regex on the profile version or something?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I need to rework this test at some point since the new chart is called compliance. I am working on updating that but it will be in a future PR
@@ -0,0 +1,110 @@ | |||
//go:build validation || recurring |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how are you guys using tags, 'recurring' seems too vague imo. Do you have some cadence that you run the recurring tests on? If so, do you run the same set (everything with 'recurring' tag) every time, or a subset of these?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For now we are going to run all of them and we are planning on a weekly/bi-weekly cadence. As we continue to upgrade our recurring runs we might change the tags later but that should be easy to change down the road.
func TestPSACT(t *testing.T) { | ||
t.Parallel() | ||
k := psactSetup(t) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so you're still using testing.T, but not using the builtin setupSuite. Why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
setupSuite is specific to testify. It is not built in as far as i'm aware.
46ca35f
46ca35f
to
3991baa
Compare
review fixes updates update go.mod updates update defaults
3991baa
to
fc31d9a
Compare
CustomClusterProvisioningTestSuite TearDownSuite TestSuites above were modified. TestSuites below use modified code from this PR. TestCustomClusterK3SProvisioningTestSuite |
PR to rework the k3s package to use similar logic to the rke2 package.
Changes: