Skip to content
This repository was archived by the owner on Jan 5, 2023. It is now read-only.

Commit

Permalink
flux now requires namespace to be set
Browse files Browse the repository at this point in the history
Signed-off-by: Phil Prasek <[email protected]>
  • Loading branch information
prasek committed Nov 5, 2021
1 parent c84a087 commit f18c5cc
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .scripts/k8s-up-flux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,13 @@ flux create kustomization infra \
--path="./infra/${INFRA_ENV}" \
--prune=true \
--interval=1m \
--validation=client

flux create kustomization subgraphs \
--namespace=default \
--source=GitRepository/k8s-graph-ops.flux-system \
--path="./subgraphs/${SUBGRAPHS_ENV}" \
--prune=true \
--interval=1m \
--validation=client

flux create kustomization router \
--depends-on=infra \
Expand All @@ -33,7 +31,6 @@ flux create kustomization router \
--path="./router/${ROUTER_ENV}" \
--prune=true \
--interval=1m \
--validation=client

kubectl wait --namespace ingress-nginx \
--for=condition=ready pod \
Expand Down
1 change: 1 addition & 0 deletions router/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ resources:
- router.yaml
configMapGenerator:
- name: supergraph
namespace: default
3 changes: 3 additions & 0 deletions router/base/router.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: router-deployment
namespace: default
labels:
app: router
spec:
Expand Down Expand Up @@ -34,6 +35,7 @@ apiVersion: v1
kind: Service
metadata:
name: router-service
namespace: default
spec:
selector:
app: router
Expand All @@ -46,6 +48,7 @@ apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: router-ingress
namespace: default
annotations:
kubernetes.io/ingress.class: nginx
spec:
Expand Down
1 change: 1 addition & 0 deletions router/dev/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ configMapGenerator:
files:
- ./supergraph.graphql
name: supergraph
namespace: default
resources:
- ../base
images:
Expand Down
1 change: 1 addition & 0 deletions router/prod/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ configMapGenerator:
files:
- ./supergraph.graphql
name: supergraph
namespace: default
resources:
- ../base
images:
Expand Down
1 change: 1 addition & 0 deletions router/stage/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ configMapGenerator:
files:
- ./supergraph.graphql
name: supergraph
namespace: default
resources:
- ../base
images:
Expand Down
6 changes: 6 additions & 0 deletions subgraphs/base/subgraphs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: products
namespace: default
labels:
app: subgraph-products
spec:
Expand All @@ -24,6 +25,7 @@ apiVersion: v1
kind: Service
metadata:
name: products
namespace: default
spec:
selector:
app: subgraph-products
Expand All @@ -36,6 +38,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: users
namespace: default
labels:
app: subgraph-users
spec:
Expand All @@ -58,6 +61,7 @@ apiVersion: v1
kind: Service
metadata:
name: users
namespace: default
spec:
selector:
app: subgraph-users
Expand All @@ -70,6 +74,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: inventory
namespace: default
labels:
app: subgraph-inventory
spec:
Expand All @@ -92,6 +97,7 @@ apiVersion: v1
kind: Service
metadata:
name: inventory
namespace: default
spec:
selector:
app: subgraph-inventory
Expand Down

0 comments on commit f18c5cc

Please sign in to comment.