-
Notifications
You must be signed in to change notification settings - Fork 9
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
Adds new metadata values #40
Adds new metadata values #40
Conversation
Curious, what is Publish? |
It tells you if the cluster is External or Private facing, I'm open to new names |
4e3353c
to
1f145f7
Compare
a40134e
to
d6b6c68
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #40 +/- ##
==========================================
+ Coverage 84.66% 86.06% +1.40%
==========================================
Files 6 6
Lines 339 287 -52
==========================================
- Hits 287 247 -40
+ Misses 38 26 -12
Partials 14 14 ☔ 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.
.
- Includes FIPS, Publish, and Architecture extraction Signed-off-by: Vicente Zepeda Mas <[email protected]>
Signed-off-by: Vicente Zepeda Mas <[email protected]>
Signed-off-by: Vicente Zepeda Mas <[email protected]>
e697c3d
to
0af14b4
Compare
Signed-off-by: Vicente Zepeda Mas <[email protected]>
0e2c177
to
46fc55e
Compare
Signed-off-by: Vicente Zepeda Mas <[email protected]>
if its just a bool, can we rename it as |
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.
The current metadata implementation doesn't crash when used on vanilla kubernetes clusters (kind), I wonder if it's possible to follow this strategy with the new fields.
For example, the library was handling the error of the infra object in these lines:
go-commons/ocp-metadata/ocp-metadata.go
Lines 173 to 178 in 0140b10
if err != nil { | |
// If the infrastructure resource is not found we assume this is not an OCP cluster | |
if errors.IsNotFound(err) { | |
return nil, nil | |
} | |
return &infraJSON, err |
Updates versions in missing actions Signed-off-by: Vicente Zepeda Mas <[email protected]>
Resolved all the comments. |
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,
works in OCP and Vanillla k8s
Vanilla k8s
$ go run main.go | jq .
{
"k8sVersion": "v1.29.2",
"masterNodesCount": 1,
"totalNodes": 1
}
OCP 4 .12
$ go run main.go | jq .
{
"platform": "AWS",
"clusterType": "self-managed",
"ocpVersion": "4.14.3",
"ocpMajorVersion": "4.14",
"k8sVersion": "v1.27.6+b49f9d1",
"masterNodesType": "m6i.2xlarge",
"masterNodesCount": 3,
"workerNodesCount": 3,
"totalNodes": 3,
"sdnType": "OVNKubernetes",
"clusterName": "ocp-ci-hq68v",
"region": "us-west-2",
"publish": "External",
"workerArch": "amd64",
"controlPlaneArch": "amd64",
"ipsecMode": "Disabled"
}
Type of change
Description
Related Tickets & Documents
Checklist before requesting a review
Testing