Skip to content

Commit

Permalink
remove certs and protobuf (stolostron#202)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiweiyin318 authored Jul 29, 2020
1 parent 58f7c26 commit f8dfb42
Show file tree
Hide file tree
Showing 20 changed files with 19 additions and 366 deletions.
3 changes: 0 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,6 @@ generate_files: generate_exes $(TYPES_FILES)
# generate protobuf
hack/update-protobuf.sh

create-certs:
hack/create-certs.sh

############################################################
# build section
############################################################
Expand Down
4 changes: 1 addition & 3 deletions build/run-e2e-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@ images:
newName: $IMAGE_NAME_AND_VERSION
EOF

make create-certs

kubectl apply -k "${HUB_PATH}"

MANAGED_CLUSTER=$(kubectl get managedclusters | grep cluster | awk '{print $1}')
Expand All @@ -105,7 +103,7 @@ done

for i in {1..7}; do
echo "############$i Checking ManagedClusterInfo"
INFO=$(kubectl get managedclusterinfos -n "${MANAGED_CLUSTER}" "${MANAGED_CLUSTER}" -o yaml | grep -c "loggingCA" | tr -d '[:space:]')
INFO=$(kubectl get managedclusterinfos -n "${MANAGED_CLUSTER}" "${MANAGED_CLUSTER}" -o yaml | grep -c "ManagedClusterInfo" | tr -d '[:space:]')
if [ "${INFO}" -eq 1 ]; then
break
fi
Expand Down
3 changes: 1 addition & 2 deletions cmd/acm-controller/app/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ func Run(o *options.ControllerRunOptions, stopCh <-chan struct{}) error {

caData, err := GetAgentCA(o.CAFile)
if err != nil {
klog.Errorf("unable to get acm agent server CA file: %v", err)
return err
klog.Warningf("unable to get acm agent server CA file: %v", err)
}

kubeConfig.QPS = o.QPS
Expand Down
2 changes: 0 additions & 2 deletions deploy/dev/hub/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ resources:
- resources/crds/hive.openshift.io_clusterdeployments.yaml
- resources/crds/hive.openshift.io_syncsetinstances.yaml
- resources/100-clusterrole.yaml
- resources/100-agent-cert.yaml
- resources/100-apiserver-cert.yaml
- resources/100-proxyserver-apiservice.yaml
- resources/100-proxyserver-service.yaml
- resources/200-proxyserver.yaml
Expand Down
10 changes: 0 additions & 10 deletions deploy/dev/hub/resources/100-agent-cert.yaml

This file was deleted.

10 changes: 0 additions & 10 deletions deploy/dev/hub/resources/100-apiserver-cert.yaml

This file was deleted.

3 changes: 1 addition & 2 deletions deploy/dev/hub/resources/100-proxyserver-apiservice.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ spec:
service:
namespace: open-cluster-management
name: acm-proxyserver
port: 443
caBundle: $ACM_APISERVER_CA
insecureSkipTLSVerify: true
groupPriorityMinimum: 10000
versionPriority: 20
9 changes: 0 additions & 9 deletions deploy/dev/hub/resources/200-controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,7 @@ spec:
imagePullPolicy: IfNotPresent
args:
- "/acm-controller"
- "--agent-cafile=/var/run/agent/ca.crt"
- "--enable-rbac=true"
volumeMounts:
- mountPath: /var/run/agent
name: agent-certs
livenessProbe:
httpGet:
path: /healthz
Expand All @@ -44,8 +40,3 @@ spec:
port: 8000
failureThreshold: 3
periodSeconds: 10
volumes:
- name: agent-certs
secret:
defaultMode: 420
secretName: acm-agent-cert
19 changes: 0 additions & 19 deletions deploy/dev/hub/resources/200-proxyserver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@ spec:
args:
- "/acm-proxyserver"
- "--secure-port=6443"
- "--tls-cert-file=/var/run/apiserver/tls.crt"
- "--tls-private-key-file=/var/run/apiserver/tls.key"
- "--agent-cafile=/var/run/agent/ca.crt"
- "--agent-certfile=/var/run/agent/tls.crt"
- "--agent-keyfile=/var/run/agent/tls.key"
livenessProbe:
httpGet:
path: /healthz
Expand All @@ -41,17 +36,3 @@ spec:
scheme: HTTPS
port: 6443
initialDelaySeconds: 2
volumeMounts:
- mountPath: /var/run/agent
name: agent-certs
- mountPath: /var/run/apiserver
name: apiserver-certs
volumes:
- name: agent-certs
secret:
defaultMode: 420
secretName: acm-agent-cert
- name: apiserver-certs
secret:
defaultMode: 420
secretName: acm-apiserver-cert
42 changes: 0 additions & 42 deletions deploy/dev/hub/webhook/100-mutating-webhook-admission.yaml

This file was deleted.

29 changes: 0 additions & 29 deletions deploy/dev/hub/webhook/100-validating-webhook-admission.yaml

This file was deleted.

15 changes: 0 additions & 15 deletions deploy/dev/hub/webhook/100-webhook-secret.yaml

This file was deleted.

36 changes: 0 additions & 36 deletions deploy/dev/hub/webhook/200-webhook-deployment.yaml

This file was deleted.

15 changes: 0 additions & 15 deletions deploy/dev/hub/webhook/200-webhook-service.yaml

This file was deleted.

1 change: 1 addition & 0 deletions deploy/dev/klusterlet/manifestwork/agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ spec:
- "--port=4443"
- "--agent-address=acm-agent.open-cluster-management-agent.svc"
- "--agent-port=443"
- "--insecure=true"
volumeMounts:
- name: hub-config
mountPath: /var/run/hub
Expand Down
1 change: 1 addition & 0 deletions deploy/dev/klusterlet/resources/200-agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ spec:
- "--port=4443"
- "--agent-address=acm-agent.open-cluster-management-agent.svc"
- "--agent-port=443"
- "--insecure=true"
volumeMounts:
- name: hub-config
mountPath: /var/run/hub
Expand Down
111 changes: 0 additions & 111 deletions hack/certs/cert.go

This file was deleted.

Loading

0 comments on commit f8dfb42

Please sign in to comment.