Skip to content

Commit f3c7ab3

Browse files
Merge pull request #22907 from mfojtik/tsb-to-staging
staging: move template-service-broker to staging
2 parents 63918a0 + a8c8016 commit f3c7ab3

74 files changed

Lines changed: 2731 additions & 262 deletions

Some content is hidden

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

cmd/template-service-broker/tsb.go

Lines changed: 0 additions & 46 deletions
This file was deleted.

hack/import-restrictions.json

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,8 @@
44
"github.com/openshift/origin/pkg"
55
],
66
"ignoredSubTrees": [
7-
"github.com/openshift/origin/pkg/templateservicebroker",
87
"github.com/openshift/origin/pkg/cmd/server/start"
98
],
10-
"forbiddenImportPackageRoots": [
11-
"github.com/openshift/origin/pkg/templateservicebroker"
12-
],
139
"allowedImportPackageRoots": [
1410
"vendor",
1511
""
@@ -403,38 +399,6 @@
403399
"allowedImportPackages": []
404400
},
405401

406-
{
407-
"checkedPackageRoots": [
408-
"github.com/openshift/origin/pkg/templateservicebroker"
409-
],
410-
"allowedImportPackageRoots": [
411-
"vendor/k8s.io/apimachinery",
412-
"vendor/k8s.io/apiserver",
413-
"vendor/k8s.io/client-go",
414-
"vendor/github.com/spf13/cobra",
415-
"vendor/golang.org",
416-
"vendor/github.com/openshift/api",
417-
"vendor/github.com/openshift/client-go",
418-
"github.com/openshift/origin/pkg/template/servicebroker"
419-
],
420-
"allowedImportPackages": [
421-
"vendor/k8s.io/klog",
422-
"vendor/k8s.io/api/core/v1",
423-
"vendor/k8s.io/api/authorization/v1",
424-
"vendor/k8s.io/kubernetes/pkg/apis/core",
425-
"vendor/k8s.io/kubernetes/pkg/apis/core/install",
426-
"vendor/github.com/emicklei/go-restful",
427-
"vendor/github.com/lestrrat/go-jsschema",
428-
"vendor/k8s.io/kube-aggregator/pkg/apiserver",
429-
"vendor/k8s.io/kubernetes/pkg/controller",
430-
"vendor/k8s.io/kubernetes/pkg/kubectl/cmd/util",
431-
"github.com/openshift/origin/pkg/api",
432-
"github.com/openshift/origin/pkg/template/apis/template",
433-
"github.com/openshift/origin/pkg/template/apis/template/validation",
434-
"github.com/openshift/origin/pkg/api/legacy"
435-
]
436-
},
437-
438402
{
439403
"checkedPackageRoots": [
440404
"github.com/openshift/origin/pkg/oauthserver"

hack/update-generated-conversions.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ function codegen::join() { local IFS="$1"; shift; echo "$*"; }
1010

1111
# enumerate group versions
1212
ALL_FQ_APIS=(
13+
github.com/openshift/origin/staging/src/github.com/openshift/template-service-broker/apis/config/v1
14+
github.com/openshift/origin/staging/src/github.com/openshift/template-service-broker/apis/template/v1
15+
1316
github.com/openshift/origin/pkg/apps/apis/apps/v1
1417
github.com/openshift/origin/pkg/authorization/apis/authorization/v1
1518
github.com/openshift/origin/pkg/build/apis/build/v1
@@ -22,7 +25,6 @@ ALL_FQ_APIS=(
2225
github.com/openshift/origin/pkg/route/apis/route/v1
2326
github.com/openshift/origin/pkg/security/apis/security/v1
2427
github.com/openshift/origin/pkg/template/apis/template/v1
25-
github.com/openshift/origin/pkg/template/servicebroker/apis/config/v1
2628
github.com/openshift/origin/pkg/user/apis/user/v1
2729
)
2830

hack/update-generated-deep-copies.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ function codegen::join() { local IFS="$1"; shift; echo "$*"; }
1111

1212
# enumerate group versions
1313
ALL_FQ_APIS=(
14+
github.com/openshift/origin/staging/src/github.com/openshift/template-service-broker/apis/config
15+
github.com/openshift/origin/staging/src/github.com/openshift/template-service-broker/apis/config/v1
16+
github.com/openshift/origin/staging/src/github.com/openshift/template-service-broker/apis/template
17+
github.com/openshift/origin/staging/src/github.com/openshift/template-service-broker/apis/template/v1
18+
1419
github.com/openshift/origin/pkg/autoscaling/admission/apis/clusterresourceoverride
1520
github.com/openshift/origin/pkg/autoscaling/admission/apis/clusterresourceoverride/v1
1621
github.com/openshift/origin/pkg/autoscaling/admission/apis/runonceduration
@@ -29,8 +34,6 @@ ALL_FQ_APIS=(
2934
github.com/openshift/origin/pkg/network/admission/apis/externalipranger/v1
3035
github.com/openshift/origin/pkg/network/admission/apis/restrictedendpoints
3136
github.com/openshift/origin/pkg/network/admission/apis/restrictedendpoints/v1
32-
github.com/openshift/origin/pkg/template/servicebroker/apis/config
33-
github.com/openshift/origin/pkg/template/servicebroker/apis/config/v1
3437
github.com/openshift/origin/pkg/util/testing
3538
github.com/openshift/origin/pkg/apps/apis/apps
3639
github.com/openshift/origin/pkg/authorization/apis/authorization

hack/update-generated-defaulters.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ function codegen::join() { local IFS="$1"; shift; echo "$*"; }
1010

1111
# enumerate group versions
1212
ALL_FQ_APIS=(
13+
github.com/openshift/origin/staging/src/github.com/openshift/template-service-broker/apis/config/v1
1314
github.com/openshift/origin/pkg/apps/apis/apps/v1
1415
github.com/openshift/origin/pkg/authorization/apis/authorization/v1
1516
github.com/openshift/origin/pkg/build/apis/build/v1
@@ -22,7 +23,6 @@ ALL_FQ_APIS=(
2223
github.com/openshift/origin/pkg/route/apis/route/v1
2324
github.com/openshift/origin/pkg/security/apis/security/v1
2425
github.com/openshift/origin/pkg/template/apis/template/v1
25-
github.com/openshift/origin/pkg/template/servicebroker/apis/config/v1
2626
github.com/openshift/origin/pkg/user/apis/user/v1
2727
)
2828

hack/verify-imports.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,7 @@ os::cmd::expect_success "import-verifier ${OS_ROOT}/hack/import-restrictions.jso
2020
# quick and dirty check that nothing under vendored kubernetes imports something from origin
2121
os::cmd::expect_failure "egrep -r '\"github.com/openshift/origin/[^\"]+\"$' vendor/k8s.io/kubernetes"
2222

23+
# quick and dirty check that nothing under origin staging imports from openshift/origin
24+
os::cmd::expect_failure "go list -deps -test ./staging/src/github.com/openshift/... | grep 'openshift/origin/pkg'"
25+
2326
os::test::junit::declare_suite_end

images/template-service-broker/Dockerfile.rhel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM registry.svc.ci.openshift.org/ocp/builder:golang-1.12 AS builder
22
WORKDIR /go/src/github.com/openshift/origin
33
COPY . .
4-
RUN make build WHAT=cmd/template-service-broker; \
4+
RUN make build WHAT=vendor/github.com/openshift/template-service-broker/cmd/template-service-broker; \
55
mkdir -p /tmp/build; \
66
cp /go/src/github.com/openshift/origin/_output/local/bin/linux/$(go env GOARCH)/template-service-broker /tmp/build/template-service-broker
77

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
reviewers:
2+
- smarterclayton
3+
- mfojtik
4+
- bparees
5+
- soltysh
6+
- adambkaplan
7+
approvers:
8+
- smarterclayton
9+
- mfojtik
10+
- bparees
11+
- soltysh
12+
- adambkaplan
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
### TODO: ADD README.md here

pkg/template/servicebroker/apis/config/doc.go renamed to staging/src/github.com/openshift/template-service-broker/apis/config/doc.go

File renamed without changes.

0 commit comments

Comments
 (0)