Skip to content
This repository has been archived by the owner on Feb 19, 2021. It is now read-only.

Commit

Permalink
Fix Travis build
Browse files Browse the repository at this point in the history
  • Loading branch information
mhmxs committed Jun 16, 2020
1 parent 3eee50c commit 9da74b5
Show file tree
Hide file tree
Showing 6 changed files with 116 additions and 0 deletions.
8 changes: 8 additions & 0 deletions config/manager/bases/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
resources:
- manager.yaml
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
images:
- name: controller
newName: quay.io/mhmxs/calico-route-reflector-controller
newTag: latest
44 changes: 44 additions & 0 deletions config/manager/bases/manager.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
apiVersion: v1
kind: Namespace
metadata:
labels:
control-plane: controller-manager
name: system
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: controller-manager
namespace: system
labels:
control-plane: controller-manager
spec:
selector:
matchLabels:
control-plane: controller-manager
replicas: 1
template:
metadata:
labels:
control-plane: controller-manager
spec:
containers:
- command:
- /manager
args:
- --enable-leader-election
env:
- name: DATASTORE_TYPE
value: "incluster"
image: controller:latest
imagePullPolicy: Always
name: manager
resources:
limits:
cpu: 100m
memory: 30Mi
requests:
cpu: 100m
memory: 20Mi
serviceAccountName: default
terminationGracePeriodSeconds: 10
27 changes: 27 additions & 0 deletions config/manager/etcd/envs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: controller-manager
namespace: system
spec:
template:
spec:
containers:
- name: manager
env:
- name: DATASTORE_TYPE
value: "etcd"
- name: ETCD_ENDPOINTS
value: ""
- name: ETCD_DISCOVERY_SRV
value: ""
- name: ETCD_USERNAME
value: ""
- name: ETCD_PASSWORD
value: ""
- name: ETCD_KEY_FILE
value: ""
- name: ETCD_CERT_FILE
value: ""
- name: ETCD_CA_CERT_FILE
value: ""
5 changes: 5 additions & 0 deletions config/manager/etcd/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
bases:
- ../bases

patchesStrategicMerge:
- envs.yaml
27 changes: 27 additions & 0 deletions config/manager/kdd/envs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: controller-manager
namespace: system
spec:
template:
spec:
containers:
- name: manager
env:
- name: DATASTORE_TYPE
value: "kubernetes"
- name: KUBECONFIG
value: ""
- name: K8S_API_ENDPOINT
value: "https://kubernetes.default"
- name: K8S_KEY_FILE
value: ""
- name: K8S_CERT_FILE
value: ""
- name: K8S_CA_FILE
value: ""
- name: K8S_INSECURE_SKIP_TLS_VERIFY
value: ""
- name: K8S_DISABLE_NODE_POLL
value: ""
5 changes: 5 additions & 0 deletions config/manager/kdd/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
bases:
- ../bases

patchesStrategicMerge:
- envs.yaml

0 comments on commit 9da74b5

Please sign in to comment.