Skip to content

Commit

Permalink
Fix replika name manifests
Browse files Browse the repository at this point in the history
Co-authored-by: Alby Hernández <[email protected]>
  • Loading branch information
sebastian.vargas and achetronic committed Mar 7, 2022
1 parent 916e726 commit e01bf8d
Show file tree
Hide file tree
Showing 18 changed files with 58 additions and 58 deletions.
2 changes: 1 addition & 1 deletion PROJECT
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
domain: prosimcorp.com
layout:
- go.kubebuilder.io/v3
projectName: replika2
projectName: replika
repo: prosimcorp.com/replika
resources:
- api:
Expand Down
4 changes: 2 additions & 2 deletions config/default/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Adds namespace to all resources.
namespace: replika2-system
namespace: replika

# Value of this field is prepended to the
# names of all resources, e.g. a deployment named
# "wordpress" becomes "alices-wordpress".
# Note that it should also match with the prefix (text before '-') of the namespace
# field above.
namePrefix: replika2-
namePrefix: replika-

# Labels to add to all resources and selectors.
#commonLabels:
Expand Down
2 changes: 1 addition & 1 deletion config/manager/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ kind: Kustomization
images:
- name: controller
newName: prosimcorp/replika
newTag: v0.2.1
newTag: v0.2.2
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
creationTimestamp: null
name: replika2-manager-role
name: replika-manager-role
rules:
- apiGroups:
- ""
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: replika2-metrics-reader
name: replika-metrics-reader
rules:
- nonResourceURLs:
- /metrics
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: replika2-proxy-role
name: replika-proxy-role
rules:
- apiGroups:
- authentication.k8s.io
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: replika2-proxy-rolebinding
name: replika-manager-rolebinding
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: replika2-proxy-role
name: replika-manager-role
subjects:
- kind: ServiceAccount
name: replika2-controller-manager
namespace: replika2-system
name: replika-controller-manager
namespace: replika

Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: replika2-manager-rolebinding
name: replika-proxy-rolebinding
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: replika2-manager-role
name: replika-proxy-role
subjects:
- kind: ServiceAccount
name: replika2-controller-manager
namespace: replika2-system
name: replika-controller-manager
namespace: replika

Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ data:
resourceName: 562e2a83.prosimcorp.com
kind: ConfigMap
metadata:
name: replika2-manager-config
namespace: replika2-system
name: replika-manager-config
namespace: replika

Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ kind: Deployment
metadata:
labels:
control-plane: controller-manager
name: replika2-controller-manager
namespace: replika2-system
name: replika-controller-manager
namespace: replika
spec:
replicas: 1
selector:
Expand Down Expand Up @@ -42,7 +42,7 @@ spec:
- --leader-elect
command:
- /manager
image: prosimcorp/replika:v0.2.1
image: prosimcorp/replika:v0.2.2
livenessProbe:
httpGet:
path: /healthz
Expand All @@ -67,6 +67,6 @@ spec:
allowPrivilegeEscalation: false
securityContext:
runAsNonRoot: true
serviceAccountName: replika2-controller-manager
serviceAccountName: replika-controller-manager
terminationGracePeriodSeconds: 10

24 changes: 12 additions & 12 deletions deploy/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- clusterrole/replika2-manager-role.yaml
- clusterrole/replika2-metrics-reader.yaml
- clusterrole/replika2-proxy-role.yaml
- clusterrolebinding/replika2-manager-rolebinding.yaml
- clusterrolebinding/replika2-proxy-rolebinding.yaml
- configmap/replika2-manager-config.yaml
- clusterrole/replika-manager-role.yaml
- clusterrole/replika-metrics-reader.yaml
- clusterrole/replika-proxy-role.yaml
- clusterrolebinding/replika-manager-rolebinding.yaml
- clusterrolebinding/replika-proxy-rolebinding.yaml
- configmap/replika-manager-config.yaml
- customresourcedefinition/replikas-replika-prosimcorp-com.yaml
- deployment/replika2-controller-manager.yaml
- namespace/replika2-system.yaml
- role/replika2-leader-election-role.yaml
- rolebinding/replika2-leader-election-rolebinding.yaml
- service/replika2-controller-manager-metrics-service.yaml
- serviceaccount/replika2-controller-manager.yaml
- deployment/replika-controller-manager.yaml
- namespace/replika.yaml
- role/replika-leader-election-role.yaml
- rolebinding/replika-leader-election-rolebinding.yaml
- service/replika-controller-manager-metrics-service.yaml
- serviceaccount/replika-controller-manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ kind: Namespace
metadata:
labels:
control-plane: controller-manager
name: replika2-system
name: replika

Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: replika2-leader-election-role
namespace: replika2-system
name: replika-leader-election-role
namespace: replika
rules:
- apiGroups:
- ""
Expand Down
14 changes: 14 additions & 0 deletions deploy/rolebinding/replika-leader-election-rolebinding.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: replika-leader-election-rolebinding
namespace: replika
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: replika-leader-election-role
subjects:
- kind: ServiceAccount
name: replika-controller-manager
namespace: replika

14 changes: 0 additions & 14 deletions deploy/rolebinding/replika2-leader-election-rolebinding.yaml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ kind: Service
metadata:
labels:
control-plane: controller-manager
name: replika2-controller-manager-metrics-service
namespace: replika2-system
name: replika-controller-manager-metrics-service
namespace: replika
spec:
ports:
- name: https
Expand Down
6 changes: 6 additions & 0 deletions deploy/serviceaccount/replika-controller-manager.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: replika-controller-manager
namespace: replika

6 changes: 0 additions & 6 deletions deploy/serviceaccount/replika2-controller-manager.yaml

This file was deleted.

0 comments on commit e01bf8d

Please sign in to comment.