Skip to content

Commit baca436

Browse files
committed
chore: consistent naming of TODOs for major
Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
1 parent 5d3f8c0 commit baca436

File tree

5 files changed

+4
-10
lines changed

5 files changed

+4
-10
lines changed

pkg/tracker/daemonset/tracker.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,9 @@ import (
2626
)
2727

2828
type PodAddedReport struct {
29-
// FIXME !!! DaemonSet is not like Deployment.
30-
// FIXME !!! DaemonSet is not related to ReplicaSet.
31-
// FIXME !!! Pods of DaemonSet have owner reference directly to ReplicaSet.
32-
// FIXME !!! Delete all ReplicaSet-related data.
29+
// FIXME: DaemonSet is not like Deployment. DaemonSet is not related to
30+
// ReplicaSet. Pods of DaemonSet have owner reference directly to ReplicaSet.
31+
// Delete all ReplicaSet-related data.
3332
Pod replicaset.ReplicaSetPod
3433
DaemonSetStatus DaemonSetStatus
3534
}

pkg/tracker/statefulset/status.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ func NewStatefulSetStatus(object *appsv1.StatefulSet, statusGeneration uint64, i
4141
WarningMessages: warningMessages,
4242
}
4343

44-
// TODO: share common code from deploy, ds and sts
4544
processingPodsStatuses:
4645
for k, v := range podsStatuses {
4746
res.Pods[k] = v

pkg/trackers/rollout/multitrack/multitrack.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ type FailMode string
3737
const (
3838
IgnoreAndContinueDeployProcess FailMode = "IgnoreAndContinueDeployProcess"
3939
FailWholeDeployProcessImmediately FailMode = "FailWholeDeployProcessImmediately"
40-
// TODO(v2): get rid. Is an equivalent to FailWholeDeployProcessImmediately at the moment.
40+
// TODO(major): get rid. Is an equivalent to FailWholeDeployProcessImmediately at the moment.
4141
LegacyHopeUntilEndOfDeployProcess FailMode = "HopeUntilEndOfDeployProcess"
4242
)
4343

@@ -77,7 +77,6 @@ type MultitrackSpec struct {
7777
SkipLogs bool
7878
SkipLogsForContainers []string
7979
ShowLogsOnlyForContainers []string
80-
// ShowLogsUntil DeployCondition TODO
8180

8281
ShowServiceMessages bool
8382
}

pkg/utils/deployment_utils.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,6 @@ func FindOldReplicaSets(deployment *appsv1.Deployment, rsList []*appsv1.ReplicaS
203203
// because only the controller itself should do that.
204204
// However, it does filter out anything whose ControllerRef doesn't match.
205205
func ListReplicaSets(deployment *appsv1.Deployment, getRSList rsListFunc) ([]*appsv1.ReplicaSet, error) {
206-
// TODO: Right now we list replica sets by their labels. We should list them by selector, i.e. the replica set's selector
207-
// should be a superset of the deployment's selector, see https://github.com/kubernetes/kubernetes/issues/19830.
208206
namespace := deployment.Namespace
209207
selector, err := metav1.LabelSelectorAsSelector(deployment.Spec.Selector)
210208
if err != nil {

pkg/utils/ref.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ func GetReference(obj runtime.Object) (*corev1.ObjectReference, error) {
3535
// if we are building an object reference to something not yet persisted, we should fallback to scheme
3636
kind := gvk.Kind
3737
if len(kind) == 0 {
38-
// TODO: this is wrong
3938
gvks, _, err := scheme.ObjectKinds(obj)
4039
if err != nil {
4140
return nil, err

0 commit comments

Comments
 (0)