Skip to content

Commit

Permalink
Impl explicit mapping of K8s Hardware to export hardware.
Browse files Browse the repository at this point in the history
Http handlers require a specific metadata format for querying using jq.
The metadata format of the Kubernetes object isn't equivilent so we
create an explicit mapping. This has the side effect of being much
clearer and intentional about the serialization of metadata.

Signed-off-by: Chris Doherty <[email protected]>
  • Loading branch information
chrisdoherty4 committed May 6, 2022
1 parent d77b0a1 commit 8ee9572
Show file tree
Hide file tree
Showing 5 changed files with 196 additions and 41 deletions.
12 changes: 4 additions & 8 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,10 @@ require (
github.com/spf13/pflag v1.0.5
github.com/spf13/viper v1.8.1
github.com/stretchr/testify v1.7.0
github.com/tinkerbell/tink v0.0.0-20201207184750-9c52cca562bc
github.com/tinkerbell/tink v0.6.1-0.20220505200929-fee17e495019
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.26.1
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.28.0
google.golang.org/grpc v1.42.0
)

require (
k8s.io/apimachinery v0.23.0
k8s.io/client-go v0.23.0
sigs.k8s.io/controller-runtime v0.11.1
Expand All @@ -42,7 +39,7 @@ require (
github.com/evanphx/json-patch v4.12.0+incompatible // indirect
github.com/felixge/httpsnoop v1.0.2 // indirect
github.com/fsnotify/fsnotify v1.5.1 // indirect
github.com/go-logr/logr v1.2.2 // indirect
github.com/go-logr/logr v1.2.3 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/go-logr/zapr v1.2.0 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
Expand All @@ -69,6 +66,7 @@ require (
github.com/prometheus/common v0.32.1 // indirect
github.com/prometheus/procfs v0.7.3 // indirect
github.com/rollbar/rollbar-go v1.4.2 // indirect
github.com/smartystreets/assertions v1.0.0 // indirect
github.com/spf13/afero v1.6.0 // indirect
github.com/spf13/cast v1.3.1 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
Expand Down Expand Up @@ -102,13 +100,11 @@ require (
k8s.io/api v0.23.0 // indirect
k8s.io/apiextensions-apiserver v0.23.0 // indirect
k8s.io/component-base v0.23.0 // indirect
k8s.io/klog/v2 v2.30.0 // indirect
k8s.io/klog/v2 v2.60.1 // indirect
k8s.io/kube-openapi v0.0.0-20211115234752-e816edb12b65 // indirect
k8s.io/utils v0.0.0-20210930125809-cb0fa318a74b // indirect
knative.dev/pkg v0.0.0-20211119170723-a99300deff34 // indirect
sigs.k8s.io/json v0.0.0-20211020170558-c049b76a60c6 // indirect
sigs.k8s.io/structured-merge-diff/v4 v4.2.0 // indirect
sigs.k8s.io/yaml v1.3.0 // indirect
)

replace github.com/tinkerbell/tink => github.com/micahhausler/tink v0.0.0-20220405214824-8387611ceaea
Loading

0 comments on commit 8ee9572

Please sign in to comment.