Skip to content

Commit

Permalink
Rename package to github.com/vmware-tanzu/servicebinding (#226)
Browse files Browse the repository at this point in the history
The repo moved, we should update the code.

Signed-off-by: Scott Andrews <andrewssc@vmware.com>
  • Loading branch information
scothis authored Mar 3, 2022
1 parent 74031ea commit 0cc820a
Show file tree
Hide file tree
Showing 87 changed files with 230 additions and 232 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,8 @@ jobs:
go-version: 1.15.x
- name: Test
run: go test ./... -coverprofile cover.out
- name: Report coverage
run: bash <(curl -s https://codecov.io/bash)
env:
CODECOV_TOKEN: a99a7ac2-ad9e-4c7a-b33a-17732e3469f4
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2

stage:
needs: test
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@

# Service Bindings for Kubernetes

![CI](https://github.com/vmware-labs/service-bindings/workflows/CI/badge.svg?branch=main)
[![GoDoc](https://godoc.org/github.com/vmware-labs/service-bindings?status.svg)](https://godoc.org/github.com/vmware-labs/service-bindings)
[![Go Report Card](https://goreportcard.com/badge/github.com/vmware-labs/service-bindings)](https://goreportcard.com/report/github.com/vmware-labs/service-bindings)
[![codecov](https://codecov.io/gh/vmware-labs/service-bindings/branch/main/graph/badge.svg)](https://codecov.io/gh/vmware-labs/service-bindings)
![CI](https://github.com/vmware-tanzu/servicebinding/workflows/CI/badge.svg?branch=main)
[![GoDoc](https://godoc.org/github.com/vmware-tanzu/servicebinding?status.svg)](https://godoc.org/github.com/vmware-tanzu/servicebinding)
[![Go Report Card](https://goreportcard.com/badge/github.com/vmware-tanzu/servicebinding)](https://goreportcard.com/report/github.com/vmware-tanzu/servicebinding)
[![codecov](https://codecov.io/gh/vmware-tanzu/servicebinding/branch/main/graph/badge.svg)](https://codecov.io/gh/vmware-tanzu/servicebinding)


Service Bindings for Kubernetes implements the [Service Binding Specification for Kubernetes](https://servicebinding.io/). We are tracking changes to the spec as it approaches a stable release (currently targeting [RC3](https://github.com/servicebinding/spec/tree/v1.0.0-rc3)). Backwards and forwards compatibility should not be expected for alpha versioned resources.
Expand All @@ -26,7 +26,7 @@ The following are not implemented:
Prerequisites:
- a Kubernetes 1.18+ cluster

Using the [latest release](https://github.com/vmware-labs/service-bindings/releases/latest) is recommended.
Using the [latest release](https://github.com/vmware-tanzu/servicebinding/releases/latest) is recommended.

### Build from source

Expand Down
14 changes: 7 additions & 7 deletions cmd/manager/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,16 @@ import (
"knative.dev/pkg/webhook/resourcesemantics/defaulting"
"knative.dev/pkg/webhook/resourcesemantics/validation"

labsv1alpha1 "github.com/vmware-labs/service-bindings/pkg/apis/labs/v1alpha1"
labsinternalv1alpha1 "github.com/vmware-labs/service-bindings/pkg/apis/labsinternal/v1alpha1"
servicebindingv1alpha3 "github.com/vmware-labs/service-bindings/pkg/apis/servicebinding/v1alpha3"
"github.com/vmware-labs/service-bindings/pkg/reconciler/provisionedservice"
"github.com/vmware-labs/service-bindings/pkg/reconciler/servicebinding"
"github.com/vmware-labs/service-bindings/pkg/reconciler/servicebindingprojection"
labsv1alpha1 "github.com/vmware-tanzu/servicebinding/pkg/apis/labs/v1alpha1"
labsinternalv1alpha1 "github.com/vmware-tanzu/servicebinding/pkg/apis/labsinternal/v1alpha1"
servicebindingv1alpha3 "github.com/vmware-tanzu/servicebinding/pkg/apis/servicebinding/v1alpha3"
"github.com/vmware-tanzu/servicebinding/pkg/reconciler/provisionedservice"
"github.com/vmware-tanzu/servicebinding/pkg/reconciler/servicebinding"
"github.com/vmware-tanzu/servicebinding/pkg/reconciler/servicebindingprojection"
)

var (
// TODO(scothis) restore labels after https://github.com/vmware-labs/service-bindings/issues/130
// TODO(scothis) restore labels after https://github.com/vmware-tanzu/servicebinding/issues/130
//BindingExcludeLabel can be applied to exclude resource from webhook
// BindingExcludeLabel = "bindings.labs.vmware.com/exclude"
BindingExcludeLabel = "knative.dev.bindings.labs.vmware.com/exclude"
Expand Down
2 changes: 1 addition & 1 deletion config/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ spec:
- name: manager
# This is the Go import path for the binary that is containerized
# and substituted here.
image: ko://github.com/vmware-labs/service-bindings/cmd/manager
image: ko://github.com/vmware-tanzu/servicebinding/cmd/manager
resources:
requests:
cpu: 100m
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/vmware-labs/service-bindings
module github.com/vmware-tanzu/servicebinding

go 1.15

Expand Down
6 changes: 3 additions & 3 deletions hack/update-codegen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ TMP_DIR="$(mktemp -d)"
trap 'rm -rf ${TMP_DIR}' EXIT
export GOPATH=${GOPATH:-${TMP_DIR}}

TMP_REPO_PATH="${TMP_DIR}/src/github.com/vmware-labs/service-bindings"
TMP_REPO_PATH="${TMP_DIR}/src/github.com/vmware-tanzu/servicebinding"
mkdir -p "$(dirname "${TMP_REPO_PATH}")" && ln -s "${REPO_ROOT}" "${TMP_REPO_PATH}"

API_GROUPS="labs:v1alpha1 labsinternal:v1alpha1 servicebinding:v1alpha3 duck:v1alpha3"
Expand All @@ -25,14 +25,14 @@ API_GROUPS="labs:v1alpha1 labsinternal:v1alpha1 servicebinding:v1alpha3 duck:v1a
# k8s.io/kubernetes. The output-base is needed for the generators to output into the vendor dir
# instead of the $GOPATH directly. For normal projects this can be dropped.
bash ${CODEGEN_PKG}/generate-groups.sh "deepcopy,client,informer,lister" \
github.com/vmware-labs/service-bindings/pkg/client github.com/vmware-labs/service-bindings/pkg/apis \
github.com/vmware-tanzu/servicebinding/pkg/client github.com/vmware-tanzu/servicebinding/pkg/apis \
"$API_GROUPS" \
--output-base "${TMP_DIR}/src" \
--go-header-file ${REPO_ROOT}/hack/boilerplate/boilerplate.go.txt

# Knative Injection
bash ${KNATIVE_CODEGEN_PKG}/hack/generate-knative.sh "injection" \
github.com/vmware-labs/service-bindings/pkg/client github.com/vmware-labs/service-bindings/pkg/apis \
github.com/vmware-tanzu/servicebinding/pkg/client github.com/vmware-tanzu/servicebinding/pkg/apis \
"$API_GROUPS" \
--output-base "${TMP_DIR}/src" \
--go-header-file ${REPO_ROOT}/hack/boilerplate/boilerplate.go.txt
2 changes: 1 addition & 1 deletion pkg/apis/labs/v1alpha1/implements_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package v1alpha1
import (
"testing"

duckv1alpha3 "github.com/vmware-labs/service-bindings/pkg/apis/duck/v1alpha3"
duckv1alpha3 "github.com/vmware-tanzu/servicebinding/pkg/apis/duck/v1alpha3"
"knative.dev/pkg/apis/duck"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"knative.dev/pkg/apis"
duckv1 "knative.dev/pkg/apis/duck/v1"

labsinternalv1alpha1 "github.com/vmware-labs/service-bindings/pkg/apis/labsinternal/v1alpha1"
labsinternalv1alpha1 "github.com/vmware-tanzu/servicebinding/pkg/apis/labsinternal/v1alpha1"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion pkg/apis/servicebinding/v1alpha3/servicebinding_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
labsinternalv1alpha1 "github.com/vmware-labs/service-bindings/pkg/apis/labsinternal/v1alpha1"
labsinternalv1alpha1 "github.com/vmware-tanzu/servicebinding/pkg/apis/labsinternal/v1alpha1"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"knative.dev/pkg/apis"
Expand Down
2 changes: 1 addition & 1 deletion pkg/apis/servicebinding/v1alpha3/servicebinding_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
"knative.dev/pkg/kmeta"
"knative.dev/pkg/tracker"

labsinternalv1alpha1 "github.com/vmware-labs/service-bindings/pkg/apis/labsinternal/v1alpha1"
labsinternalv1alpha1 "github.com/vmware-tanzu/servicebinding/pkg/apis/labsinternal/v1alpha1"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion pkg/apis/servicebinding/v1alpha3/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions pkg/client/clientset/versioned/clientset.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 9 additions & 9 deletions pkg/client/clientset/versioned/fake/clientset_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions pkg/client/clientset/versioned/fake/register.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions pkg/client/clientset/versioned/scheme/register.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions pkg/client/informers/externalversions/factory.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions pkg/client/informers/externalversions/generic.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0cc820a

Please sign in to comment.