Skip to content

Commit

Permalink
Updating all v1alpha1 API references to v1beta1 API
Browse files Browse the repository at this point in the history
of shipwright-io/build. Updating the kodata/samples/buildstrategy files to use
https://github.com/shipwright-io/build/releases/download/v0.13.0/sample-strategies.yaml

Signed-off by : Ayush Satyam<[email protected]>
  • Loading branch information
ayushsatyam146 committed Jun 10, 2024
1 parent fcca417 commit e00a28a
Show file tree
Hide file tree
Showing 34 changed files with 5,251 additions and 1,108 deletions.
4 changes: 2 additions & 2 deletions controllers/buildstrategies_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

buildv1alpha1 "github.com/shipwright-io/build/pkg/apis/build/v1alpha1"
buildv1beta1 "github.com/shipwright-io/build/pkg/apis/build/v1beta1"
"github.com/shipwright-io/operator/api/v1alpha1"
"github.com/shipwright-io/operator/test"
)
Expand All @@ -29,7 +29,7 @@ var _ = Describe("Install embedded build strategies", func() {
expectedBuildStrategies, err := test.ParseBuildStrategyNames()
Expect(err).NotTo(HaveOccurred())
for _, strategy := range expectedBuildStrategies {
strategyObj := &buildv1alpha1.ClusterBuildStrategy{
strategyObj := &buildv1beta1.ClusterBuildStrategy{
ObjectMeta: metav1.ObjectMeta{
Name: strategy,
},
Expand Down
4 changes: 2 additions & 2 deletions controllers/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (

tektonoperatorv1alpha1client "github.com/tektoncd/operator/pkg/client/clientset/versioned/typed/operator/v1alpha1"

buildv1alpha1 "github.com/shipwright-io/build/pkg/apis/build/v1alpha1"
buildv1beta1 "github.com/shipwright-io/build/pkg/apis/build/v1beta1"
operatorv1alpha1 "github.com/shipwright-io/operator/api/v1alpha1"
"github.com/shipwright-io/operator/pkg/common"
"github.com/shipwright-io/operator/test"
Expand Down Expand Up @@ -187,7 +187,7 @@ var _ = BeforeSuite(func() {
err = crdv1.AddToScheme(scheme.Scheme)
Expect(err).NotTo(HaveOccurred())

err = buildv1alpha1.AddToScheme(scheme.Scheme)
err = buildv1beta1.AddToScheme(scheme.Scheme)
Expect(err).NotTo(HaveOccurred())

// +kubebuilder:scaffold:scheme
Expand Down

This file was deleted.

Loading

0 comments on commit e00a28a

Please sign in to comment.