Skip to content

Commit

Permalink
cleanup: Tidy boilerplate ToDos
Browse files Browse the repository at this point in the history
  • Loading branch information
pcolledg-amd committed Jan 16, 2024
1 parent 53eb9d5 commit e1bbd22
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 27 deletions.
35 changes: 13 additions & 22 deletions config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,26 +38,19 @@ spec:
labels:
control-plane: controller-manager
spec:
# TODO(user): Uncomment the following code to configure the nodeAffinity expression
# according to the platforms which are supported by your solution.
# It is considered best practice to support multiple architectures. You can
# build your manager image using the makefile target docker-buildx.
# affinity:
# nodeAffinity:
# requiredDuringSchedulingIgnoredDuringExecution:
# nodeSelectorTerms:
# - matchExpressions:
# - key: kubernetes.io/arch
# operator: In
# values:
# - amd64
# - arm64
# - ppc64le
# - s390x
# - key: kubernetes.io/os
# operator: In
# values:
# - linux
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/arch
operator: In
values:
- amd64
- key: kubernetes.io/os
operator: In
values:
- linux
securityContext:
runAsNonRoot: true
# TODO(user): For common cases that do not require escalating privileges
Expand Down Expand Up @@ -94,8 +87,6 @@ spec:
port: 8081
initialDelaySeconds: 5
periodSeconds: 10
# TODO(user): Configure the resources accordingly based on the project requirements.
# More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
resources:
limits:
cpu: 500m
Expand Down
6 changes: 1 addition & 5 deletions controllers/onload_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,6 @@ type OnloadReconciler struct {

// Reconcile is part of the main kubernetes reconciliation loop which aims to
// move the current state of the cluster closer to the desired state.
// TODO(user): Modify the Reconcile function to compare the state specified by
// the Onload object against the actual cluster state, and then
// perform operations to make the cluster state reflect the state specified by
// the user.
//
// For more details, check Reconcile and its Result here:
// - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.14.1/pkg/reconcile
Expand Down Expand Up @@ -1190,7 +1186,7 @@ func (r *OnloadReconciler) nodeLabelWatchFunc(ctx context.Context, obj client.Ob
return requests
}

// TODO: Check labels here to only requeue relevant onloads.
// TODO(ON-15506): Check labels here to only requeue relevant onloads.

for _, onload := range onloadList.Items {
request := reconcile.Request{NamespacedName: types.NamespacedName{Name: onload.Name, Namespace: onload.Namespace}}
Expand Down

0 comments on commit e1bbd22

Please # to comment.