Skip to content

Commit

Permalink
Removing kubebuilder. (#192)
Browse files Browse the repository at this point in the history
* WIP on removing kubebuilder stuff

* finishing pubsub.

* removing verify-manifests.sh refs.

* minor cleanup.

* removing null.

* Cleanup and fixing some yams.
  • Loading branch information
n3wscott authored and knative-prow-robot committed Jan 30, 2019
1 parent 518626c commit a7e4013
Show file tree
Hide file tree
Showing 60 changed files with 666 additions and 2,603 deletions.
4 changes: 2 additions & 2 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ sources _except gcppubsub_ with:
<!-- TODO(n3wscott): Update to show how to install a single source. -->

```shell
ko apply -f config/default.yaml
ko apply -f config/
```

This command is idempotent, so you can run it at any time to update your
Expand Down Expand Up @@ -115,7 +115,7 @@ Running tests as you make changes to the code-base is pretty simple. See
You can delete `Knative Sources` with:

```shell
ko delete -f config/default.yaml
ko delete -f config/
```

<!--
Expand Down
35 changes: 0 additions & 35 deletions Makefile

This file was deleted.

3 changes: 0 additions & 3 deletions PROJECT

This file was deleted.

18 changes: 18 additions & 0 deletions config/100-namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright 2019 The Knative Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: v1
kind: Namespace
metadata:
name: knative-sources
19 changes: 19 additions & 0 deletions config/200-serviceaccount.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright 2019 The Knative Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: v1
kind: ServiceAccount
metadata:
name: controller-manager
namespace: knative-sources
112 changes: 112 additions & 0 deletions config/201-clusterrole.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
# Copyright 2019 The Knative Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: eventing-sources-controller
rules:
# Sources admin
- apiGroups:
- sources.eventing.knative.dev
resources:
- awssqssources
- containersources
- cronjobsources
- githubsources
- kuberneteseventsources
verbs:
- get
- list
- watch
- create
- update
- patch
- delete

# Source statuses update
- apiGroups:
- sources.eventing.knative.dev
resources:
- awssqssources/status
- containersources/status
- cronjobsources/status
- githubsources/status
- kuberneteseventsources/status
verbs:
- get
- update
- patch

# Deployments admin
- apiGroups:
- apps
resources:
- deployments
verbs:
- get
- list
- watch
- create
- update
- patch
- delete

# Channels read
- apiGroups:
- eventing.knative.dev
resources:
- channels
verbs:
- get
- list
- watch

# Knative Services admin
- apiGroups:
- serving.knative.dev
resources:
- services
verbs:
- get
- list
- watch
- create
- update
- patch
- delete

# Secrets read
- apiGroups:
- ""
resources:
- secrets
verbs:
- get
- list
- watch

# Events admin
- apiGroups:
- ""
resources:
- events
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
26 changes: 26 additions & 0 deletions config/202-clusterrolebinding.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Copyright 2019 The Knative Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: eventing-sources-controller
subjects:
- kind: ServiceAccount
name: controller-manager
namespace: knative-sources
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: eventing-sources-controller
Original file line number Diff line number Diff line change
@@ -1,9 +1,22 @@
# Copyright 2019 The Knative Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
creationTimestamp: null
labels:
controller-tools.k8s.io: "1.0"
eventing.knative.dev/source: "true"
name: awssqssources.sources.eventing.knative.dev
spec:
group: sources.eventing.knative.dev
Expand Down Expand Up @@ -46,7 +59,9 @@ spec:
items:
properties:
lastTransitionTime:
type: object
# we use a string in the stored object but a wrapper object
# at runtime.
type: string
message:
type: string
reason:
Expand All @@ -66,9 +81,3 @@ spec:
type: string
type: object
version: v1alpha1
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []
Original file line number Diff line number Diff line change
@@ -1,9 +1,22 @@
# Copyright 2019 The Knative Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
creationTimestamp: null
labels:
controller-tools.k8s.io: "1.0"
eventing.knative.dev/source: "true"
name: containersources.sources.eventing.knative.dev
spec:
group: sources.eventing.knative.dev
Expand Down Expand Up @@ -51,7 +64,9 @@ spec:
items:
properties:
lastTransitionTime:
type: object
# we use a string in the stored object but a wrapper object
# at runtime.
type: string
message:
type: string
reason:
Expand All @@ -71,9 +86,3 @@ spec:
type: string
type: object
version: v1alpha1
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []
Original file line number Diff line number Diff line change
@@ -1,9 +1,22 @@
# Copyright 2019 The Knative Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
creationTimestamp: null
labels:
controller-tools.k8s.io: "1.0"
eventing.knative.dev/source: "true"
name: cronjobsources.sources.eventing.knative.dev
spec:
group: sources.eventing.knative.dev
Expand Down Expand Up @@ -46,7 +59,9 @@ spec:
items:
properties:
lastTransitionTime:
type: object
# we use a string in the stored object but a wrapper object
# at runtime.
type: string
message:
type: string
reason:
Expand All @@ -66,9 +81,3 @@ spec:
type: string
type: object
version: v1alpha1
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []
Loading

0 comments on commit a7e4013

Please sign in to comment.