Skip to content

Commit

Permalink
chore: Adds default namespace to all resources
Browse files Browse the repository at this point in the history
* Prevents snyk warnings about possibility of installing into default
  namespace.

* The namespace property in each resource would be overridden when using
  `kustomize edit set namespace` command like in the Makefile.
  • Loading branch information
phantomjinx committed Apr 22, 2024
1 parent e6258cd commit 499f00f
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions deploy/base/configmap-hawtio-online.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: v1
kind: ConfigMap
metadata:
name: hawtio-online
namespace: hawtio
data:
hawtconfig.json: |
{
Expand Down
1 change: 1 addition & 0 deletions deploy/base/configmap-hawtio-rbac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: v1
kind: ConfigMap
metadata:
name: hawtio-rbac
namespace: hawtio
data:
ACL.yaml: |
# This file defines the roles allowed for MBean operations
Expand Down
1 change: 1 addition & 0 deletions deploy/base/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: hawtio-online
namespace: hawtio
labels:
app: hawtio
deployment: hawtio-online
Expand Down
1 change: 1 addition & 0 deletions deploy/base/service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: v1
kind: Service
metadata:
name: hawtio-online
namespace: hawtio
labels:
app: hawtio
spec:
Expand Down
1 change: 1 addition & 0 deletions deploy/k8s/cluster/ingress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: hawtio-online
namespace: hawtio
labels:
app: hawtio
annotations:
Expand Down
1 change: 1 addition & 0 deletions deploy/k8s/cluster/patch-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: hawtio-online
namespace: hawtio
spec:
template:
spec:
Expand Down
1 change: 1 addition & 0 deletions deploy/k8s/namespace/ingress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: hawtio-online
namespace: hawtio
labels:
app: hawtio
annotations:
Expand Down
1 change: 1 addition & 0 deletions deploy/k8s/namespace/patch-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: hawtio-online
namespace: hawtio
spec:
template:
spec:
Expand Down
1 change: 1 addition & 0 deletions deploy/k8s/namespace/serviceaccount.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: hawtio-online
namespace: hawtio
labels:
app: hawtio
1 change: 1 addition & 0 deletions deploy/openshift/cluster/patch-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: hawtio-online
namespace: hawtio
spec:
template:
spec:
Expand Down
1 change: 1 addition & 0 deletions deploy/openshift/cluster/patch-service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ apiVersion: v1
kind: Service
metadata:
name: hawtio-online
namespace: hawtio
annotations:
service.beta.openshift.io/serving-cert-secret-name: hawtio-online-tls-serving
1 change: 1 addition & 0 deletions deploy/openshift/cluster/route.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: route.openshift.io/v1
kind: Route
metadata:
name: hawtio-online
namespace: hawtio
labels:
app: hawtio
spec:
Expand Down
1 change: 1 addition & 0 deletions deploy/openshift/namespace/patch-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: hawtio-online
namespace: hawtio
spec:
template:
spec:
Expand Down
1 change: 1 addition & 0 deletions deploy/openshift/namespace/patch-service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ apiVersion: v1
kind: Service
metadata:
name: hawtio-online
namespace: hawtio
annotations:
service.beta.openshift.io/serving-cert-secret-name: hawtio-online-tls-serving
1 change: 1 addition & 0 deletions deploy/openshift/namespace/route.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: route.openshift.io/v1
kind: Route
metadata:
name: hawtio-online
namespace: hawtio
labels:
app: hawtio
spec:
Expand Down
1 change: 1 addition & 0 deletions deploy/openshift/namespace/serviceaccount.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: hawtio-online
namespace: hawtio
labels:
app: hawtio
annotations:
Expand Down

0 comments on commit 499f00f

Please sign in to comment.