Skip to content
This repository has been archived by the owner on Oct 20, 2023. It is now read-only.

Commit

Permalink
Change SDK imports to servicemeshinterface
Browse files Browse the repository at this point in the history
- update imports and go modules
- regenerate client set
- update docs

Signed-off-by: stefanprodan <stefan.prodan@gmail.com>
  • Loading branch information
stefanprodan committed Mar 18, 2020
1 parent 099ab74 commit cdc852d
Show file tree
Hide file tree
Showing 112 changed files with 217 additions and 235 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ version: 2
jobs:
build:
docker:
- image: circleci/golang:1.13
working_directory: /go/src/github.com/deislabs/smi-sdk-go
- image: circleci/golang:1.14
working_directory: /go/src/github.com/servicemeshinterface/smi-sdk-go
steps:
- checkout
- restore_cache:
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Whether you are a user or contributor, official support channels include:

- [Issues](https://github.com/deislabs/smi-spec/issues)
- [Issues](https://github.com/servicemeshinterface/smi-sdk-go/issues)
- #general Slack channel in the [SMI Slack](https://smi-spec.slack.com)

## Project Governance
Expand Down
2 changes: 1 addition & 1 deletion GOVERNANCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ Maintainers MUST remain active. If they are unresponsive for >3 months, they wil

New maintainers can be added to the project by a [super-majority](https://en.wikipedia.org/wiki/Supermajority#Two-thirds_vote) vote of the existing maintainers. A potential maintainer may be nominated by an existing maintainer. A vote is conducted in private between the current maintainers over the course of a one week voting period. At the end of the week, votes are counted and a pull request is made on the repo adding the new maintainer to the [CODEOWNERS](CODEOWNERS) file.

A maintainer may step down by submitting an [issue](https://github.com/deislabs/smi-sdk-go/issues/new) stating their intent.
A maintainer may step down by submitting an [issue](https://github.com/servicemeshinterface/smi-sdk-go/issues/new) stating their intent.

Changes to this governance document require a pull request with approval from a [super-majority](https://en.wikipedia.org/wiki/Supermajority#Two-thirds_vote) of the current maintainers.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ bootstrap:
test:
go test -v ./...

.PHONY: codegen
codegen:
./hack/update-codegen.sh

.PHONY: verify
verify:
./hack/verify-codegen.sh
30 changes: 4 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,42 +1,20 @@
# SMI SDK for Golang

Shared code and example implementations for [SMI Spec](https://github.com/deislabs/smi-spec)
Shared code and example implementations for [SMI Spec](https://github.com/servicemeshinterface/smi-spec)

## API

API objects are found at the following locations:

* `pkg/apis/access` - Traffic Access Control API (access.smi-spec.io)
* `pkg/apis/metrics` - Traffic Metrics API (metrics.smi-spec.io)
* `pkg/apis/spec` - Traffic Specs API (spec.smi-spec.io)
* `pkg/apis/specs` - Traffic Specs API (spec.smi-spec.io)
* `pkg/apis/split` - Traffic Split API (split.smi-spec.io)

## Codegen

Client code for the API CRDs is autogenerated and can be found at the following
location:

* `pkg/gen/access`
* `pkg/gen/spec`
* `pkg/gen/split`

In addition to generating client code at the above locations the generator will
also generate `zz_generated.deepcopy.go` inside the API object folder.

### Regenerating the Client Code

To regenerate the client code, follow these steps:

1. Install the code-generator tool: `go get k8s.io/code-generator`
1. Ensure the group name does not contain any hypen characters (see note below)
1. Run `hack/update-codegen.sh`

#### Note

The code-generator does not support groupNames with hyphen characters.
Therefore, before running the code generator, you must rename all instances of
"smi-spec.io" in the project to "smispec.io". The `update-codegen.sh` script
will rename these back to "smi-spec.io" after code generation is complete.
The Kubernetes client code for the API CRDs is autogenerated and can be found at `pkg/gen/client`.
To regenerate the client code run `make codegen` and commit all changes to the `pkg/gen` dir.

## Contributing

Expand Down
4 changes: 2 additions & 2 deletions docs/release_process.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

This document describes the release process for this project. Releases are published via GitHub releases.

All releases will have a [semantic version](https://semver.org/) associated with them. This project will be versioned at 1.0.0 once the [Service Mesh Interface(SMI) specification](https://github.com/deislabs/smi-spec) is at 1.0.0 and all APIs defined in this project are at `v1`. All releases until then will be marked `v0.x.0` where `x` is incremented with each release.
All releases will have a [semantic version](https://semver.org/) associated with them. This project will be versioned at 1.0.0 once the [Service Mesh Interface(SMI) specification](https://github.com/servicemeshinterface/smi-spec) is at 1.0.0 and all APIs defined in this project are at `v1`. All releases until then will be marked `v0.x.0` where `x` is incremented with each release.

To perform a release of the smi-sdk-go project:

Expand All @@ -17,4 +17,4 @@ $ git checkout tags/v0.x.0
$ make dist checksum
```

3. Last, visit the [releases page](https://github.com/deislabs/smi-sdk-go/releases) to `Draft a new release` using the tag you just created and pushed. Be sure to include release notes on what changes are included in the release and upload the assets created in the previous step.
3. Last, visit the [releases page](https://github.com/servicemeshinterface/smi-sdk-go/releases) to `Draft a new release` using the tag you just created and pushed. Be sure to include release notes on what changes are included in the release and upload the assets created in the previous step.
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/deislabs/smi-sdk-go
module github.com/servicemeshinterface/smi-sdk-go

go 1.13
go 1.14

require (
github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6 // indirect
Expand Down
2 changes: 1 addition & 1 deletion hack/update-codegen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -eu

# ROOT_PACKAGE :: the package (relative to $GOPATH/src) that is the target for code generation
ROOT_PACKAGE="github.com/deislabs/smi-sdk-go"
ROOT_PACKAGE="github.com/servicemeshinterface/smi-sdk-go"

function generate_client() {

Expand Down
2 changes: 1 addition & 1 deletion pkg/apis/access/v1alpha1/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/schema"

ts "github.com/deislabs/smi-sdk-go/pkg/apis/access"
ts "github.com/servicemeshinterface/smi-sdk-go/pkg/apis/access"
)

// SchemeGroupVersion is the identifier for the API which includes
Expand Down
2 changes: 1 addition & 1 deletion pkg/apis/metrics/v1alpha1/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/schema"

"github.com/deislabs/smi-sdk-go/pkg/apis/metrics"
"github.com/servicemeshinterface/smi-sdk-go/pkg/apis/metrics"
)

// SchemeGroupVersion is the identifier for the API which includes
Expand Down
2 changes: 1 addition & 1 deletion pkg/apis/metrics/v1alpha2/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/schema"

"github.com/deislabs/smi-sdk-go/pkg/apis/metrics"
"github.com/servicemeshinterface/smi-sdk-go/pkg/apis/metrics"
)

// SchemeGroupVersion is the identifier for the API which includes
Expand Down
2 changes: 1 addition & 1 deletion pkg/apis/specs/v1alpha1/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/schema"

ts "github.com/deislabs/smi-sdk-go/pkg/apis/specs"
ts "github.com/servicemeshinterface/smi-sdk-go/pkg/apis/specs"
)

// SchemeGroupVersion is the identifier for the API which includes
Expand Down
2 changes: 1 addition & 1 deletion pkg/apis/specs/v1alpha2/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/schema"

ts "github.com/deislabs/smi-sdk-go/pkg/apis/specs"
ts "github.com/servicemeshinterface/smi-sdk-go/pkg/apis/specs"
)

// SchemeGroupVersion is the identifier for the API which includes
Expand Down
2 changes: 1 addition & 1 deletion pkg/apis/split/v1alpha1/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/schema"

ts "github.com/deislabs/smi-sdk-go/pkg/apis/split"
ts "github.com/servicemeshinterface/smi-sdk-go/pkg/apis/split"
)

// SchemeGroupVersion is the identifier for the API which includes
Expand Down
2 changes: 1 addition & 1 deletion pkg/apis/split/v1alpha2/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/schema"

ts "github.com/deislabs/smi-sdk-go/pkg/apis/split"
ts "github.com/servicemeshinterface/smi-sdk-go/pkg/apis/split"
)

// SchemeGroupVersion is the identifier for the API which includes
Expand Down
2 changes: 1 addition & 1 deletion pkg/apis/split/v1alpha3/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/schema"

ts "github.com/deislabs/smi-sdk-go/pkg/apis/split"
ts "github.com/servicemeshinterface/smi-sdk-go/pkg/apis/split"
)

// SchemeGroupVersion is the identifier for the API which includes
Expand Down
2 changes: 1 addition & 1 deletion pkg/gen/client/access/clientset/versioned/clientset.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.

2 changes: 1 addition & 1 deletion pkg/gen/client/access/clientset/versioned/fake/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.

6 changes: 3 additions & 3 deletions pkg/gen/client/access/informers/externalversions/factory.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.

4 changes: 2 additions & 2 deletions pkg/gen/client/metrics/clientset/versioned/clientset.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.

4 changes: 2 additions & 2 deletions pkg/gen/client/metrics/clientset/versioned/fake/register.go

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

4 changes: 2 additions & 2 deletions pkg/gen/client/metrics/clientset/versioned/scheme/register.go

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

Loading

0 comments on commit cdc852d

Please sign in to comment.