Skip to content

nfd-source release testing v0.0.0

Choose a tag to compare

@vsoch vsoch released this 22 Feb 19:17
· 4 commits to main since this release
8d3e3a2

This is primarily a test for installing.

Changes

I made the following changes to cleanly separate the Kubernetes logic from the source logic.

  • pkg/apis/nfd/v1alpha1/types.go
    • The need for corev1 in types.go is only because of Taints, which I don't see anywhere in source so I'm removing.
    • metav1 is to add object metadata (also for Kubernetes) so I will remove that for now.
    • The protocol buffers would also be for gRPC, which is a specific use case not necessary for underlying source.
    • It looks like we don't actually need NodeFeature, NodeFeatureSpec, NodeFeatureList, NodeFeatureRule (these are higher level in the logic)
    • The entire namespace of Rule/Match is oriented to custom, which also seems like it belongs in the upstream
    • I'm keeping the same path for now to maintain git history
    • When we remove the above, the interface is very simple!
  • pkg/apis/nfd/v1alpha1/register.go
    • Is primarily for K8s schemas, etc. can be removed.
  • pkg/apis/nfd/v1alpha1/feature.go
    • MergeInto functions are not used, as aren't the Node specific ones.
  • pkg/apis/nfd/v1alpha1/nodefeaturerule
    • Also does not seem used in source
  • pkg/utils/flags.go also not used
  • pkg/utils/memory_resources.go (and test) are not used in source, this is again for K8s
  • pkg/utils/(klog|kubeconf|grpc_log.go|metrics.go|tls.go) are kubernetes specific, also removing, and kubernetes.go
  • klog is replaced with "slog" which is part of go as of 1.21

Full Changelog: https://github.com/converged-computing/nfd-source/commits/0.0.0