Skip to content
This repository has been archived by the owner on Jun 4, 2021. It is now read-only.

Commit

Permalink
Add release tag labels to Kafka Channel objects (#544)
Browse files Browse the repository at this point in the history
  • Loading branch information
grantr authored and knative-prow-robot committed Aug 15, 2019
1 parent 623cec8 commit fc84722
Show file tree
Hide file tree
Showing 14 changed files with 52 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ kind: ClusterRole
metadata:
name: kafka-addressable-resolver
labels:
eventing.knative.dev/release: devel
contrib.eventing.knative.dev/release: devel
duck.knative.dev/addressable: "true"
# Do not use this role directly. These rules will be added to the "addressable-resolver" role.
rules:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ kind: ClusterRole
metadata:
name: kafka-channelable-manipulator
labels:
contrib.eventing.knative.dev/release: devel
duck.knative.dev/channelable: "true"
# Do not use this role directly. These rules will be added to the "channelable-manipulator" role.
rules:
Expand Down
2 changes: 2 additions & 0 deletions kafka/channel/config/200-controller-clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: kafka-ch-controller
labels:
contrib.eventing.knative.dev/release: devel
rules:
- apiGroups:
- messaging.knative.dev
Expand Down
2 changes: 2 additions & 0 deletions kafka/channel/config/200-dispatcher-clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: kafka-ch-dispatcher
labels:
contrib.eventing.knative.dev/release: devel
rules:
- apiGroups:
- messaging.knative.dev
Expand Down
1 change: 1 addition & 0 deletions kafka/channel/config/200-dispatcher-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ metadata:
name: kafka-ch-dispatcher
namespace: knative-eventing
labels:
contrib.eventing.knative.dev/release: devel
messaging.knative.dev/channel: kafka-channel
messaging.knative.dev/role: dispatcher
spec:
Expand Down
6 changes: 6 additions & 0 deletions kafka/channel/config/200-serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,23 @@ kind: ServiceAccount
metadata:
name: kafka-ch-controller
namespace: knative-eventing
labels:
contrib.eventing.knative.dev/release: devel

---
apiVersion: v1
kind: ServiceAccount
metadata:
name: kafka-ch-dispatcher
namespace: knative-eventing
labels:
contrib.eventing.knative.dev/release: devel

---
apiVersion: v1
kind: ServiceAccount
metadata:
name: kafka-webhook
namespace: knative-eventing
labels:
contrib.eventing.knative.dev/release: devel
2 changes: 2 additions & 0 deletions kafka/channel/config/200-webhook-clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: kafka-webhook
labels:
contrib.eventing.knative.dev/release: devel
rules:
# For watching logging configuration and getting certs.
- apiGroups:
Expand Down
6 changes: 6 additions & 0 deletions kafka/channel/config/201-clusterrolebinding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: kafka-ch-controller
labels:
contrib.eventing.knative.dev/release: devel
subjects:
- kind: ServiceAccount
name: kafka-ch-controller
Expand All @@ -31,6 +33,8 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: kafka-ch-dispatcher
labels:
contrib.eventing.knative.dev/release: devel
subjects:
- kind: ServiceAccount
name: kafka-ch-dispatcher
Expand All @@ -46,6 +50,8 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: kafka-webhook
labels:
contrib.eventing.knative.dev/release: devel
subjects:
- kind: ServiceAccount
name: kafka-webhook
Expand Down
1 change: 1 addition & 0 deletions kafka/channel/config/300-kafka-channel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ kind: CustomResourceDefinition
metadata:
name: kafkachannels.messaging.knative.dev
labels:
contrib.eventing.knative.dev/release: devel
knative.dev/crd-install: "true"
messaging.knative.dev/subscribable: "true"
spec:
Expand Down
5 changes: 3 additions & 2 deletions kafka/channel/config/400-webhook-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@
apiVersion: v1
kind: Service
metadata:
labels:
role: kafka-webhook
name: kafka-webhook
namespace: knative-eventing
labels:
contrib.eventing.knative.dev/release: devel
role: kafka-webhook
spec:
ports:
- port: 443
Expand Down
2 changes: 2 additions & 0 deletions kafka/channel/config/500-controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ kind: Deployment
metadata:
name: kafka-ch-controller
namespace: knative-eventing
labels:
contrib.eventing.knative.dev/release: devel
spec:
replicas: 1
selector:
Expand Down
3 changes: 3 additions & 0 deletions kafka/channel/config/500-dispatcher.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ kind: Deployment
metadata:
name: kafka-ch-dispatcher
namespace: knative-eventing
labels:
contrib.eventing.knative.dev/release: devel
role: kafka-webhook
spec:
replicas: 1
selector:
Expand Down
2 changes: 2 additions & 0 deletions kafka/channel/config/500-webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ kind: Deployment
metadata:
name: kafka-webhook
namespace: knative-eventing
labels:
contrib.eventing.knative.dev/release: devel
spec:
replicas: 1
selector:
Expand Down
20 changes: 20 additions & 0 deletions kafka/channel/config/provisioner/kafka.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ apiVersion: eventing.knative.dev/v1alpha1
kind: ClusterChannelProvisioner
metadata:
name: kafka
labels:
contrib.eventing.knative.dev/release: devel
spec: {}
---

Expand All @@ -24,12 +26,16 @@ kind: ServiceAccount
metadata:
name: kafka-channel-controller
namespace: knative-eventing
labels:
contrib.eventing.knative.dev/release: devel
---

kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: kafka-channel-controller
labels:
contrib.eventing.knative.dev/release: devel
rules:
- apiGroups:
- eventing.knative.dev
Expand Down Expand Up @@ -88,6 +94,8 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: kafka-channel-controller-manage
labels:
contrib.eventing.knative.dev/release: devel
subjects:
- kind: ServiceAccount
name: kafka-channel-controller
Expand All @@ -103,6 +111,8 @@ kind: ConfigMap
metadata:
name: kafka-channel-controller-config
namespace: knative-eventing
labels:
contrib.eventing.knative.dev/release: devel
data:
# Broker URL's for the provisioner. Replace this with the URL's for your kafka cluster,
# which is in the format of my-cluster-kafka-bootstrap.my-kafka-namespace:9092.
Expand All @@ -119,6 +129,8 @@ kind: Deployment
metadata:
name: kafka-channel-controller
namespace: knative-eventing
labels:
contrib.eventing.knative.dev/release: devel
spec:
replicas: 1
selector:
Expand Down Expand Up @@ -151,13 +163,17 @@ kind: ServiceAccount
metadata:
name: kafka-channel-dispatcher
namespace: knative-eventing
labels:
contrib.eventing.knative.dev/release: devel

---

apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: kafka-channel-dispatcher
labels:
contrib.eventing.knative.dev/release: devel
rules:
- apiGroups:
- "" # Core API group.
Expand All @@ -181,6 +197,8 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: kafka-channel-dispatcher
labels:
contrib.eventing.knative.dev/release: devel
subjects:
- kind: ServiceAccount
name: kafka-channel-dispatcher
Expand All @@ -197,6 +215,8 @@ kind: Deployment
metadata:
name: kafka-channel-dispatcher
namespace: knative-eventing
labels:
contrib.eventing.knative.dev/release: devel
spec:
replicas: 1
selector:
Expand Down

0 comments on commit fc84722

Please sign in to comment.