Skip to content

Commit 3361804

Browse files
committed
fix(control-plane): Updated kubernetes manifest files
1 parent d4b5588 commit 3361804

22 files changed

+115
-315
lines changed

control-plane/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ help: ## Display this help.
4141

4242
.PHONY: manifests
4343
manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole and CustomResourceDefinition objects.
44-
$(CONTROLLER_GEN) rbac:roleName=manager-role crd webhook paths="./..." output:crd:artifacts:config=config/crd/bases
44+
$(CONTROLLER_GEN) rbac:roleName=lazy-koala crd webhook paths="./..." output:crd:artifacts:config=config/crd/bases
4545

4646
.PHONY: generate
4747
generate: controller-gen ## Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.

control-plane/config/default/kustomization.yaml

Lines changed: 1 addition & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace: lazy-koala
66
# "wordpress" becomes "alices-wordpress".
77
# Note that it should also match with the prefix (text before '-') of the namespace
88
# field above.
9-
namePrefix: lazy-koala-
9+
# namePrefix: operator-
1010

1111
# Labels to add to all resources and selectors.
1212
#commonLabels:
@@ -16,59 +16,3 @@ bases:
1616
- ../crd
1717
- ../rbac
1818
- ../manager
19-
# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix including the one in
20-
# crd/kustomization.yaml
21-
#- ../webhook
22-
# [CERTMANAGER] To enable cert-manager, uncomment all sections with 'CERTMANAGER'. 'WEBHOOK' components are required.
23-
#- ../certmanager
24-
# [PROMETHEUS] To enable prometheus monitor, uncomment all sections with 'PROMETHEUS'.
25-
#- ../prometheus
26-
27-
patchesStrategicMerge:
28-
# Protect the /metrics endpoint by putting it behind auth.
29-
# If you want your controller-manager to expose the /metrics
30-
# endpoint w/o any authn/z, please comment the following line.
31-
- manager_auth_proxy_patch.yaml
32-
33-
# Mount the controller config file for loading manager configurations
34-
# through a ComponentConfig type
35-
#- manager_config_patch.yaml
36-
37-
# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix including the one in
38-
# crd/kustomization.yaml
39-
#- manager_webhook_patch.yaml
40-
41-
# [CERTMANAGER] To enable cert-manager, uncomment all sections with 'CERTMANAGER'.
42-
# Uncomment 'CERTMANAGER' sections in crd/kustomization.yaml to enable the CA injection in the admission webhooks.
43-
# 'CERTMANAGER' needs to be enabled to use ca injection
44-
#- webhookcainjection_patch.yaml
45-
46-
# the following config is for teaching kustomize how to do var substitution
47-
vars:
48-
# [CERTMANAGER] To enable cert-manager, uncomment all sections with 'CERTMANAGER' prefix.
49-
#- name: CERTIFICATE_NAMESPACE # namespace of the certificate CR
50-
# objref:
51-
# kind: Certificate
52-
# group: cert-manager.io
53-
# version: v1
54-
# name: serving-cert # this name should match the one in certificate.yaml
55-
# fieldref:
56-
# fieldpath: metadata.namespace
57-
#- name: CERTIFICATE_NAME
58-
# objref:
59-
# kind: Certificate
60-
# group: cert-manager.io
61-
# version: v1
62-
# name: serving-cert # this name should match the one in certificate.yaml
63-
#- name: SERVICE_NAMESPACE # namespace of the service
64-
# objref:
65-
# kind: Service
66-
# version: v1
67-
# name: webhook-service
68-
# fieldref:
69-
# fieldpath: metadata.namespace
70-
#- name: SERVICE_NAME
71-
# objref:
72-
# kind: Service
73-
# version: v1
74-
# name: webhook-service

control-plane/config/default/manager_auth_proxy_patch.yaml

Lines changed: 0 additions & 34 deletions
This file was deleted.

control-plane/config/default/manager_config_patch.yaml

Lines changed: 0 additions & 20 deletions
This file was deleted.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
apiVersion: v1
2+
kind: ConfigMap
3+
metadata:
4+
name: gazer-config
5+
namespace: lazy-koala
6+
data:
7+
config.yaml: |

control-plane/config/manager/controller_manager_config.yaml

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
resources:
22
- manager.yaml
3+
- configmap.yaml
34

45
generatorOptions:
56
disableNameSuffixHash: true
67

7-
configMapGenerator:
8-
- name: manager-config
9-
files:
10-
- controller_manager_config.yaml
8+
apiVersion: kustomize.config.k8s.io/v1beta1
9+
kind: Kustomization
10+
images:
11+
- name: controller
12+
newName: ghcr.io/mrsupiri/lazy-koala/controller
13+
newTag: latest

control-plane/config/manager/manager.yaml

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -2,59 +2,59 @@ apiVersion: v1
22
kind: Namespace
33
metadata:
44
labels:
5-
control-plane: controller-manager
6-
name: system
5+
control-plane: lazy-koala
6+
name: lazy-koala
77
---
88
apiVersion: apps/v1
99
kind: Deployment
1010
metadata:
11-
name: controller-manager
12-
namespace: system
11+
name: lazy-koala-operator
12+
namespace: lazy-koala
1313
labels:
14-
control-plane: controller-manager
14+
control-plane: lazy-koala
1515
spec:
1616
selector:
1717
matchLabels:
18-
control-plane: controller-manager
18+
control-plane: lazy-koala
1919
replicas: 1
2020
template:
2121
metadata:
2222
annotations:
2323
kubectl.kubernetes.io/default-container: manager
2424
labels:
25-
control-plane: controller-manager
25+
control-plane: lazy-koala
2626
spec:
2727
securityContext:
2828
runAsNonRoot: true
2929
containers:
30-
- command:
31-
- /manager
32-
args:
33-
- --leader-elect
34-
image: controller:latest
35-
name: manager
36-
securityContext:
37-
allowPrivilegeEscalation: false
38-
livenessProbe:
39-
httpGet:
40-
path: /healthz
41-
port: 8081
42-
initialDelaySeconds: 15
43-
periodSeconds: 20
44-
readinessProbe:
45-
httpGet:
46-
path: /readyz
47-
port: 8081
48-
initialDelaySeconds: 5
49-
periodSeconds: 10
50-
# TODO(user): Configure the resources accordingly based on the project requirements.
51-
# More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
52-
resources:
53-
limits:
54-
cpu: 500m
55-
memory: 128Mi
56-
requests:
57-
cpu: 10m
58-
memory: 64Mi
59-
serviceAccountName: controller-manager
30+
- command:
31+
- /manager
32+
# args:
33+
# - --leader-elect
34+
image: controller:latest
35+
name: manager
36+
securityContext:
37+
allowPrivilegeEscalation: false
38+
livenessProbe:
39+
httpGet:
40+
path: /healthz
41+
port: 8081
42+
initialDelaySeconds: 15
43+
periodSeconds: 20
44+
readinessProbe:
45+
httpGet:
46+
path: /readyz
47+
port: 8081
48+
initialDelaySeconds: 5
49+
periodSeconds: 10
50+
# TODO(user): Configure the resources accordingly based on the project requirements.
51+
# More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
52+
resources:
53+
limits:
54+
cpu: 500m
55+
memory: 128Mi
56+
requests:
57+
cpu: 10m
58+
memory: 64Mi
59+
serviceAccountName: lazy-koala
6060
terminationGracePeriodSeconds: 10

control-plane/config/prometheus/kustomization.yaml

Lines changed: 0 additions & 2 deletions
This file was deleted.

control-plane/config/prometheus/monitor.yaml

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)