Skip to content

Commit

Permalink
Add namespace back:
Browse files Browse the repository at this point in the history
This is needed when creating hardware and workflows
in auto enrollment mode. Otherwise we don't know where
and can't create the Kubernetes objects.

Signed-off-by: Jacob Weinstock <[email protected]>
  • Loading branch information
jacobweinstock committed Aug 14, 2024
1 parent d9d3a3b commit 0f604ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/server/kubernetes_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ func NewKubeBackedServerFromREST(logger logr.Logger, config *rest.Config, namesp
logger: logger,
ClientFunc: clstr.GetClient,
nowFunc: time.Now,
namespace: namespace,

Check warning on line 112 in internal/server/kubernetes_api.go

View check run for this annotation

Codecov / codecov/patch

internal/server/kubernetes_api.go#L112

Added line #L112 was not covered by tests
}
for _, opt := range opts {
opt(k)

Check warning on line 115 in internal/server/kubernetes_api.go

View check run for this annotation

Codecov / codecov/patch

internal/server/kubernetes_api.go#L114-L115

Added lines #L114 - L115 were not covered by tests
Expand Down

0 comments on commit 0f604ba

Please sign in to comment.