Skip to content

Commit

Permalink
Merge pull request #97 from cybozu-go/prepare-deploy-manifests
Browse files Browse the repository at this point in the history
Modify manifests for deployment.
  • Loading branch information
kfyharukz authored Nov 2, 2020
2 parents 99b344b + 56818ee commit 03b1206
Show file tree
Hide file tree
Showing 31 changed files with 46 additions and 4,464 deletions.
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ manifests: $(CONTROLLER_GEN)
config/crd/bases/moco.cybozu.com_mysqlclusters.yaml
sed -i -r 's/^( +)description: The IP protocol for this port\. Supports "TCP", "UDP", and "SCTP"\. Default is TCP\./\0\n\1default: TCP/' \
config/crd/bases/moco.cybozu.com_mysqlclusters.yaml
cp config/crd/bases/moco.cybozu.com_mysqlclusters.yaml deploy/crd.yaml

# Generate code
.PHONY: generate
Expand Down
2 changes: 1 addition & 1 deletion cmd/moco-controller/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ var rootCmd = &cobra.Command{
}

const (
defaultInitContainerImage = "quay.io/cybozu/moco-conf-gen:1.0.0"
defaultInitContainerImage = "quay.io/cybozu/moco-conf-gen:0.3.0"
defaultCurlContainerImage = "quay.io/cybozu/ubuntu:18.04"
)

Expand Down
26 changes: 0 additions & 26 deletions config/certmanager/certificate.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions config/certmanager/kustomization.yaml

This file was deleted.

16 changes: 0 additions & 16 deletions config/certmanager/kustomizeconfig.yaml

This file was deleted.

4 changes: 2 additions & 2 deletions config/crd/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ patchesStrategicMerge:
# +kubebuilder:scaffold:crdkustomizecainjectionpatch

# the following config is for teaching kustomize how to do kustomization for CRDs.
configurations:
- kustomizeconfig.yaml
# configurations:
# - kustomizeconfig.yaml
17 changes: 0 additions & 17 deletions config/crd/kustomizeconfig.yaml

This file was deleted.

8 changes: 0 additions & 8 deletions config/crd/patches/cainjection_in_mysqlclusters.yaml

This file was deleted.

17 changes: 0 additions & 17 deletions config/crd/patches/webhook_in_mysqlclusters.yaml

This file was deleted.

70 changes: 0 additions & 70 deletions config/default/kustomization.yaml

This file was deleted.

24 changes: 0 additions & 24 deletions config/default/manager_auth_proxy_patch.yaml

This file was deleted.

23 changes: 0 additions & 23 deletions config/default/manager_webhook_patch.yaml

This file was deleted.

15 changes: 0 additions & 15 deletions config/default/webhookcainjection_patch.yaml

This file was deleted.

7 changes: 7 additions & 0 deletions config/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace: moco-system
bases:
- ./crd
- ./rbac
- ./manager
resources:
- namespace.yaml
28 changes: 14 additions & 14 deletions config/manager/manager.yaml
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
apiVersion: v1
kind: Namespace
metadata:
labels:
control-plane: controller-manager
name: system
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: controller-manager
name: moco-controller-manager
namespace: system
labels:
control-plane: controller-manager
control-plane: moco-controller-manager
annotations:
prometheus.io/port: "8080"
spec:
selector:
matchLabels:
control-plane: controller-manager
control-plane: moco-controller-manager
replicas: 1
template:
metadata:
labels:
control-plane: controller-manager
control-plane: moco-controller-manager
spec:
containers:
- command:
- /manager
- name: manager
command:
- /moco-controller
image: controller:latest
name: manager
resources:
limits:
cpu: 4000m
memory: 2Gi
requests:
cpu: 1000m
memory: 512Mi
env:
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
terminationGracePeriodSeconds: 10
6 changes: 6 additions & 0 deletions config/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: v1
kind: Namespace
metadata:
labels:
control-plane: moco-controller-manager
name: moco-system
2 changes: 0 additions & 2 deletions config/prometheus/kustomization.yaml

This file was deleted.

16 changes: 0 additions & 16 deletions config/prometheus/monitor.yaml

This file was deleted.

7 changes: 0 additions & 7 deletions config/rbac/auth_proxy_client_clusterrole.yaml

This file was deleted.

13 changes: 0 additions & 13 deletions config/rbac/auth_proxy_role.yaml

This file was deleted.

12 changes: 0 additions & 12 deletions config/rbac/auth_proxy_role_binding.yaml

This file was deleted.

14 changes: 0 additions & 14 deletions config/rbac/auth_proxy_service.yaml

This file was deleted.

Loading

0 comments on commit 03b1206

Please sign in to comment.