Skip to content

Commit

Permalink
Merge pull request #32 from appuio/schedule-console-on-master
Browse files Browse the repository at this point in the history
Schedule all console components on master nodes
  • Loading branch information
bastjan authored Apr 21, 2022
2 parents f829547 + f9e4ab4 commit a746fd0
Show file tree
Hide file tree
Showing 10 changed files with 43 additions and 1 deletion.
2 changes: 2 additions & 0 deletions class/defaults.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
parameters:
openshift4_console:
namespace: openshift-console
namespace_annotations:
openshift.io/node-selector: node-role.kubernetes.io/master=
openshift_version: '4.8'
route:
console: {}
Expand Down
2 changes: 1 addition & 1 deletion component/main.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ local openshiftConfigNsAnnotationPatch =
{
'00_namespace': kube.Namespace(params.namespace) {
metadata+: {
annotations:: {},
annotations: std.prune(params.namespace_annotations),
[if std.member(inv.applications, 'networkpolicy') then 'labels']+: {
[inv.parameters.networkpolicy.labels.noDefaults]: 'true',
[inv.parameters.networkpolicy.labels.purgeDefaults]: 'true',
Expand Down
26 changes: 26 additions & 0 deletions docs/modules/ROOT/pages/references/parameters.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,32 @@

The parent key for all of the following parameters is `openshift4_console`.

== `namespace`

[horizontal]
type:: string
default:: `openshift-console`

The namespace where the console is deployed.

[IMPORTANT]
It's not recommended to change this parameter.
Changing the parameter might break the components function.

== `namespace_annotations`

type:: dictionary
default::
+
[source,yaml]
----
openshift.io/node-selector: node-role.kubernetes.io/master=
----

Annotations to add to the managed namespace.
Annotations can be removed by setting the value to `null`.


== `openshift_version`

[horizontal]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
apiVersion: v1
kind: Namespace
metadata:
annotations:
openshift.io/node-selector: node-role.kubernetes.io/master=
labels:
name: openshift-console
name: openshift-console
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
apiVersion: v1
kind: Namespace
metadata:
annotations:
openshift.io/node-selector: node-role.kubernetes.io/master=
labels:
name: openshift-console
name: openshift-console
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
apiVersion: v1
kind: Namespace
metadata:
annotations:
openshift.io/node-selector: node-role.kubernetes.io/master=
labels:
name: openshift-console
name: openshift-console
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
apiVersion: v1
kind: Namespace
metadata:
annotations:
openshift.io/node-selector: node-role.kubernetes.io/master=
labels:
name: openshift-console
name: openshift-console
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
apiVersion: v1
kind: Namespace
metadata:
annotations:
openshift.io/node-selector: node-role.kubernetes.io/master=
labels:
name: openshift-console
name: openshift-console
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
apiVersion: v1
kind: Namespace
metadata:
annotations:
openshift.io/node-selector: node-role.kubernetes.io/master=
labels:
name: openshift-console
name: openshift-console
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
apiVersion: v1
kind: Namespace
metadata:
annotations:
openshift.io/node-selector: node-role.kubernetes.io/master=
labels:
name: openshift-console
name: openshift-console

0 comments on commit a746fd0

Please sign in to comment.