Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adopt app.kubernetes.io labels #5628

Merged
merged 10 commits into from
Sep 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ metadata:
namespace: knative-eventing
labels:
eventing.knative.dev/release: devel
app.kubernetes.io/name: broker-filter
app.kubernetes.io/version: devel
app.kubernetes.io/part-of: knative-eventing
spec:
selector:
matchLabels:
Expand All @@ -28,6 +31,9 @@ spec:
labels:
eventing.knative.dev/brokerRole: filter
eventing.knative.dev/release: devel
app.kubernetes.io/name: broker-filter
app.kubernetes.io/version: devel
app.kubernetes.io/part-of: knative-eventing
spec:
serviceAccountName: mt-broker-filter
enableServiceLinks: false
Expand Down Expand Up @@ -106,6 +112,9 @@ metadata:
labels:
eventing.knative.dev/brokerRole: filter
eventing.knative.dev/release: devel
app.kubernetes.io/name: broker-filter
app.kubernetes.io/version: devel
app.kubernetes.io/part-of: knative-eventing
name: broker-filter
namespace: knative-eventing
spec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ metadata:
namespace: knative-eventing
labels:
eventing.knative.dev/release: devel
app.kubernetes.io/name: broker-ingress
app.kubernetes.io/version: devel
app.kubernetes.io/part-of: knative-eventing
spec:
selector:
matchLabels:
Expand All @@ -28,6 +31,9 @@ spec:
labels:
eventing.knative.dev/brokerRole: ingress
eventing.knative.dev/release: devel
app.kubernetes.io/name: broker-ingress
app.kubernetes.io/version: devel
app.kubernetes.io/part-of: knative-eventing
spec:
serviceAccountName: mt-broker-ingress
enableServiceLinks: false
Expand Down Expand Up @@ -106,6 +112,9 @@ metadata:
labels:
eventing.knative.dev/brokerRole: ingress
eventing.knative.dev/release: devel
app.kubernetes.io/name: broker-ingress
app.kubernetes.io/version: devel
app.kubernetes.io/part-of: knative-eventing
name: broker-ingress
namespace: knative-eventing
spec:
Expand Down
6 changes: 6 additions & 0 deletions config/brokers/mt-channel-broker/deployments/controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ metadata:
namespace: knative-eventing
labels:
eventing.knative.dev/release: devel
app.kubernetes.io/name: mt-broker-controller
app.kubernetes.io/version: devel
app.kubernetes.io/part-of: knative-eventing
spec:
selector:
matchLabels:
Expand All @@ -28,6 +31,9 @@ spec:
labels:
app: mt-broker-controller
eventing.knative.dev/release: devel
app.kubernetes.io/name: broker-controller
app.kubernetes.io/version: devel
app.kubernetes.io/part-of: knative-eventing
spec:
# To avoid node becoming SPOF, spread our replicas to different nodes.
affinity:
Expand Down
6 changes: 6 additions & 0 deletions config/brokers/mt-channel-broker/deployments/hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ metadata:
namespace: knative-eventing
labels:
eventing.knative.dev/release: devel
app.kubernetes.io/name: broker-ingress
app.kubernetes.io/version: devel
app.kubernetes.io/part-of: knative-eventing
spec:
scaleTargetRef:
apiVersion: apps/v1
Expand All @@ -41,6 +44,9 @@ metadata:
namespace: knative-eventing
labels:
eventing.knative.dev/release: devel
app.kubernetes.io/name: broker-filter
app.kubernetes.io/version: devel
app.kubernetes.io/part-of: knative-eventing
spec:
scaleTargetRef:
apiVersion: apps/v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ metadata:
name: knative-eventing-mt-channel-broker-controller
labels:
eventing.knative.dev/release: devel
app.kubernetes.io/version: devel
app.kubernetes.io/part-of: knative-eventing
rules:
# Configs resources and status we care about.
- apiGroups:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ metadata:
name: eventing-mt-channel-broker-controller
labels:
eventing.knative.dev/release: devel
app.kubernetes.io/version: devel
app.kubernetes.io/part-of: knative-eventing
subjects:
- kind: ServiceAccount
name: eventing-controller
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ metadata:
name: knative-eventing-mt-broker-filter
labels:
eventing.knative.dev/release: devel
app.kubernetes.io/version: devel
app.kubernetes.io/part-of: knative-eventing
rules:
- apiGroups:
- eventing.knative.dev
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ metadata:
name: knative-eventing-mt-broker-filter
labels:
eventing.knative.dev/release: devel
app.kubernetes.io/version: devel
app.kubernetes.io/part-of: knative-eventing
subjects:
- kind: ServiceAccount
name: mt-broker-filter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ metadata:
namespace: knative-eventing
labels:
eventing.knative.dev/release: devel
app.kubernetes.io/version: devel
app.kubernetes.io/part-of: knative-eventing
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ metadata:
name: knative-eventing-mt-broker-ingress
labels:
eventing.knative.dev/release: devel
app.kubernetes.io/version: devel
app.kubernetes.io/part-of: knative-eventing
rules:
- apiGroups:
- eventing.knative.dev
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ metadata:
name: knative-eventing-mt-broker-ingress
labels:
eventing.knative.dev/release: devel
app.kubernetes.io/version: devel
app.kubernetes.io/part-of: knative-eventing
subjects:
- kind: ServiceAccount
name: mt-broker-ingress
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ metadata:
namespace: knative-eventing
labels:
eventing.knative.dev/release: devel
app.kubernetes.io/version: devel
app.kubernetes.io/part-of: knative-eventing
2 changes: 2 additions & 0 deletions config/channels/in-memory-channel/100-namespace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ metadata:
name: knative-eventing
labels:
eventing.knative.dev/release: devel
app.kubernetes.io/version: devel
app.kubernetes.io/part-of: knative-eventing
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,17 @@ metadata:
namespace: knative-eventing
labels:
eventing.knative.dev/release: devel
app.kubernetes.io/version: devel
app.kubernetes.io/part-of: knative-eventing
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: imc-controller
labels:
eventing.knative.dev/release: devel
app.kubernetes.io/version: devel
app.kubernetes.io/part-of: knative-eventing
subjects:
- kind: ServiceAccount
name: imc-controller
Expand All @@ -42,6 +46,8 @@ metadata:
name: imc-controller
labels:
eventing.knative.dev/release: devel
app.kubernetes.io/version: devel
app.kubernetes.io/part-of: knative-eventing
subjects:
- kind: ServiceAccount
name: imc-controller
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,17 @@ metadata:
namespace: knative-eventing
labels:
eventing.knative.dev/release: devel
app.kubernetes.io/version: devel
app.kubernetes.io/part-of: knative-eventing
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: imc-dispatcher
labels:
eventing.knative.dev/release: devel
app.kubernetes.io/version: devel
app.kubernetes.io/part-of: knative-eventing
subjects:
- kind: ServiceAccount
name: imc-dispatcher
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ metadata:
namespace: knative-eventing
labels:
eventing.knative.dev/release: devel
app.kubernetes.io/name: imc-controller
app.kubernetes.io/version: devel
app.kubernetes.io/part-of: knative-eventing
data:
MaxIdleConnections: "1000"
MaxIdleConnectionsPerHost: "100"
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ metadata:
eventing.knative.dev/release: devel
knative.dev/config-propagation: original
knative.dev/config-category: eventing
app.kubernetes.io/version: devel
app.kubernetes.io/part-of: knative-eventing
annotations:
knative.dev/example-checksum: "f46cf09d"
data:
Expand Down
2 changes: 2 additions & 0 deletions config/channels/in-memory-channel/configmaps/tracing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ metadata:
eventing.knative.dev/release: devel
knative.dev/config-propagation: original
knative.dev/config-category: eventing
app.kubernetes.io/version: devel
app.kubernetes.io/part-of: knative-eventing
annotations:
knative.dev/example-checksum: "4002b4c2"
data:
Expand Down
18 changes: 17 additions & 1 deletion config/channels/in-memory-channel/deployments/controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,21 @@ metadata:
labels:
eventing.knative.dev/release: devel
knative.dev/high-availability: "true"
app.kubernetes.io/name: imc-controller
app.kubernetes.io/version: devel
app.kubernetes.io/part-of: knative-eventing
spec:
selector:
matchLabels: &labels
messaging.knative.dev/channel: in-memory-channel
messaging.knative.dev/role: controller
template:
metadata:
labels: *labels
labels:
<<: *labels
app.kubernetes.io/name: imc-controller
app.kubernetes.io/version: devel
app.kubernetes.io/part-of: knative-eventing
spec:
affinity:
podAntiAffinity:
Expand Down Expand Up @@ -107,6 +114,9 @@ apiVersion: v1
kind: Service
metadata:
labels:
app.kubernetes.io/name: imc-controller
app.kubernetes.io/version: devel
app.kubernetes.io/part-of: knative-eventing
eventing.knative.dev/release: devel
name: inmemorychannel-webhook
namespace: knative-eventing
Expand All @@ -115,6 +125,12 @@ spec:
- name: https-webhook
port: 443
targetPort: 8443
- name: http-metrics
port: 9090
targetPort: 9090
- name: http-profiling
port: 8008
targetPort: 8008
selector:
messaging.knative.dev/channel: in-memory-channel
messaging.knative.dev/role: controller
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ metadata:
eventing.knative.dev/release: devel
messaging.knative.dev/channel: in-memory-channel
messaging.knative.dev/role: dispatcher
app.kubernetes.io/name: imc-dispatcher
app.kubernetes.io/version: devel
app.kubernetes.io/part-of: knative-eventing
spec:
selector:
messaging.knative.dev/channel: in-memory-channel
Expand All @@ -29,3 +32,6 @@ spec:
port: 80
protocol: TCP
targetPort: 8080
- name: http-metrics
port: 9090
targetPort: 9090
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,21 @@ metadata:
labels:
eventing.knative.dev/release: devel
knative.dev/high-availability: "true"
app.kubernetes.io/name: imc-dispatcher
app.kubernetes.io/version: devel
app.kubernetes.io/part-of: knative-eventing
spec:
selector:
matchLabels: &labels
messaging.knative.dev/channel: in-memory-channel
messaging.knative.dev/role: dispatcher
template:
metadata:
labels: *labels
labels:
<<: *labels
app.kubernetes.io/name: imc-dispatcher
app.kubernetes.io/version: devel
app.kubernetes.io/part-of: knative-eventing
spec:
affinity:
podAntiAffinity:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ metadata:
knative.dev/crd-install: "true"
messaging.knative.dev/subscribable: "true"
duck.knative.dev/addressable: "true"
app.kubernetes.io/version: devel
app.kubernetes.io/part-of: knative-eventing
spec:
group: messaging.knative.dev
versions:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ metadata:
labels:
eventing.knative.dev/release: devel
duck.knative.dev/addressable: "true"
app.kubernetes.io/version: devel
app.kubernetes.io/part-of: knative-eventing
# Do not use this role directly. These rules will be added to the "addressable-resolver" role.
rules:
- apiGroups:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ metadata:
labels:
eventing.knative.dev/release: devel
duck.knative.dev/channelable: "true"
app.kubernetes.io/version: devel
app.kubernetes.io/part-of: knative-eventing
# Do not use this role directly. These rules will be added to the "channelable-manipulator" role.
rules:
- apiGroups:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ metadata:
name: imc-controller
labels:
eventing.knative.dev/release: devel
app.kubernetes.io/version: devel
app.kubernetes.io/part-of: knative-eventing
rules:
- apiGroups:
- messaging.knative.dev
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ metadata:
name: imc-dispatcher
labels:
eventing.knative.dev/release: devel
app.kubernetes.io/version: devel
app.kubernetes.io/part-of: knative-eventing
rules:
- apiGroups:
- messaging.knative.dev
Expand Down
2 changes: 2 additions & 0 deletions config/channels/in-memory-channel/roles/webhook-role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ metadata:
name: knative-inmemorychannel-webhook
labels:
eventing.knative.dev/release: devel
app.kubernetes.io/version: devel
app.kubernetes.io/part-of: knative-eventing
rules:
# For manipulating certs into secrets.
- apiGroups:
Expand Down
2 changes: 2 additions & 0 deletions config/channels/in-memory-channel/webhooks/defaulting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ metadata:
name: inmemorychannel.eventing.knative.dev
labels:
eventing.knative.dev/release: devel
app.kubernetes.io/version: devel
app.kubernetes.io/part-of: knative-eventing
webhooks:
- admissionReviewVersions: ["v1"]
clientConfig:
Expand Down
Loading