Skip to content

Commit 9da0e48

Browse files
committed
Update to devfile/api commit 283b0c54946e9fea9872c25e1e086c303688f0e8
* Update Makefile to point at latest devfile/api commit and support v2 * Update to devfile/api commit f33d2987d137225cd1e8975f6fdfdd2663195a37 * Adapt code to support new module name (.../v2) (see: devfile/api#280) Signed-off-by: Angel Misevski <[email protected]>
1 parent 11bccb3 commit 9da0e48

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+69
-68
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export ROUTING_SUFFIX ?= 192.168.99.100.nip.io
2323
export PULL_POLICY ?= Always
2424
export DEFAULT_ROUTING ?= basic
2525
export KUBECONFIG ?= ${HOME}/.kube/config
26-
export DEVWORKSPACE_API_VERSION ?= aeda60d4361911da85103f224644bfa792498499
26+
export DEVWORKSPACE_API_VERSION ?= 283b0c54946e9fea9872c25e1e086c303688f0e8
2727

2828
#internal params
2929
DEVWORKSPACE_CTRL_SA=devworkspace-controller-serviceaccount
@@ -110,7 +110,7 @@ endif
110110
##### Rules for dealing with devfile/api
111111
### update_devworkspace_api: update version of devworkspace crds in go.mod
112112
update_devworkspace_api:
113-
go mod edit --require github.com/devfile/api@$(DEVWORKSPACE_API_VERSION)
113+
go mod edit --require github.com/devfile/api/v2@$(DEVWORKSPACE_API_VERSION)
114114
go mod download
115115
go mod tidy
116116

apis/controller/v1alpha1/component.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
package v1alpha1
1414

1515
import (
16-
devworkspace "github.com/devfile/api/pkg/apis/workspaces/v1alpha2"
16+
devworkspace "github.com/devfile/api/v2/pkg/apis/workspaces/v1alpha2"
1717
)
1818

1919
// Description of a devfile component's workspace additions

apis/controller/v1alpha1/component_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
package v1alpha1
1414

1515
import (
16-
devworkspace "github.com/devfile/api/pkg/apis/workspaces/v1alpha2"
16+
devworkspace "github.com/devfile/api/v2/pkg/apis/workspaces/v1alpha2"
1717
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
1818
)
1919

apis/controller/v1alpha1/workspacerouting_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
package v1alpha1
1414

1515
import (
16-
devworkspace "github.com/devfile/api/pkg/apis/workspaces/v1alpha2"
16+
devworkspace "github.com/devfile/api/v2/pkg/apis/workspaces/v1alpha2"
1717
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
1818
)
1919

apis/controller/v1alpha1/zz_generated.deepcopy.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controllers/controller/workspacerouting/solvers/cluster_solver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import (
1717

1818
"github.com/devfile/devworkspace-operator/pkg/common"
1919

20-
devworkspace "github.com/devfile/api/pkg/apis/workspaces/v1alpha2"
20+
devworkspace "github.com/devfile/api/v2/pkg/apis/workspaces/v1alpha2"
2121
controllerv1alpha1 "github.com/devfile/devworkspace-operator/apis/controller/v1alpha1"
2222
"github.com/devfile/devworkspace-operator/pkg/config"
2323
corev1 "k8s.io/api/core/v1"

controllers/controller/workspacerouting/solvers/common.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
package solvers
1414

1515
import (
16-
"github.com/devfile/api/pkg/apis/workspaces/v1alpha2"
17-
devworkspace "github.com/devfile/api/pkg/apis/workspaces/v1alpha2"
16+
"github.com/devfile/api/v2/pkg/apis/workspaces/v1alpha2"
17+
devworkspace "github.com/devfile/api/v2/pkg/apis/workspaces/v1alpha2"
1818
controllerv1alpha1 "github.com/devfile/devworkspace-operator/apis/controller/v1alpha1"
1919
"github.com/devfile/devworkspace-operator/pkg/common"
2020
"github.com/devfile/devworkspace-operator/pkg/config"

controllers/controller/workspacerouting/solvers/openshift_oauth_solver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
maputils "github.com/devfile/devworkspace-operator/internal/map"
1919
"sigs.k8s.io/controller-runtime/pkg/client"
2020

21-
devworkspace "github.com/devfile/api/pkg/apis/workspaces/v1alpha2"
21+
devworkspace "github.com/devfile/api/v2/pkg/apis/workspaces/v1alpha2"
2222
controllerv1alpha1 "github.com/devfile/devworkspace-operator/apis/controller/v1alpha1"
2323
"github.com/devfile/devworkspace-operator/pkg/common"
2424
"github.com/devfile/devworkspace-operator/pkg/config"

controllers/controller/workspacerouting/solvers/resolve_endpoints.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import (
1717
"net/url"
1818
"strings"
1919

20-
devworkspace "github.com/devfile/api/pkg/apis/workspaces/v1alpha2"
20+
devworkspace "github.com/devfile/api/v2/pkg/apis/workspaces/v1alpha2"
2121
controllerv1alpha1 "github.com/devfile/devworkspace-operator/apis/controller/v1alpha1"
2222
"github.com/devfile/devworkspace-operator/pkg/config"
2323
)

controllers/workspace/devworkspace_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ import (
4545
"sigs.k8s.io/controller-runtime/pkg/client"
4646
"sigs.k8s.io/controller-runtime/pkg/reconcile"
4747

48-
devworkspace "github.com/devfile/api/pkg/apis/workspaces/v1alpha2"
48+
devworkspace "github.com/devfile/api/v2/pkg/apis/workspaces/v1alpha2"
4949
)
5050

5151
type currentStatus struct {

0 commit comments

Comments
 (0)