Skip to content

Commit

Permalink
Merge pull request openshift#3342 from jparrill/feat/HOSTEDCP-336-fix…
Browse files Browse the repository at this point in the history
…tures

HOSTEDCP-336: Move fixtures out of API
  • Loading branch information
openshift-merge-bot[bot] authored Dec 22, 2023
2 parents c53a541 + d6116b9 commit 3957653
Show file tree
Hide file tree
Showing 18 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion cmd/cluster/agent/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
crclient "sigs.k8s.io/controller-runtime/pkg/client"

"github.com/openshift/hypershift/api/fixtures"
"github.com/openshift/hypershift/cmd/cluster/core"
"github.com/openshift/hypershift/cmd/util"
"github.com/openshift/hypershift/examples/fixtures"
)

func NewCreateCommand(opts *core.CreateOptions) *cobra.Command {
Expand Down
2 changes: 1 addition & 1 deletion cmd/cluster/aws/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import (
"fmt"
"os"

apifixtures "github.com/openshift/hypershift/api/fixtures"
hyperv1 "github.com/openshift/hypershift/api/hypershift/v1beta1"
"github.com/openshift/hypershift/cmd/cluster/core"
awsinfra "github.com/openshift/hypershift/cmd/infra/aws"
"github.com/openshift/hypershift/cmd/util"
apifixtures "github.com/openshift/hypershift/examples/fixtures"
"github.com/openshift/hypershift/support/infraid"
"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/cluster/azure/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import (
"strings"
"syscall"

apifixtures "github.com/openshift/hypershift/api/fixtures"
hyperv1 "github.com/openshift/hypershift/api/hypershift/v1beta1"
"github.com/openshift/hypershift/cmd/cluster/core"
azureinfra "github.com/openshift/hypershift/cmd/infra/azure"
apifixtures "github.com/openshift/hypershift/examples/fixtures"
"github.com/openshift/hypershift/support/infraid"
"github.com/openshift/hypershift/support/releaseinfo"

Expand Down
2 changes: 1 addition & 1 deletion cmd/cluster/core/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ import (

"github.com/blang/semver"
"github.com/go-logr/logr"
apifixtures "github.com/openshift/hypershift/api/fixtures"
hyperv1 "github.com/openshift/hypershift/api/hypershift/v1beta1"
"github.com/openshift/hypershift/cmd/util"
"github.com/openshift/hypershift/cmd/version"
apifixtures "github.com/openshift/hypershift/examples/fixtures"
hyperapi "github.com/openshift/hypershift/support/api"
"github.com/openshift/hypershift/support/globalconfig"
"github.com/openshift/hypershift/support/releaseinfo"
Expand Down
2 changes: 1 addition & 1 deletion cmd/cluster/kubevirt/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import (

"github.com/spf13/cobra"

apifixtures "github.com/openshift/hypershift/api/fixtures"
hyperv1 "github.com/openshift/hypershift/api/hypershift/v1beta1"
"github.com/openshift/hypershift/cmd/cluster/core"
"github.com/openshift/hypershift/cmd/cluster/kubevirt/params"
apifixtures "github.com/openshift/hypershift/examples/fixtures"
"github.com/openshift/hypershift/support/infraid"
corev1 "k8s.io/api/core/v1"
"k8s.io/utils/pointer"
Expand Down
2 changes: 1 addition & 1 deletion cmd/cluster/kubevirt/create_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
. "github.com/onsi/gomega"
"k8s.io/utils/pointer"

apifixtures "github.com/openshift/hypershift/api/fixtures"
hyperv1 "github.com/openshift/hypershift/api/hypershift/v1beta1"
"github.com/openshift/hypershift/cmd/cluster/core"
apifixtures "github.com/openshift/hypershift/examples/fixtures"
)

func Test_ApplyPlatformSpecificValues(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion cmd/cluster/none/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (

"github.com/spf13/cobra"

apifixtures "github.com/openshift/hypershift/api/fixtures"
"github.com/openshift/hypershift/cmd/cluster/core"
apifixtures "github.com/openshift/hypershift/examples/fixtures"
)

func NewCreateCommand(opts *core.CreateOptions) *cobra.Command {
Expand Down
2 changes: 1 addition & 1 deletion cmd/cluster/powervs/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (
"os/signal"
"syscall"

apifixtures "github.com/openshift/hypershift/api/fixtures"
hyperv1 "github.com/openshift/hypershift/api/hypershift/v1beta1"
"github.com/openshift/hypershift/cmd/cluster/core"
powervsinfra "github.com/openshift/hypershift/cmd/infra/powervs"
apifixtures "github.com/openshift/hypershift/examples/fixtures"
"github.com/openshift/hypershift/support/infraid"
"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/nodepool/kubevirt/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"fmt"

"github.com/openshift/hypershift/api/fixtures"
"github.com/openshift/hypershift/examples/fixtures"
"github.com/spf13/cobra"
crclient "sigs.k8s.io/controller-runtime/pkg/client"

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/blang/semver"
jsonpatch "github.com/evanphx/json-patch/v5"
"github.com/go-logr/logr"
apiexample "github.com/openshift/hypershift/api/fixtures"
apiexample "github.com/openshift/hypershift/examples/fixtures"
"golang.org/x/sync/errgroup"
corev1 "k8s.io/api/core/v1"
apierrors "k8s.io/apimachinery/pkg/api/errors"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"sigs.k8s.io/controller-runtime/pkg/client/fake"

apiexample "github.com/openshift/hypershift/api/fixtures"
"github.com/openshift/hypershift/api/hypershift/v1beta1"
apiexample "github.com/openshift/hypershift/examples/fixtures"
"github.com/openshift/hypershift/kubevirtexternalinfra"
"github.com/openshift/hypershift/support/api"
)
Expand Down

0 comments on commit 3957653

Please sign in to comment.