Skip to content

Commit 6033103

Browse files
authored
Merge pull request #159 from Cryptophobia/master
chore(charts): rm experimental from ingress
2 parents 168d035 + d6887b6 commit 6033103

File tree

6 files changed

+14
-14
lines changed

6 files changed

+14
-14
lines changed

charts/controller/templates/controller-clusterrole.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ rules:
5050
- apiGroups: ["extensions", "autoscaling"]
5151
resources: ["horizontalpodautoscalers"]
5252
verbs: ["get", "list", "create", "update", "delete"]
53-
{{ if .Values.global.experimental_native_ingress }}
53+
{{ if .Values.global.native_ingress }}
5454
- apiGroups: ["networking.k8s.io"]
5555
resources: ["ingresses"]
5656
verbs: ["get", "list", "watch", "create", "update", "delete"]

charts/controller/templates/controller-deployment.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ spec:
5858
# NOTE(bacongobbler): use deis/registry_proxy to work around Docker --insecure-registry requirements
5959
- name: "DEIS_REGISTRY_SERVICE_HOST"
6060
value: "127.0.0.1"
61-
# Environmental variable value for $EXPERIMENTAL_NATIVE_INGRESS
62-
- name: "EXPERIMENTAL_NATIVE_INGRESS"
63-
value: "{{ .Values.global.experimental_native_ingress }}"
64-
- name: "EXPERIMENTAL_NATIVE_INGRESS_HOSTNAME"
61+
# Environmental variable value for $NATIVE_INGRESS
62+
- name: "NATIVE_INGRESS"
63+
value: "{{ .Values.global.native_ingress }}"
64+
- name: "NATIVE_INGRESS_HOSTNAME"
6565
value: "{{ .Values.platform_domain }}"
6666
- name: "K8S_API_VERIFY_TLS"
6767
value: "{{ .Values.k8s_api_verify_tls }}"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{ if .Values.global.experimental_native_ingress }}
1+
{{ if .Values.global.native_ingress }}
22
apiVersion: networking.k8s.io/v1
33
kind: Ingress
44
metadata:

charts/controller/values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ global:
6666
# - 600
6767
# - "None"
6868
# conn_max_age: 600
69-
# Experimental feature to toggle using kubernetes ingress instead of the Deis router.
69+
# Feature to toggle using kubernetes ingress instead of the Deis router.
7070
#
7171
# Valid values are:
7272
# - true: The deis controller will now create Kubernetes ingress rules for each app, and ingress rules will automatically be created for the controller itself.
7373
# - false: The default mode, and the default behavior of Deis workflow.
74-
experimental_native_ingress: false
74+
native_ingress: false
7575
# Role-Based Access Control for Kubernetes >= 1.5
7676
use_rbac: false

rootfs/api/models/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ def create(self, *args, **kwargs): # noqa
229229

230230
try:
231231
# In order to create an ingress, we must first have a namespace.
232-
if settings.EXPERIMENTAL_NATIVE_INGRESS:
232+
if settings.NATIVE_INGRESS:
233233
if ingress == "":
234234
raise ServiceUnavailable('Empty hostname')
235235
try:
@@ -238,7 +238,7 @@ def create(self, *args, **kwargs): # noqa
238238
self.log("creating Ingress {}".format(namespace), level=logging.INFO)
239239
self._scheduler.ingress.create(ingress,
240240
namespace,
241-
settings.EXPERIMENTAL_NATIVE_INGRESS_HOSTNAME)
241+
settings.NATIVE_INGRESS_HOSTNAME)
242242
except KubeException as e:
243243
raise ServiceUnavailable('Could not create Ingress in Kubernetes') from e
244244
try:

rootfs/api/settings/production.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -270,10 +270,10 @@
270270
SECRET_KEY = os.environ.get('DEIS_SECRET_KEY', random_secret)
271271
BUILDER_KEY = os.environ.get('DEIS_BUILDER_KEY', random_secret)
272272

273-
# experimental native ingress
274-
EXPERIMENTAL_NATIVE_INGRESS = bool(strtobool(
275-
os.environ.get('EXPERIMENTAL_NATIVE_INGRESS', 'false')))
276-
EXPERIMENTAL_NATIVE_INGRESS_HOSTNAME = os.environ.get('EXPERIMENTAL_NATIVE_INGRESS_HOSTNAME', '')
273+
# native ingress
274+
NATIVE_INGRESS = bool(strtobool(
275+
os.environ.get('NATIVE_INGRESS', 'false')))
276+
NATIVE_INGRESS_HOSTNAME = os.environ.get('NATIVE_INGRESS_HOSTNAME', '')
277277

278278
# k8s image policies
279279
SLUGRUNNER_IMAGE = os.environ.get('SLUGRUNNER_IMAGE_NAME', 'quay.io/deisci/slugrunner:canary') # noqa

0 commit comments

Comments
 (0)