Skip to content

Commit 02f8892

Browse files
committed
Merge remote-tracking branch 'teamhephy/master' into issue/fix-objecstorage-keyfile-in-namespaces
2 parents ec87381 + f5363a9 commit 02f8892

40 files changed

Lines changed: 905 additions & 131 deletions

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# If DEIS_REGISTRY is not set, try to populate it from legacy DEV_REGISTRY
22
DEIS_REGISTRY ?= $(DEV_REGISTRY)
3-
IMAGE_PREFIX ?= deis
3+
IMAGE_PREFIX ?= hephy
44
COMPONENT ?= controller
55
SHORT_NAME ?= $(COMPONENT)
66

README.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11

22
# Deis Controller
33

4-
[![Build Status](https://ci.deis.io/job/controller/badge/icon)](https://ci.deis.io/job/controller)
4+
[![Build Status](https://travis-ci.org/teamhephy/controller.svg?branch=master)](https://travis-ci.org/teamhephy/controller)
55
[![codecov.io](https://codecov.io/github/deis/controller/coverage.svg?branch=master)](https://codecov.io/github/deis/controller?branch=master)
66
[![Docker Repository on Quay](https://quay.io/repository/deisci/controller/status "Docker Repository on Quay")](https://quay.io/repository/deisci/controller)
7-
[![Dependency Status](https://www.versioneye.com/user/projects/5863f1de6f4bf900128fa95a/badge.svg?style=flat)](https://www.versioneye.com/user/projects/5863f1de6f4bf900128fa95a)
87

98
Deis (pronounced DAY-iss) Workflow is an open source Platform as a Service (PaaS) that adds a developer-friendly layer to any [Kubernetes](http://kubernetes.io) cluster, making it easy to deploy and manage applications on your own servers.
109

11-
For more information about the Deis Workflow, please visit the main project page at https://github.com/deisthree/workflow.
10+
For more information about the Deis Workflow, please visit the main project page at https://github.com/teamhephy/workflow.
1211

1312
We welcome your input! If you have feedback, please [submit an issue][issues]. If you'd like to participate in development, please read the "Development" section below and [submit a pull request][prs].
1413

@@ -47,7 +46,7 @@ You'll want to test your code changes interactively in a working Kubernetes clus
4746

4847
### Workflow Installation
4948

50-
After you have a working Kubernetes cluster, you're ready to [install Workflow](https://deis.com/docs/workflow/installing-workflow/).
49+
After you have a working Kubernetes cluster, you're ready to [install Workflow](https://docs.teamhephy.com/installing-workflow/).
5150

5251
## Testing Your Code
5352

@@ -77,8 +76,8 @@ kubectl get pod --namespace=deis -w | grep deis-controller
7776
```
7877

7978
[install-k8s]: https://kubernetes.io/docs/setup/pick-right-solution
80-
[issues]: https://github.com/deisthree/controller/issues
81-
[prs]: https://github.com/deisthree/controller/pulls
82-
[workflow]: https://github.com/deisthree/workflow
79+
[issues]: https://github.com/teamhephy/controller/issues
80+
[prs]: https://github.com/teamhephy/controller/pulls
81+
[workflow]: https://github.com/teamhephy/workflow
8382
[Docker]: https://www.docker.com/
84-
[v2.18]: https://github.com/deisthree/workflow/releases/tag/v2.18.0
83+
[v2.18]: https://github.com/teamhephy/workflow/releases/tag/v2.21.4

charts/controller/Chart.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
name: controller
2-
home: https://github.com/deisthree/controller
2+
home: https://github.com/teamhephy/controller
33
version: <Will be populated by the ci before publishing the chart>
4-
description: Deis Workflow Controller (API).
4+
description: Hephy Workflow Controller (API).
55
maintainers:
6-
- name: Deis Team
7-
email: engineering@deis.com
6+
- email: team@teamhephy.com
Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,21 @@
11
{{/*
2-
Set apiVersion based on Kubernetes version
2+
Set apiVersion based on .Capabilities.APIVersions
33
*/}}
44
{{- define "rbacAPIVersion" -}}
5-
{{- if lt .Capabilities.KubeVersion.Minor "6" -}}
6-
rbac.authorization.k8s.io/v1alpha1
7-
{{- else if (and (ge .Capabilities.KubeVersion.Minor "6") (le .Capabilities.KubeVersion.Minor "7")) -}}
5+
{{- if .Capabilities.APIVersions.Has "rbac.authorization.k8s.io/v1beta1" -}}
86
rbac.authorization.k8s.io/v1beta1
7+
{{- else if .Capabilities.APIVersions.Has "rbac.authorization.k8s.io/v1alpha1" -}}
8+
rbac.authorization.k8s.io/v1alpha1
99
{{- else -}}
1010
rbac.authorization.k8s.io/v1
1111
{{- end -}}
1212
{{- end -}}
13+
{{- define "APIVersion" -}}
14+
{{- if .Capabilities.APIVersions.Has "apps/v1" -}}
15+
apps/v1
16+
{{- else if .Capabilities.APIVersions.Has "extensions/v1beta1" -}}
17+
extensions/v1beta1
18+
{{- else -}}
19+
apps/v1
20+
{{- end -}}
21+
{{- end -}}

charts/controller/templates/controller-clusterrole.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ rules:
3838
- apiGroups: [""]
3939
resources: ["resourcequotas"]
4040
verbs: ["get", "create"]
41-
- apiGroups: ["extensions"]
41+
- apiGroups: ["extensions", "apps"]
4242
resources: ["replicasets"]
4343
verbs: ["get", "list", "delete", "update"]
4444
- apiGroups: ["extensions", "apps"]
4545
resources: ["deployments"]
4646
verbs: ["get", "list", "create", "update", "delete"]
47-
- apiGroups: ["extensions"]
47+
- apiGroups: ["extensions", "apps"]
4848
resources: ["deployments/scale", "replicasets/scale"]
49-
verbs: ["get", "update"]
49+
verbs: ["get", "update", "patch"]
5050
- apiGroups: ["extensions", "autoscaling"]
5151
resources: ["horizontalpodautoscalers"]
5252
verbs: ["get", "list", "create", "update", "delete"]

charts/controller/templates/controller-deployment.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: extensions/v1beta1
1+
apiVersion: {{ template "APIVersion" . }}
22
kind: Deployment
33
metadata:
44
name: deis-controller
@@ -128,6 +128,10 @@ spec:
128128
secretKeyRef:
129129
name: database-creds
130130
key: password
131+
{{- if (.Values.deis_ignore_scheduling_failure) }}
132+
- name: DEIS_IGNORE_SCHEDULING_FAILURE
133+
value: "{{ .Values.deis_ignore_scheduling_failure }}"
134+
{{- end }}
131135
- name: RESERVED_NAMES
132136
value: "deis, deis-builder, deis-workflow-manager, grafana"
133137
- name: WORKFLOW_NAMESPACE

charts/controller/templates/controller-ingress-rule-http-80.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
apiVersion: extensions/v1beta1
33
kind: Ingress
44
metadata:
5-
namespace: "deis"
5+
namespace: "{{ .Release.Namespace }}"
66
name: "controller-api-server-ingress-http"
77
labels:
88
app: "controller"

rootfs/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM quay.io/deis/base:v0.3.6
1+
FROM hephy/base:v0.4.1
22

33
RUN adduser --system \
44
--shell /bin/bash \
@@ -17,6 +17,7 @@ RUN buildDeps='gcc libffi-dev libpq-dev libldap2-dev libsasl2-dev python3-dev py
1717
libpq5 \
1818
libldap-2.4 \
1919
python3-minimal \
20+
python3-distutils \
2021
# cryptography package needs pkg_resources
2122
python3-pkg-resources && \
2223
ln -s /usr/bin/python3 /usr/bin/python && \

rootfs/Dockerfile.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM quay.io/deis/base:v0.3.6
1+
FROM hephy/base:v0.4.1
22

33
RUN adduser --system \
44
--shell /bin/bash \
@@ -49,7 +49,7 @@ RUN buildDeps='gcc libffi-dev libpq-dev libldap2-dev libsasl2-dev python3-dev py
4949
WORKDIR /app
5050

5151
# test-unit additions to the main Dockerfile
52-
ENV PGBIN=/usr/lib/postgresql/9.5/bin PGDATA=/var/lib/postgresql/data
52+
ENV PGBIN=/usr/lib/postgresql/10/bin PGDATA=/var/lib/postgresql/data
5353
RUN apt-get update && \
5454
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
5555
git \

rootfs/api/exceptions.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
from django.http import Http404
22
import logging
3-
from rest_framework.compat import set_rollback
43
from rest_framework.exceptions import APIException, status
54
from rest_framework.response import Response
6-
from rest_framework.views import exception_handler
5+
from rest_framework.views import set_rollback, exception_handler
76

87

98
class HealthcheckException(APIException):

0 commit comments

Comments
 (0)