Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
feat: add namespace for release
Browse files Browse the repository at this point in the history
  • Loading branch information
Saul committed Jul 16, 2021
1 parent 81b59d5 commit c640287
Show file tree
Hide file tree
Showing 10 changed files with 28 additions and 23 deletions.
14 changes: 7 additions & 7 deletions config/base/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: template-operator-manager
namespace: platform-system
namespace: template-operator
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: template-operator-leader-election-role
namespace: platform-system
namespace: template-operator
rules:
- apiGroups:
- ""
Expand Down Expand Up @@ -54,15 +54,15 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: template-operator-leader-election-rolebinding
namespace: platform-system
namespace: template-operator
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: template-operator-leader-election-role
subjects:
- kind: ServiceAccount
name: template-operator-manager
namespace: platform-system
namespace: template-operator
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
Expand All @@ -75,7 +75,7 @@ roleRef:
subjects:
- kind: ServiceAccount
name: template-operator-manager
namespace: platform-system
namespace: template-operator
---
apiVersion: v1
kind: Service
Expand All @@ -85,7 +85,7 @@ metadata:
labels:
control-plane: template-operator
name: template-operator-template-operator
namespace: platform-system
namespace: template-operator
spec:
ports:
- name: prometheus
Expand All @@ -100,7 +100,7 @@ metadata:
labels:
control-plane: template-operator
name: template-operator-controller-manager
namespace: platform-system
namespace: template-operator
spec:
replicas: 1
selector:
Expand Down
2 changes: 1 addition & 1 deletion config/base/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Adds namespace to all resources.
namespace: platform-system
namespace: template-operator

namePrefix: template-operator-

Expand Down
2 changes: 1 addition & 1 deletion config/default/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Adds namespace to all resources.
namespace: platform-system
namespace: template-operator

# Value of this field is prepended to the
# names of all resources, e.g. a deployment named
Expand Down
14 changes: 7 additions & 7 deletions config/deploy/operator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -369,13 +369,13 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: template-operator-manager
namespace: platform-system
namespace: template-operator
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: template-operator-leader-election-role
namespace: platform-system
namespace: template-operator
rules:
- apiGroups:
- ""
Expand Down Expand Up @@ -421,15 +421,15 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: template-operator-leader-election-rolebinding
namespace: platform-system
namespace: template-operator
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: template-operator-leader-election-role
subjects:
- kind: ServiceAccount
name: template-operator-manager
namespace: platform-system
namespace: template-operator
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
Expand All @@ -442,7 +442,7 @@ roleRef:
subjects:
- kind: ServiceAccount
name: template-operator-manager
namespace: platform-system
namespace: template-operator
---
apiVersion: v1
kind: Service
Expand All @@ -452,7 +452,7 @@ metadata:
labels:
control-plane: template-operator
name: template-operator-template-operator
namespace: platform-system
namespace: template-operator
spec:
ports:
- name: prometheus
Expand All @@ -467,7 +467,7 @@ metadata:
labels:
control-plane: template-operator
name: template-operator-controller-manager
namespace: platform-system
namespace: template-operator
spec:
replicas: 1
selector:
Expand Down
7 changes: 6 additions & 1 deletion config/manager/manager.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
kind: Namespace
apiVersion: v1
metadata:
name: template-operator
---
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -46,7 +51,7 @@ apiVersion: v1
kind: Service
metadata:
name: template-operator
namespace: platform-system
namespace: template-operator
annotations:
prometheus.io/scrape: "true"
labels:
Expand Down
2 changes: 1 addition & 1 deletion config/samples/example_ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: example-ingress
namespace: platform-system
namespace: template-operator
labels:
"platform.flanksource.com/autocomplete-ingress-domain": "true"
spec:
Expand Down
2 changes: 1 addition & 1 deletion config/samples/templating.flanksource.com_v1_template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: templating.flanksource.com/v1
kind: Template
metadata:
name: dynamic-ingress-hostnames
namespace: platform-system
namespace: template-operator
spec:
onceoff: true # need to set this flag as otherwise it will trigger an endless loop appending the domain to iteself.
source:
Expand Down
2 changes: 1 addition & 1 deletion examples/static-secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ spec:
namespaces:
- minio
- monitoring
- platform-system
- template-operator
- quack
2 changes: 1 addition & 1 deletion test/e2e.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import (
)

const (
namespace = "platform-system"
namespace = "template-operator"
deployment = "template-operator-controller-manager"
)

Expand Down
4 changes: 2 additions & 2 deletions test/patch1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ metadata:
# Disable reload/all in tests
annotations: null
name: platform-operator
namespace: platform-system
namespace: template-operator
spec:
replicas: 1
template:
Expand All @@ -148,7 +148,7 @@ metadata:
# Disable reload/all in tests
annotations: null
name: canary-checker
namespace: platform-system
namespace: template-operator
spec:
template:
metadata:
Expand Down

0 comments on commit c640287

Please sign in to comment.