Skip to content

Commit

Permalink
code review comments and refactoring.
Browse files Browse the repository at this point in the history
  • Loading branch information
Aarthisk committed Mar 25, 2019
1 parent 316df65 commit 36fb9f1
Show file tree
Hide file tree
Showing 49 changed files with 743 additions and 2,240 deletions.
73 changes: 36 additions & 37 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package main

import (
"flag"
"os"
"time"

adapter "github.com/Azure/Kore/pkg/adapter"
Expand Down Expand Up @@ -31,6 +32,7 @@ func main() {
adapter := &adapter.KoreAdapter{}
adapter.Flags().StringVar(&adapter.Message, "msg", "starting adapter...", "startup message")
adapter.Flags().AddGoFlagSet(flag.CommandLine)
adapter.Flags().Parse(os.Args)

parsedLogLevel, err := log.ParseLevel(*logLevel)
if err == nil {
Expand Down
26 changes: 13 additions & 13 deletions deploy/KoreScaleController.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ spec:
apiVersion: v1
kind: Namespace
metadata:
name: custom-metrics
name: kore
---
kind: ServiceAccount
apiVersion: v1
metadata:
name: service-controller
namespace: custom-metrics
namespace: kore
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
Expand All @@ -32,25 +32,25 @@ roleRef:
subjects:
- kind: ServiceAccount
name: service-controller
namespace: custom-metrics
namespace: kore
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: custom-metrics:system:auth-delegator
name: kore:system:auth-delegator
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: system:auth-delegator
subjects:
- kind: ServiceAccount
name: service-controller
namespace: custom-metrics
namespace: kore
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: custom-metrics-auth-reader
name: kore-auth-reader
namespace: kube-system
roleRef:
apiGroup: rbac.authorization.k8s.io
Expand All @@ -59,15 +59,15 @@ roleRef:
subjects:
- kind: ServiceAccount
name: service-controller
namespace: custom-metrics
namespace: kore
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: service-controller
name: service-controller
namespace: custom-metrics
namespace: kore
spec:
replicas: 1
selector:
Expand Down Expand Up @@ -111,13 +111,13 @@ roleRef:
subjects:
- kind: ServiceAccount
name: service-controller
namespace: custom-metrics
namespace: kore
---
apiVersion: v1
kind: Service
metadata:
name: service-controller
namespace: custom-metrics
namespace: kore
spec:
ports:
- name: https
Expand All @@ -136,7 +136,7 @@ metadata:
spec:
service:
name: service-controller
namespace: custom-metrics
namespace: kore
group: custom.metrics.k8s.io
version: v1beta1
insecureSkipTLSVerify: true
Expand All @@ -150,7 +150,7 @@ metadata:
spec:
service:
name: service-controller
namespace: custom-metrics
namespace: kore
group: external.metrics.k8s.io
version: v1beta1
insecureSkipTLSVerify: true
Expand Down Expand Up @@ -194,4 +194,4 @@ roleRef:
subjects:
- kind: ServiceAccount
name: horizontal-pod-autoscaler
namespace: kube-system
namespace: kube-system
Loading

0 comments on commit 36fb9f1

Please sign in to comment.