Skip to content

Commit

Permalink
bump metal-operator and register corev1
Browse files Browse the repository at this point in the history
  • Loading branch information
defo89 committed Feb 7, 2025
1 parent 3653657 commit b1493e9
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Tiltfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def deploy_bmo_crd():
local(cmd, quiet=False)

def deploy_metal_crd():
version = "9a29dae0cfa4575cc94b3c9d9643e441cea7ef9b"
version = "da2a8154c95f3e087c3dbd798b1ff28328266dab"
bmcSecret_uri = "https://raw.githubusercontent.com/ironcore-dev/metal-operator/{}/config/crd/bases/metal.ironcore.dev_bmcsecrets.yaml".format(version)
cmd_bmcSecret = "curl -sSL {} | kubectl apply -f -".format(bmcSecret_uri)
bmc_uri = "https://raw.githubusercontent.com/ironcore-dev/metal-operator/{}/config/crd/bases/metal.ironcore.dev_bmcs.yaml".format(version)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ require (

require (
github.com/ironcore-dev/controller-utils v0.9.7
github.com/ironcore-dev/metal-operator v0.0.0-20250124150016-d635c5061d9d
github.com/ironcore-dev/metal-operator v0.0.0-20250204075245-da2a8154c95f
gopkg.in/yaml.v3 v3.0.1
k8s.io/apimachinery v0.31.4
)
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ github.com/ironcore-dev/controller-utils v0.9.7 h1:ywNcB6lDeOe6UWxJaptbdgb9qb6cD
github.com/ironcore-dev/controller-utils v0.9.7/go.mod h1:7X6JUmq75o4KFe05zUa9rEXnS39dSrlXqUnt9Wuiug0=
github.com/ironcore-dev/metal-operator v0.0.0-20250124150016-d635c5061d9d h1:KQRviy/X0Y3RDiKEMtZOYEekHkw13l1rpqmqEue2MTc=
github.com/ironcore-dev/metal-operator v0.0.0-20250124150016-d635c5061d9d/go.mod h1:XEu2LqU4QIbqN5bXAbVD3SlitEOuLHtm3P/TrRzrEKg=
github.com/ironcore-dev/metal-operator v0.0.0-20250204075245-da2a8154c95f h1:DHkPpjZjYAD2NLHMBvc6RC0OwttoVwyKPlQpCKYfYWw=
github.com/ironcore-dev/metal-operator v0.0.0-20250204075245-da2a8154c95f/go.mod h1:XEu2LqU4QIbqN5bXAbVD3SlitEOuLHtm3P/TrRzrEKg=
github.com/josharian/intern v1.0.0 h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY=
github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y=
github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM=
Expand Down
6 changes: 6 additions & 0 deletions internal/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ package cmd
import (
"crypto/tls"
"fmt"
corev1 "k8s.io/api/core/v1"

Check failure on line 9 in internal/cmd/root.go

View workflow job for this annotation

GitHub Actions / Checks

File is not properly formatted (goimports)
"os"

"k8s.io/apimachinery/pkg/runtime"
Expand Down Expand Up @@ -109,6 +110,11 @@ func RunRootCmd(cmd *cobra.Command, args []string) error {
setupLog.Error(err, "unable to create manager")
return err
}
err = corev1.AddToScheme(mgr.GetScheme())
if err != nil {
setupLog.Error(err, "unable to register core API scheme")
return err
}
err = clusterv1.AddToScheme(mgr.GetScheme())
if err != nil {
setupLog.Error(err, "unable to register cluster api scheme")
Expand Down

0 comments on commit b1493e9

Please sign in to comment.