Skip to content

Commit 0a9c58b

Browse files
committed
cleanup todos; add issue links
1 parent a946354 commit 0a9c58b

File tree

5 files changed

+18
-39
lines changed

5 files changed

+18
-39
lines changed

cmd/main.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ limitations under the License.
1717
package main
1818

1919
import (
20-
"context"
2120
"crypto/tls"
2221
"flag"
2322
"os"
@@ -161,7 +160,7 @@ func main() {
161160
}
162161
//+kubebuilder:scaffold:builder
163162

164-
ctx := context.TODO() // TODO
163+
ctx := ctrl.SetupSignalHandler()
165164
if err := jobframework.SetupWorkloadOwnerIndex(ctx, mgr.GetFieldIndexer(), controller.GVK); err != nil {
166165
setupLog.Error(err, "Setting up indexes", "GVK", controller.GVK)
167166
os.Exit(1)

config/manager/manager.yaml

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -36,26 +36,22 @@ spec:
3636
labels:
3737
control-plane: controller-manager
3838
spec:
39-
# TODO(user): Uncomment the following code to configure the nodeAffinity expression
40-
# according to the platforms which are supported by your solution.
41-
# It is considered best practice to support multiple architectures. You can
42-
# build your manager image using the makefile target docker-buildx.
43-
# affinity:
44-
# nodeAffinity:
45-
# requiredDuringSchedulingIgnoredDuringExecution:
46-
# nodeSelectorTerms:
47-
# - matchExpressions:
48-
# - key: kubernetes.io/arch
49-
# operator: In
50-
# values:
51-
# - amd64
52-
# - arm64
53-
# - ppc64le
54-
# - s390x
55-
# - key: kubernetes.io/os
56-
# operator: In
57-
# values:
58-
# - linux
39+
affinity:
40+
nodeAffinity:
41+
requiredDuringSchedulingIgnoredDuringExecution:
42+
nodeSelectorTerms:
43+
- matchExpressions:
44+
- key: kubernetes.io/arch
45+
operator: In
46+
values:
47+
- amd64
48+
- arm64
49+
- ppc64le
50+
- s390x
51+
- key: kubernetes.io/os
52+
operator: In
53+
values:
54+
- linux
5955
securityContext:
6056
runAsNonRoot: true
6157
# TODO(user): For common cases that do not require escalating privileges

config/samples/kustomization.yaml

Lines changed: 0 additions & 4 deletions
This file was deleted.

config/samples/workload_v1beta2_appwrapper.yaml

Lines changed: 0 additions & 12 deletions
This file was deleted.

internal/controller/appwrapper_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ func (r *AppWrapperReconciler) createComponents(ctx context.Context, aw *workloa
330330
}
331331

332332
func (r *AppWrapperReconciler) deleteComponents(ctx context.Context, aw *workloadv1beta2.AppWrapper) bool {
333-
// TODO forceful deletion
333+
// TODO forceful deletion: See https://github.com/project-codeflare/appwrapper/issues/36
334334
log := log.FromContext(ctx)
335335
remaining := 0
336336
for _, component := range aw.Spec.Components {

0 commit comments

Comments
 (0)