File tree 29 files changed +29
-29
lines changed
webhook/workspace/handler 29 files changed +29
-29
lines changed Original file line number Diff line number Diff line change @@ -16,10 +16,10 @@ import (
16
16
"encoding/json"
17
17
"fmt"
18
18
19
+ devworkspace "github.com/devfile/api/pkg/apis/workspaces/v1alpha1"
19
20
"github.com/devfile/devworkspace-operator/pkg/apis/controller/v1alpha1"
20
21
"github.com/devfile/devworkspace-operator/pkg/common"
21
22
"github.com/devfile/devworkspace-operator/pkg/config"
22
- devworkspace "github.com/devfile/kubernetes-api/pkg/apis/workspaces/v1alpha1"
23
23
"github.com/eclipse/che-plugin-broker/model"
24
24
corev1 "k8s.io/api/core/v1"
25
25
"k8s.io/apimachinery/pkg/api/resource"
Original file line number Diff line number Diff line change 13
13
package adaptor
14
14
15
15
import (
16
- devworkspace "github.com/devfile/kubernetes- api/pkg/apis/workspaces/v1alpha1"
16
+ devworkspace "github.com/devfile/api/pkg/apis/workspaces/v1alpha1"
17
17
18
18
"github.com/devfile/devworkspace-operator/pkg/config"
19
19
corev1 "k8s.io/api/core/v1"
Original file line number Diff line number Diff line change @@ -16,10 +16,10 @@ import (
16
16
"fmt"
17
17
"strings"
18
18
19
+ devworkspace "github.com/devfile/api/pkg/apis/workspaces/v1alpha1"
19
20
"github.com/devfile/devworkspace-operator/pkg/apis/controller/v1alpha1"
20
21
"github.com/devfile/devworkspace-operator/pkg/common"
21
22
"github.com/devfile/devworkspace-operator/pkg/config"
22
- devworkspace "github.com/devfile/kubernetes-api/pkg/apis/workspaces/v1alpha1"
23
23
corev1 "k8s.io/api/core/v1"
24
24
)
25
25
Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ import (
17
17
"strconv"
18
18
"strings"
19
19
20
+ devworkspace "github.com/devfile/api/pkg/apis/workspaces/v1alpha1"
20
21
"github.com/devfile/devworkspace-operator/pkg/apis/controller/v1alpha1"
21
- devworkspace "github.com/devfile/kubernetes-api/pkg/apis/workspaces/v1alpha1"
22
22
23
23
"github.com/devfile/devworkspace-operator/pkg/common"
24
24
"github.com/devfile/devworkspace-operator/pkg/config"
Original file line number Diff line number Diff line change 13
13
package apis
14
14
15
15
import (
16
+ devworkspace "github.com/devfile/api/pkg/apis/workspaces/v1alpha1"
16
17
"github.com/devfile/devworkspace-operator/internal/cluster"
17
18
"github.com/devfile/devworkspace-operator/pkg/apis/controller/v1alpha1"
18
- devworkspace "github.com/devfile/kubernetes-api/pkg/apis/workspaces/v1alpha1"
19
19
oauthv1 "github.com/openshift/api/oauth/v1"
20
20
routeV1 "github.com/openshift/api/route/v1"
21
21
templateV1 "github.com/openshift/api/template/v1"
Original file line number Diff line number Diff line change 13
13
package v1alpha1
14
14
15
15
import (
16
- devworkspace "github.com/devfile/kubernetes- api/pkg/apis/workspaces/v1alpha1"
16
+ devworkspace "github.com/devfile/api/pkg/apis/workspaces/v1alpha1"
17
17
)
18
18
19
19
// Description of a devfile component's workspace additions
Original file line number Diff line number Diff line change 13
13
package v1alpha1
14
14
15
15
import (
16
- devworkspace "github.com/devfile/kubernetes- api/pkg/apis/workspaces/v1alpha1"
16
+ devworkspace "github.com/devfile/api/pkg/apis/workspaces/v1alpha1"
17
17
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
18
18
)
19
19
Original file line number Diff line number Diff line change 13
13
package v1alpha1
14
14
15
15
import (
16
- devworkspace "github.com/devfile/kubernetes- api/pkg/apis/workspaces/v1alpha1"
16
+ devworkspace "github.com/devfile/api/pkg/apis/workspaces/v1alpha1"
17
17
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
18
18
)
19
19
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import (
17
17
18
18
"github.com/devfile/devworkspace-operator/internal/images"
19
19
20
- devworkspace "github.com/devfile/kubernetes- api/pkg/apis/workspaces/v1alpha1"
20
+ devworkspace "github.com/devfile/api/pkg/apis/workspaces/v1alpha1"
21
21
22
22
"gopkg.in/yaml.v2"
23
23
)
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ package cmd_terminal
15
15
import (
16
16
"strings"
17
17
18
- devworkspace "github.com/devfile/kubernetes- api/pkg/apis/workspaces/v1alpha1"
18
+ devworkspace "github.com/devfile/api/pkg/apis/workspaces/v1alpha1"
19
19
)
20
20
21
21
const (
Original file line number Diff line number Diff line change @@ -17,11 +17,11 @@ import (
17
17
"errors"
18
18
"fmt"
19
19
20
+ devworkspace "github.com/devfile/api/pkg/apis/workspaces/v1alpha1"
20
21
"github.com/devfile/devworkspace-operator/pkg/adaptor"
21
22
"github.com/devfile/devworkspace-operator/pkg/apis/controller/v1alpha1"
22
23
"github.com/devfile/devworkspace-operator/pkg/config"
23
24
"github.com/devfile/devworkspace-operator/pkg/controller/component/cmd_terminal"
24
- devworkspace "github.com/devfile/kubernetes-api/pkg/apis/workspaces/v1alpha1"
25
25
"github.com/google/go-cmp/cmp"
26
26
"github.com/google/go-cmp/cmp/cmpopts"
27
27
k8sErrors "k8s.io/apimachinery/pkg/api/errors"
Original file line number Diff line number Diff line change @@ -20,10 +20,10 @@ import (
20
20
21
21
"github.com/devfile/devworkspace-operator/pkg/common"
22
22
23
+ devworkspace "github.com/devfile/api/pkg/apis/workspaces/v1alpha1"
23
24
"github.com/devfile/devworkspace-operator/pkg/apis/controller/v1alpha1"
24
25
"github.com/devfile/devworkspace-operator/pkg/config"
25
26
"github.com/devfile/devworkspace-operator/pkg/controller/workspace/env"
26
- devworkspace "github.com/devfile/kubernetes-api/pkg/apis/workspaces/v1alpha1"
27
27
"github.com/google/go-cmp/cmp"
28
28
"github.com/google/go-cmp/cmp/cmpopts"
29
29
appsv1 "k8s.io/api/apps/v1"
Original file line number Diff line number Diff line change 13
13
package provision
14
14
15
15
import (
16
+ devworkspace "github.com/devfile/api/pkg/apis/workspaces/v1alpha1"
16
17
"github.com/devfile/devworkspace-operator/pkg/apis/controller/v1alpha1"
17
18
"github.com/devfile/devworkspace-operator/pkg/config"
18
- devworkspace "github.com/devfile/kubernetes-api/pkg/apis/workspaces/v1alpha1"
19
19
"github.com/go-logr/logr"
20
20
corev1 "k8s.io/api/core/v1"
21
21
"k8s.io/apimachinery/pkg/api/resource"
Original file line number Diff line number Diff line change 13
13
package provision
14
14
15
15
import (
16
+ devworkspace "github.com/devfile/api/pkg/apis/workspaces/v1alpha1"
16
17
"github.com/devfile/devworkspace-operator/pkg/config"
17
- devworkspace "github.com/devfile/kubernetes-api/pkg/apis/workspaces/v1alpha1"
18
18
"github.com/go-logr/logr"
19
19
rbacv1 "k8s.io/api/rbac/v1"
20
20
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Original file line number Diff line number Diff line change @@ -16,9 +16,9 @@ import (
16
16
"context"
17
17
"fmt"
18
18
19
+ devworkspace "github.com/devfile/api/pkg/apis/workspaces/v1alpha1"
19
20
"github.com/devfile/devworkspace-operator/pkg/apis/controller/v1alpha1"
20
21
"github.com/devfile/devworkspace-operator/pkg/config"
21
- devworkspace "github.com/devfile/kubernetes-api/pkg/apis/workspaces/v1alpha1"
22
22
"github.com/google/go-cmp/cmp"
23
23
"github.com/google/go-cmp/cmp/cmpopts"
24
24
"k8s.io/apimachinery/pkg/api/errors"
Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ package provision
15
15
import (
16
16
"context"
17
17
18
+ devworkspace "github.com/devfile/api/pkg/apis/workspaces/v1alpha1"
18
19
"github.com/devfile/devworkspace-operator/pkg/common"
19
- devworkspace "github.com/devfile/kubernetes-api/pkg/apis/workspaces/v1alpha1"
20
20
"github.com/google/go-cmp/cmp"
21
21
corev1 "k8s.io/api/core/v1"
22
22
"k8s.io/apimachinery/pkg/api/errors"
Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ package restapis
15
15
import (
16
16
"strings"
17
17
18
+ devworkspace "github.com/devfile/api/pkg/apis/workspaces/v1alpha1"
18
19
controllerv1alpha1 "github.com/devfile/devworkspace-operator/pkg/apis/controller/v1alpha1"
19
20
"github.com/devfile/devworkspace-operator/pkg/common"
20
21
"github.com/devfile/devworkspace-operator/pkg/config"
21
- devworkspace "github.com/devfile/kubernetes-api/pkg/apis/workspaces/v1alpha1"
22
22
corev1 "k8s.io/api/core/v1"
23
23
)
24
24
Original file line number Diff line number Diff line change @@ -16,11 +16,11 @@ import (
16
16
"context"
17
17
"encoding/json"
18
18
19
+ devworkspace "github.com/devfile/api/pkg/apis/workspaces/v1alpha1"
19
20
"github.com/devfile/devworkspace-operator/pkg/apis/controller/v1alpha1"
20
21
"github.com/devfile/devworkspace-operator/pkg/common"
21
22
"github.com/devfile/devworkspace-operator/pkg/config"
22
23
"github.com/devfile/devworkspace-operator/pkg/controller/workspace/provision"
23
- devworkspace "github.com/devfile/kubernetes-api/pkg/apis/workspaces/v1alpha1"
24
24
"github.com/google/go-cmp/cmp"
25
25
"github.com/google/go-cmp/cmp/cmpopts"
26
26
"gopkg.in/yaml.v2"
Original file line number Diff line number Diff line change @@ -16,9 +16,9 @@ import (
16
16
"strings"
17
17
18
18
//TODO
19
+ devworkspace "github.com/devfile/api/pkg/apis/workspaces/v1alpha1"
19
20
workspaceApi "github.com/devfile/devworkspace-operator/pkg/apis/controller/v1alpha1"
20
21
"github.com/devfile/devworkspace-operator/pkg/config"
21
- devworkspace "github.com/devfile/kubernetes-api/pkg/apis/workspaces/v1alpha1"
22
22
)
23
23
24
24
func devworkspaceTemplateToDevfileV1 (template * devworkspace.DevWorkspaceTemplateSpec ) * workspaceApi.DevfileSpec {
Original file line number Diff line number Diff line change @@ -23,9 +23,9 @@ import (
23
23
24
24
"github.com/go-logr/logr"
25
25
26
+ devworkspace "github.com/devfile/api/pkg/apis/workspaces/v1alpha1"
26
27
"github.com/devfile/devworkspace-operator/pkg/apis/controller/v1alpha1"
27
28
"github.com/devfile/devworkspace-operator/pkg/controller/workspace/provision"
28
- devworkspace "github.com/devfile/kubernetes-api/pkg/apis/workspaces/v1alpha1"
29
29
corev1 "k8s.io/api/core/v1"
30
30
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
31
31
kubeclock "k8s.io/apimachinery/pkg/util/clock"
Original file line number Diff line number Diff line change @@ -15,9 +15,9 @@ package workspace
15
15
import (
16
16
"fmt"
17
17
18
+ devworkspace "github.com/devfile/api/pkg/apis/workspaces/v1alpha1"
18
19
"github.com/devfile/devworkspace-operator/pkg/config"
19
20
"github.com/devfile/devworkspace-operator/pkg/webhook"
20
- devworkspace "github.com/devfile/kubernetes-api/pkg/apis/workspaces/v1alpha1"
21
21
)
22
22
23
23
// validateCreatorTimestamp checks that a devworkspace was created after workspace-related mutating webhooks
Original file line number Diff line number Diff line change @@ -21,13 +21,13 @@ import (
21
21
"strings"
22
22
"time"
23
23
24
+ devworkspace "github.com/devfile/api/pkg/apis/workspaces/v1alpha1"
24
25
"github.com/devfile/devworkspace-operator/internal/cluster"
25
26
controllerv1alpha1 "github.com/devfile/devworkspace-operator/pkg/apis/controller/v1alpha1"
26
27
"github.com/devfile/devworkspace-operator/pkg/common"
27
28
"github.com/devfile/devworkspace-operator/pkg/config"
28
29
"github.com/devfile/devworkspace-operator/pkg/controller/workspace/provision"
29
30
"github.com/devfile/devworkspace-operator/pkg/controller/workspace/restapis"
30
- devworkspace "github.com/devfile/kubernetes-api/pkg/apis/workspaces/v1alpha1"
31
31
"github.com/go-logr/logr"
32
32
"github.com/google/uuid"
33
33
"github.com/operator-framework/operator-sdk/pkg/k8sutil"
Original file line number Diff line number Diff line change @@ -17,9 +17,9 @@ import (
17
17
18
18
"github.com/devfile/devworkspace-operator/pkg/common"
19
19
20
+ devworkspace "github.com/devfile/api/pkg/apis/workspaces/v1alpha1"
20
21
"github.com/devfile/devworkspace-operator/pkg/apis/controller/v1alpha1"
21
22
"github.com/devfile/devworkspace-operator/pkg/config"
22
- devworkspace "github.com/devfile/kubernetes-api/pkg/apis/workspaces/v1alpha1"
23
23
corev1 "k8s.io/api/core/v1"
24
24
)
25
25
Original file line number Diff line number Diff line change 13
13
package solvers
14
14
15
15
import (
16
+ devworkspace "github.com/devfile/api/pkg/apis/workspaces/v1alpha1"
16
17
"github.com/devfile/devworkspace-operator/pkg/apis/controller/v1alpha1"
17
18
"github.com/devfile/devworkspace-operator/pkg/common"
18
19
"github.com/devfile/devworkspace-operator/pkg/config"
19
- devworkspace "github.com/devfile/kubernetes-api/pkg/apis/workspaces/v1alpha1"
20
20
routeV1 "github.com/openshift/api/route/v1"
21
21
corev1 "k8s.io/api/core/v1"
22
22
"k8s.io/api/extensions/v1beta1"
Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ package solvers
15
15
import (
16
16
"fmt"
17
17
18
+ devworkspace "github.com/devfile/api/pkg/apis/workspaces/v1alpha1"
18
19
"github.com/devfile/devworkspace-operator/pkg/apis/controller/v1alpha1"
19
20
"github.com/devfile/devworkspace-operator/pkg/common"
20
21
"github.com/devfile/devworkspace-operator/pkg/config"
21
- devworkspace "github.com/devfile/kubernetes-api/pkg/apis/workspaces/v1alpha1"
22
22
oauthv1 "github.com/openshift/api/oauth/v1"
23
23
routeV1 "github.com/openshift/api/route/v1"
24
24
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Original file line number Diff line number Diff line change @@ -16,9 +16,9 @@ import (
16
16
"fmt"
17
17
"net/url"
18
18
19
+ devworkspace "github.com/devfile/api/pkg/apis/workspaces/v1alpha1"
19
20
controllerv1alpha1 "github.com/devfile/devworkspace-operator/pkg/apis/controller/v1alpha1"
20
21
"github.com/devfile/devworkspace-operator/pkg/config"
21
- devworkspace "github.com/devfile/kubernetes-api/pkg/apis/workspaces/v1alpha1"
22
22
)
23
23
24
24
func getExposedEndpoints (
Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ import (
16
16
"fmt"
17
17
"reflect"
18
18
19
+ devworkspace "github.com/devfile/api/pkg/apis/workspaces/v1alpha1"
19
20
"github.com/devfile/devworkspace-operator/pkg/config"
20
- devworkspace "github.com/devfile/kubernetes-api/pkg/apis/workspaces/v1alpha1"
21
21
"github.com/google/go-cmp/cmp"
22
22
"github.com/google/go-cmp/cmp/cmpopts"
23
23
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ import (
15
15
"fmt"
16
16
"net/http"
17
17
18
+ devworkspace "github.com/devfile/api/pkg/apis/workspaces/v1alpha1"
18
19
"github.com/devfile/devworkspace-operator/pkg/config"
19
- devworkspace "github.com/devfile/kubernetes-api/pkg/apis/workspaces/v1alpha1"
20
20
"sigs.k8s.io/controller-runtime/pkg/webhook/admission"
21
21
)
22
22
You can’t perform that action at this time.
0 commit comments