forked from tektoncd/dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce Kustomize and read-only ('locked-down') yaml base
- Loading branch information
1 parent
9b649ab
commit 3e0c254
Showing
35 changed files
with
598 additions
and
1,021 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
--- | ||
kind: ClusterRole | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: tekton-dashboard-minimal | ||
namespace: tekton-pipelines | ||
rules: | ||
- apiGroups: ["apiextensions.k8s.io"] | ||
resources: ["customresourcedefinitions"] | ||
verbs: ["get", "list"] | ||
- apiGroups: ["security.openshift.io"] | ||
resources: ["securitycontextconstraints"] | ||
verbs: ["use"] | ||
- apiGroups: ["route.openshift.io"] | ||
resources: ["routes"] | ||
verbs: ["get", "list"] | ||
- apiGroups: ["extensions", "apps"] | ||
resources: ["ingresses"] | ||
verbs: ["get", "list", "watch"] | ||
- apiGroups: [""] | ||
resources: ["serviceaccounts"] | ||
verbs: ["get", "list"] | ||
- apiGroups: [""] | ||
resources: ["pods", "services"] | ||
verbs: ["get", "list", "watch"] | ||
- apiGroups: [""] | ||
resources: ["pods/log", "namespaces", "events"] | ||
verbs: ["get", "list", "watch"] | ||
- apiGroups: [""] | ||
resources: ["secrets", "configmaps"] | ||
verbs: ["get", "list", "watch"] | ||
- apiGroups: ["extensions", "apps"] | ||
resources: ["deployments"] | ||
verbs: ["get", "list", "watch"] | ||
- apiGroups: ["tekton.dev"] | ||
resources: ["tasks", "clustertasks", "taskruns", "pipelines", | ||
"pipelineruns", "pipelineresources", "conditions"] | ||
verbs: ["get", "list", "watch"] | ||
- apiGroups: ["tekton.dev"] | ||
resources: ["taskruns/finalizers", "pipelineruns/finalizers"] | ||
verbs: ["get", "list", "watch"] | ||
- apiGroups: ["tekton.dev"] | ||
resources: ["tasks/status", "clustertasks/status", "taskruns/status", | ||
"pipelines/status", "pipelineruns/status"] | ||
verbs: ["get", "list", "watch"] | ||
- apiGroups: ["dashboard.tekton.dev"] | ||
resources: ["extensions"] | ||
verbs: ["get", "list", "watch"] | ||
- apiGroups: ["tekton.dev"] | ||
resources: ["eventlisteners", "triggerbindings", | ||
"triggertemplates"] | ||
verbs: ["get", "list", "watch"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: tekton-dashboard-minimal | ||
subjects: | ||
- kind: ServiceAccount | ||
name: tekton-dashboard | ||
namespace: tekton-pipelines | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: tekton-dashboard-minimal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
apiVersion: apiextensions.k8s.io/v1beta1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: extensions.dashboard.tekton.dev | ||
spec: | ||
group: dashboard.tekton.dev | ||
names: | ||
kind: Extension | ||
plural: extensions | ||
categories: | ||
- tekton | ||
- tekton-dashboard | ||
scope: Namespaced | ||
# Opt into the status subresource so metadata.generation | ||
# starts to increment | ||
subresources: | ||
status: {} | ||
version: v1alpha1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
labels: | ||
app: tekton-dashboard | ||
name: tekton-dashboard | ||
namespace: tekton-pipelines |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: tekton-dashboard | ||
namespace: tekton-pipelines | ||
labels: | ||
app: tekton-dashboard | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: tekton-dashboard | ||
template: | ||
metadata: | ||
name: tekton-dashboard | ||
labels: | ||
app: tekton-dashboard | ||
spec: | ||
serviceAccountName: tekton-dashboard | ||
containers: | ||
- name: tekton-dashboard | ||
image: dashboardImage | ||
ports: | ||
- containerPort: 9097 | ||
livenessProbe: | ||
httpGet: | ||
path: /health | ||
port: 9097 | ||
readinessProbe: | ||
httpGet: | ||
path: /readiness | ||
port: 9097 | ||
env: | ||
- name: PORT | ||
value: "9097" | ||
- name: WEB_RESOURCES_DIR | ||
value: /var/run/ko/web | ||
- name: PIPELINE_RUN_SERVICE_ACCOUNT | ||
value: "" | ||
- name: INSTALLED_NAMESPACE | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: metadata.namespace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
kind: Service | ||
apiVersion: v1 | ||
metadata: | ||
name: tekton-dashboard | ||
namespace: tekton-pipelines | ||
labels: | ||
app: tekton-dashboard | ||
spec: | ||
ports: | ||
- name: http | ||
protocol: TCP | ||
port: 9097 | ||
targetPort: 9097 | ||
selector: | ||
app: tekton-dashboard |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
apiVersion: tekton.dev/v1alpha1 | ||
kind: Pipeline | ||
metadata: | ||
name: pipeline0 | ||
namespace: tekton-pipelines | ||
spec: | ||
resources: | ||
- name: git-source | ||
type: git | ||
params: | ||
- name: pathToResourceFiles | ||
description: The path to the resource files to apply | ||
default: /workspace/git-source | ||
type: string | ||
- name: apply-directory | ||
description: The directory from which resources are to be applied | ||
default: "." | ||
type: string | ||
- name: target-namespace | ||
description: The namespace in which to create the resources being imported | ||
default: tekton-pipelines | ||
type: string | ||
tasks: | ||
- name: pipeline0-task | ||
taskRef: | ||
name: pipeline0-task | ||
params: | ||
- name: pathToResourceFiles | ||
value: $(params.pathToResourceFiles) | ||
- name: apply-directory | ||
value: $(params.apply-directory) | ||
- name: target-namespace | ||
value: $(params.target-namespace) | ||
resources: | ||
inputs: | ||
- name: git-source | ||
resource: git-source |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
resources: | ||
- 200-clusterrole.yaml | ||
- 201-clusterrolebinding.yaml | ||
- 202-extension-crd.yaml | ||
- 203-serviceaccount.yaml | ||
- 300-deployment.yaml | ||
- 300-service.yaml | ||
- 400-pipeline0-task.yaml | ||
- 401-pipeline0.yaml |
Oops, something went wrong.