Skip to content

Commit

Permalink
fix: first spike of the new environment-controller
Browse files Browse the repository at this point in the history
  • Loading branch information
jstrachan committed Apr 10, 2019
1 parent 20912ed commit 490a3d7
Show file tree
Hide file tree
Showing 62 changed files with 174 additions and 1,371 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.idea
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ CHART_REPO := http://jenkins-x-chartmuseum:8080
NAME := environment-controller
OS := $(shell uname)

CHARTMUSEUM_CREDS_USR := $(shell cat /builder/home/basic-auth-user.json)
CHARTMUSEUM_CREDS_PSW := $(shell cat /builder/home/basic-auth-pass.json)
CHARTMUSEUM_CREDS_USR ?= $(shell cat /builder/home/basic-auth-user.json)
CHARTMUSEUM_CREDS_PSW ?= $(shell cat /builder/home/basic-auth-pass.json)

init:
helm init --client-only
Expand Down
2 changes: 2 additions & 0 deletions environment-controller/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
charts
requirements.lock
21 changes: 0 additions & 21 deletions environment-controller/_helpers.tpl

This file was deleted.

5 changes: 5 additions & 0 deletions environment-controller/requirements.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
dependencies:
- name: "tekton"
repository: "http://chartmuseum.jenkins-x.io"
version: "0.0.33"
2 changes: 1 addition & 1 deletion environment-controller/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Prow
Environment Controller
69 changes: 2 additions & 67 deletions environment-controller/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,72 +3,7 @@
Expand the name of the chart.
*/}}

{{- define "branchprotector.name" -}}
{{- default "branchprotector" .Values.branchprotector.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- define "environment.controller.name" -}}
{{- default "environment-controller" .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}

{{- define "build-controller.name" -}}
{{- default "prow-build" .Values.tide.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}

{{- define "prow.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}

{{- define "crier.name" -}}
{{- default "crier" .Values.crier.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}

{{- define "deck.name" -}}
{{- default "deck" .Values.deck.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}

{{- define "hook.name" -}}
{{- default "hook" .Values.hook.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}

{{- define "horologium.name" -}}
{{- default "horologium" .Values.horologium.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}

{{- define "plank.name" -}}
{{- default "plank" .Values.plank.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}

{{- define "sinker.name" -}}
{{- default "sinker" .Values.sinker.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}

{{- define "tide.name" -}}
{{- default "tide" .Values.tide.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}

{{- define "buildnum.name" -}}
{{- default "buildnum" .Values.buildnum.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}

{{/*
Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
*/}}
{{- define "prow.fullname" -}}
{{- $name := default .Chart.Name .Values.nameOverride -}}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
{{- end -}}

{{- define "build.name" -}}
{{- default "knative-build" .Values.build.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}

{{- define "build.controller.name" -}}
{{- default "build-controller" .Values.build.controller.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}

{{/*
Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
*/}}
{{- define "build.fullname" -}}
{{- $name := default .Chart.Name .Values.nameOverride -}}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
72 changes: 0 additions & 72 deletions environment-controller/templates/build-controller-deployment.yaml

This file was deleted.

25 changes: 0 additions & 25 deletions environment-controller/templates/build-controller-role.yaml

This file was deleted.

This file was deleted.

4 changes: 0 additions & 4 deletions environment-controller/templates/build-controller-sa.yaml

This file was deleted.

35 changes: 0 additions & 35 deletions environment-controller/templates/buildnum-deployment.yaml

This file was deleted.

11 changes: 0 additions & 11 deletions environment-controller/templates/buildnum-rb.yaml

This file was deleted.

14 changes: 0 additions & 14 deletions environment-controller/templates/buildnum-role.yaml

This file was deleted.

4 changes: 0 additions & 4 deletions environment-controller/templates/buildnum-sa.yaml

This file was deleted.

13 changes: 0 additions & 13 deletions environment-controller/templates/buildnum-service.yaml

This file was deleted.

13 changes: 0 additions & 13 deletions environment-controller/templates/clusterrolebinding.yaml

This file was deleted.

12 changes: 12 additions & 0 deletions environment-controller/templates/configmap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: v1
kind: ConfigMap
metadata:
{{- if .Values.service.name }}
name: {{ .Values.service.name }}
{{- else }}
name: environment-controller
{{- end }}
annotations:
expose.config.fabric8.io/url-key: "WEBHOOK_URL"
data:
WEBHOOK_URL: ""
15 changes: 0 additions & 15 deletions environment-controller/templates/crier-clusterrole.yaml

This file was deleted.

11 changes: 0 additions & 11 deletions environment-controller/templates/crier-rb.yaml

This file was deleted.

Loading

0 comments on commit 490a3d7

Please sign in to comment.