-
Notifications
You must be signed in to change notification settings - Fork 22
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
Enhance ownerReferences for Secrets used by CAPX #340
Enhance ownerReferences for Secrets used by CAPX #340
Conversation
532c483
to
ca05ccb
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #340 +/- ##
=========================================
+ Coverage 8.89% 10.99% +2.10%
=========================================
Files 4 4
Lines 1046 1046
=========================================
+ Hits 93 115 +22
+ Misses 953 931 -22 ☔ View full report in Codecov by Sentry. |
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.
LGTM
/test all |
ca05ccb
to
1c67b18
Compare
1c67b18
to
d0096cf
Compare
/retest |
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: thunderboltsid, yannickstruyf3 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
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.
LGTM
@@ -24,6 +24,9 @@ import ( | |||
) | |||
|
|||
const ( | |||
// NutanixClusterKind represents the Kind of NutanixCluster | |||
NutanixClusterKind = "NutanixClusterKind" |
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.
In CAPI ClusterKind is simply "Cluster":
https://github.com/kubernetes-sigs/cluster-api/blob/9d36ddcbf8381574a86cebeacdcdfc85bafa71e9/api/v1beta1/cluster_types.go#L39
Do we really need "NutanixClusterKind" but not "NutanixCluster"?
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.
Good spot @adiantum! These should definitely not have the Kind
suffix in the string values.
@@ -28,6 +28,9 @@ import ( | |||
// NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized. | |||
|
|||
const ( | |||
// NutanixMachineKind represents the Kind of NutanixMachine | |||
NutanixMachineKind = "NutanixMachineKind" |
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.
Do we really need "NutanixMachineKind" instead of "NutanixMachine"?
@@ -23,6 +23,11 @@ import ( | |||
|
|||
// NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized. | |||
|
|||
const ( | |||
// NutanixMachineTemplateKind represents the Kind of NutanixMachineTemplate | |||
NutanixMachineTemplateKind = "NutanixMachineTemplateKind" |
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.
Same here: do we really need "Kind" suffix?
What this PR does / why we need it:
For example:
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):N/A
How Has This Been Tested?:
make unit-test
Special notes for your reviewer:
N/A
Release note: