Skip to content
Closed
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
7 changes: 7 additions & 0 deletions ci/prow/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ spec:
labels:
app: hook
spec:
serviceAccountName: "hook"
terminationGracePeriodSeconds: 180
containers:
- name: hook
Expand Down Expand Up @@ -144,6 +145,7 @@ spec:
labels:
app: plank
spec:
serviceAccountName: "plank"
containers:
- name: plank
image: gcr.io/k8s-prow/plank:v20180709-7109caeb1
Expand Down Expand Up @@ -178,6 +180,7 @@ spec:
labels:
app: sinker
spec:
serviceAccountName: "sinker"
containers:
- name: sinker
image: gcr.io/k8s-prow/sinker:v20180709-7109caeb1
Expand Down Expand Up @@ -208,6 +211,7 @@ spec:
labels:
app: deck
spec:
serviceAccountName: "deck"
terminationGracePeriodSeconds: 30
containers:
- name: deck
Expand Down Expand Up @@ -252,6 +256,7 @@ spec:
labels:
app: horologium
spec:
serviceAccountName: "horologium"
terminationGracePeriodSeconds: 30
containers:
- name: horologium
Expand Down Expand Up @@ -337,6 +342,7 @@ spec:
labels:
app: tot
spec:
serviceAccountName: "tot"
terminationGracePeriodSeconds: 30
containers:
- name: tot
Expand Down Expand Up @@ -396,6 +402,7 @@ spec:
labels:
app: tide
spec:
serviceAccountName: "tide"
containers:
- name: tide
image: gcr.io/k8s-prow/tide:v20180625-90124aa3f
Expand Down
296 changes: 296 additions & 0 deletions ci/prow/config_start.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

# Initial configuration of prow cluster

# Configs

apiVersion: v1
kind: ConfigMap
metadata:
Expand All @@ -28,6 +30,9 @@ metadata:
data:
config: ""
---

# Namespaces

apiVersion: v1
kind: Namespace
metadata:
Expand All @@ -37,3 +42,294 @@ apiVersion: v1
kind: Namespace
metadata:
name: test-pods
---

# Service accounts, roles and bindings

kind: ServiceAccount
apiVersion: v1
metadata:
name: "default"
namespace: test-pods
---
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: "default"
namespace: test-pods
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: "test-pods-default"
subjects:
- kind: ServiceAccount
name: "default"
namespace: test-pods
---
kind: Role
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: "test-pods-default"
namespace: test-pods
rules:
- apiGroups:
- ""
resources:
- pods
verbs:
- get
---
kind: ServiceAccount
apiVersion: v1
metadata:
name: "deck"
---
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: "deck"
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: "deck"
subjects:
- kind: ServiceAccount
name: "deck"
namespace: default
---
kind: Role
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: "deck"
rules:
- apiGroups:
- ""
resources:
- pods/log
verbs:
- get
- apiGroups:
- "prow.k8s.io"
resources:
- prowjobs
verbs:
- get
- list
---
kind: ServiceAccount
apiVersion: v1
metadata:
name: "horologium"
---
kind: Role
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: "horologium"
rules:
- apiGroups:
- "prow.k8s.io"
resources:
- prowjobs
verbs:
- create
- list
---
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: "horologium"
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: "horologium"
subjects:
- kind: ServiceAccount
name: "horologium"
namespace: default
---
kind: ServiceAccount
apiVersion: v1
metadata:
name: "plank"
---
kind: Role
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: "plank"
rules:
- apiGroups:
- ""
resources:
- pods
verbs:
- create
- delete
- list
- apiGroups:
- "prow.k8s.io"
resources:
- prowjobs
verbs:
- create
- list
- update
---
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: "plank"
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: "plank"
subjects:
- kind: ServiceAccount
name: "plank"
namespace: default
---
kind: ServiceAccount
apiVersion: v1
metadata:
name: "sinker"
---
kind: Role
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: "sinker"
rules:
- apiGroups:
- ""
resources:
- pods
verbs:
- delete
- list
- apiGroups:
- "prow.k8s.io"
resources:
- prowjobs
verbs:
- delete
- list
---
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: "sinker"
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: "sinker"
subjects:
- kind: ServiceAccount
name: "sinker"
namespace: default
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: "hook"
---
kind: Role
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: "hook"
rules:
- apiGroups:
- "prow.k8s.io"
resources:
- prowjobs
verbs:
- create
- get
- apiGroups:
- ""
resources:
- configmaps
verbs:
- update
---
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: "hook"
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: "hook"
subjects:
- kind: ServiceAccount
name: "hook"
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: "tide"
---
kind: Role
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: "tide"
rules:
- apiGroups:
- "prow.k8s.io"
resources:
- prowjobs
verbs:
- get
- list
- apiGroups:
- ""
resources:
- configmaps
verbs:
- update
---
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: "tide"
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: "tide"
subjects:
- kind: ServiceAccount
name: "tide"
namespace: default
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: "tot"
---
kind: Role
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: "tot"
rules:
- apiGroups:
- "prow.k8s.io"
resources:
- prowjobs
verbs:
- create
- get
- apiGroups:
- ""
resources:
- configmaps
verbs:
- update
---
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: "tot"
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: "tot"
subjects:
- kind: ServiceAccount
name: "tot"
2 changes: 1 addition & 1 deletion images/prow-tests/scripts/library.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

# Copyright 2018 The Knative Authors
#
# x
# 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
Expand Down
Loading