Skip to content

Commit

Permalink
Create namespace for Argo
Browse files Browse the repository at this point in the history
ArgoCD applies the namespace for all object that don't have one.
Even if they are cluster scoped.
The sync then fails if the ns does not exist.
  • Loading branch information
bastjan committed Apr 21, 2022
1 parent ae6b119 commit 7696a7e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions component/main.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,6 @@ local patches =

// Define outputs below
{
'00_namespace': kube.Namespace(params.namespace),
'10_node_selector_patch': patches,
}
2 changes: 0 additions & 2 deletions docs/modules/ROOT/pages/references/parameters.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ default:: `openshift-networking`

The namespace in which to deploy this component.

NOTE: The component doesn't manage the namespace.


== `defaultNodeSelector`

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: v1
kind: Namespace
metadata:
annotations: {}
labels:
name: openshift-networking
name: openshift-networking

0 comments on commit 7696a7e

Please sign in to comment.