Skip to content

Commit

Permalink
Migrate awssqsSource to sources.knative.dev (knative#956)
Browse files Browse the repository at this point in the history
* Migrate awssqsSource to sources.knative.dev

* updated codegen
  • Loading branch information
lberk authored Feb 26, 2020
1 parent f5225f8 commit 4801678
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions awssqs/config/201-clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ rules:
- delete

- apiGroups:
- sources.eventing.knative.dev
- sources.knative.dev
resources:
- awssqssources
verbs:
Expand All @@ -57,7 +57,7 @@ rules:
- update
- patch
- apiGroups:
- sources.eventing.knative.dev
- sources.knative.dev
resources:
- awssqssources/status
- awssqssources/finalizers
Expand Down Expand Up @@ -107,7 +107,7 @@ metadata:
duck.knative.dev/source: "true"
rules:
- apiGroups:
- "sources.eventing.knative.dev"
- "sources.knative.dev"
resources:
- "awssqssources"
verbs:
Expand Down
4 changes: 2 additions & 2 deletions awssqs/config/300-awssqssource.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ metadata:
[
{ "type": "aws.sqs.message" }
]
name: awssqssources.sources.eventing.knative.dev
name: awssqssources.sources.knative.dev
spec:
group: sources.eventing.knative.dev
group: sources.knative.dev
names:
categories:
- all
Expand Down
2 changes: 1 addition & 1 deletion awssqs/pkg/apis/sources/v1alpha1/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ limitations under the License.
// +k8s:deepcopy-gen=package,register
// +k8s:conversion-gen=knative.dev/eventing-contrib/pkg/apis/sources
// +k8s:defaulter-gen=TypeMeta
// +groupName=sources.eventing.knative.dev
// +groupName=sources.knative.dev
package v1alpha1
4 changes: 2 additions & 2 deletions awssqs/pkg/apis/sources/v1alpha1/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ limitations under the License.
// +k8s:deepcopy-gen=package,register
// +k8s:conversion-gen=knative.dev/eventing-contrib/pkg/apis/sources
// +k8s:defaulter-gen=TypeMeta
// +groupName=sources.eventing.knative.dev
// +groupName=sources.knative.dev
package v1alpha1

import (
Expand All @@ -29,7 +29,7 @@ import (

var (
// SchemeGroupVersion is group version used to register these objects
SchemeGroupVersion = schema.GroupVersion{Group: "sources.eventing.knative.dev", Version: "v1alpha1"}
SchemeGroupVersion = schema.GroupVersion{Group: "sources.knative.dev", Version: "v1alpha1"}

// SchemeBuilder is used to add go types to the GroupVersionKind scheme
SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}
Expand Down
2 changes: 1 addition & 1 deletion awssqs/pkg/apis/sources/v1alpha1/register_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
// Resource takes an unqualified resource and returns a Group qualified GroupResource
func TestResource(t *testing.T) {
want := schema.GroupResource{
Group: "sources.eventing.knative.dev",
Group: "sources.knative.dev",
Resource: "foo",
}

Expand Down

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 awssqs/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.

2 changes: 1 addition & 1 deletion awssqs/samples/awssqs-source.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Replace the following before applying this file:
# QUEUE_URL: Replace with the AWS SQS queue.

apiVersion: sources.eventing.knative.dev/v1alpha1
apiVersion: sources.knative.dev/v1alpha1
kind: AwsSqsSource
metadata:
name: awssqs-sample-source
Expand Down

0 comments on commit 4801678

Please sign in to comment.