Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacome committed Jul 8, 2020
1 parent b4bde8e commit 8dfc4dd
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 20 deletions.
10 changes: 5 additions & 5 deletions deployments/daemon-set/nginx-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ spec:
#containerPort: 9113
#- name: readiness-port
#containerPort: 8081
#readinessProbe:
#httpGet:
#path: /nginx-ready
#port: readiness-port
#periodSeconds: 1
#readinessProbe:
#httpGet:
#path: /nginx-ready
#port: readiness-port
#periodSeconds: 1
securityContext:
allowPrivilegeEscalation: true
runAsUser: 101 #nginx
Expand Down
10 changes: 5 additions & 5 deletions deployments/daemon-set/nginx-plus-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ spec:
#containerPort: 9113
#- name: readiness-port
#containerPort: 8081
#readinessProbe:
#httpGet:
#path: /nginx-ready
#port: readiness-port
#periodSeconds: 1
#readinessProbe:
#httpGet:
#path: /nginx-ready
#port: readiness-port
#periodSeconds: 1
securityContext:
allowPrivilegeEscalation: true
runAsUser: 101 #nginx
Expand Down
10 changes: 5 additions & 5 deletions deployments/deployment/nginx-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ spec:
#containerPort: 9113
#- name: readiness-port
#containerPort: 8081
#readinessProbe:
#httpGet:
#path: /nginx-ready
#port: readiness-port
#periodSeconds: 1
#readinessProbe:
#httpGet:
#path: /nginx-ready
#port: readiness-port
#periodSeconds: 1
securityContext:
allowPrivilegeEscalation: true
runAsUser: 101 #nginx
Expand Down
10 changes: 5 additions & 5 deletions deployments/deployment/nginx-plus-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ spec:
#containerPort: 9113
#- name: readiness-port
#containerPort: 8081
#readinessProbe:
#httpGet:
#path: /nginx-ready
#port: readiness-port
#periodSeconds: 1
#readinessProbe:
#httpGet:
#path: /nginx-ready
#port: readiness-port
#periodSeconds: 1
securityContext:
allowPrivilegeEscalation: true
runAsUser: 101 #nginx
Expand Down
1 change: 1 addition & 0 deletions deployments/helm-chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ controller:

## The PriorityClass of the ingress controller pods.
priorityClassName:

readyStatus:
## Enables readiness endpoint "/nginx-ready". The endpoint returns a success code when NGINX has loaded all the config after startup.
enable: false
Expand Down
1 change: 1 addition & 0 deletions internal/k8s/task_queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ func (tq *taskQueue) Requeue(task task, err error) {
tq.queue.Add(task)
}

// Len returns the length of the queue
func (tq *taskQueue) Len() int {
glog.V(3).Infof("The queue has %v element(s)", tq.queue.Len())
return tq.queue.Len()
Expand Down

0 comments on commit 8dfc4dd

Please sign in to comment.