Skip to content

Commit

Permalink
add recommended k8s labels
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-edouard.breteche committed Apr 29, 2020
1 parent 83f7c6a commit f138f32
Show file tree
Hide file tree
Showing 7 changed files with 128 additions and 159 deletions.
4 changes: 4 additions & 0 deletions base/200-clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: tekton-dashboard-minimal
namespace: tekton-pipelines
labels:
app.kubernetes.io/component: dashboard
app.kubernetes.io/instance: default
app.kubernetes.io/part-of: tekton-dashboard
rules:
- apiGroups: ["apiextensions.k8s.io"]
resources: ["customresourcedefinitions"]
Expand Down
4 changes: 4 additions & 0 deletions base/201-clusterrolebinding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: tekton-dashboard-minimal
labels:
app.kubernetes.io/component: dashboard
app.kubernetes.io/instance: default
app.kubernetes.io/part-of: tekton-dashboard
subjects:
- kind: ServiceAccount
name: tekton-dashboard
Expand Down
4 changes: 4 additions & 0 deletions base/202-extension-crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: extensions.dashboard.tekton.dev
labels:
app.kubernetes.io/component: dashboard
app.kubernetes.io/instance: default
app.kubernetes.io/part-of: tekton-dashboard
spec:
group: dashboard.tekton.dev
names:
Expand Down
6 changes: 4 additions & 2 deletions base/203-serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
apiVersion: v1
kind: ServiceAccount
metadata:
labels:
app: tekton-dashboard
name: tekton-dashboard
namespace: tekton-pipelines
labels:
app.kubernetes.io/component: dashboard
app.kubernetes.io/instance: default
app.kubernetes.io/part-of: tekton-dashboard
17 changes: 15 additions & 2 deletions base/300-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,31 @@ metadata:
name: tekton-dashboard
namespace: tekton-pipelines
labels:
app.kubernetes.io/name: dashboard
app.kubernetes.io/component: dashboard
app.kubernetes.io/instance: default
app.kubernetes.io/version: devel
app.kubernetes.io/part-of: tekton-dashboard
dashboard.tekton.dev/release: "devel"
app: tekton-dashboard
version: "devel"
dashboard.tekton.dev/release: "devel"
spec:
replicas: 1
selector:
matchLabels:
app: tekton-dashboard
app.kubernetes.io/name: dashboard
app.kubernetes.io/component: dashboard
app.kubernetes.io/instance: default
app.kubernetes.io/part-of: tekton-dashboard
template:
metadata:
name: tekton-dashboard
labels:
app.kubernetes.io/name: dashboard
app.kubernetes.io/component: dashboard
app.kubernetes.io/instance: default
app.kubernetes.io/version: devel
app.kubernetes.io/part-of: tekton-dashboard
app: tekton-dashboard
spec:
serviceAccountName: tekton-dashboard
Expand Down
12 changes: 10 additions & 2 deletions base/300-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,22 @@ metadata:
name: tekton-dashboard
namespace: tekton-pipelines
labels:
app.kubernetes.io/name: dashboard
app.kubernetes.io/component: dashboard
app.kubernetes.io/instance: default
app.kubernetes.io/version: devel
app.kubernetes.io/part-of: tekton-dashboard
dashboard.tekton.dev/release: "devel"
app: tekton-dashboard
version: "devel"
dashboard.tekton.dev/release: "devel"
spec:
ports:
- name: http
protocol: TCP
port: 9097
targetPort: 9097
selector:
app: tekton-dashboard
app.kubernetes.io/name: dashboard
app.kubernetes.io/component: dashboard
app.kubernetes.io/instance: default
app.kubernetes.io/part-of: tekton-dashboard
Loading

0 comments on commit f138f32

Please sign in to comment.