Skip to content

Commit

Permalink
Modified tink hardware crd example
Browse files Browse the repository at this point in the history
Signed-off-by: panktishah26 <[email protected]>
  • Loading branch information
panktishah26 committed May 10, 2022
1 parent 8985e8a commit 942644b
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 240 deletions.
2 changes: 0 additions & 2 deletions cmd/tink-controller/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (
"github.com/spf13/pflag"
"github.com/spf13/viper"
"github.com/tinkerbell/tink/pkg/controllers"
hwctrl "github.com/tinkerbell/tink/pkg/controllers/hardware"
wfctrl "github.com/tinkerbell/tink/pkg/controllers/workflow"
"k8s.io/client-go/tools/clientcmd"
clientcmdapi "k8s.io/client-go/tools/clientcmd/api"
Expand Down Expand Up @@ -82,7 +81,6 @@ func NewRootCommand(config *DaemonConfig, logger log.Logger) *cobra.Command {

return manager.RegisterControllers(
cmd.Context(),
hwctrl.NewController(manager.GetClient()),
wfctrl.NewController(manager.GetClient()),
).Start(cmd.Context())
},
Expand Down
10 changes: 2 additions & 8 deletions config/crd/examples/hardware.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ metadata:
name: sm01
namespace: default
spec:
disks:
- device: /dev/nvme0n1
metadata:
facility:
facility_code: onprem
Expand All @@ -17,14 +19,6 @@ spec:
distro: "ubuntu"
os_slug: "ubuntu_20_04"
version: "20.04"
storage:
disks:
- device: /dev/nvme0n1
partitions:
- label: ROOT
number: 1
size: 0
wipe_table: true
interfaces:
- dhcp:
arch: x86_64
Expand Down
81 changes: 0 additions & 81 deletions pkg/controllers/hardware/controller.go

This file was deleted.

149 changes: 0 additions & 149 deletions pkg/controllers/hardware/controller_test.go

This file was deleted.

0 comments on commit 942644b

Please sign in to comment.