Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ ensure that the whole code has the same nomenclature TODO(user) #2366

Merged
merged 1 commit into from
Oct 4, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,5 @@ kind: {{ .Resource.Kind }}
metadata:
name: {{ lower .Resource.Kind }}-sample
spec:
# Add fields here
# TODO(user): Add fields here
`
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,5 @@ kind: {{ .Resource.Kind }}
metadata:
name: {{ lower .Resource.Kind }}-sample
spec:
# Add fields here
# TODO(user): Add fields here
`
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func (r *{{ .Resource.Kind }}Reconciler) Reconcile(req ctrl.Request) (ctrl.Resul
_ = context.Background()
_ = r.Log.WithValues("{{ .Resource.Kind | lower }}", req.NamespacedName)

// your logic here
// TODO(user): your logic here

return ctrl.Result{}, nil
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func (r *{{ .Resource.Kind }}) SetupWebhookWithManager(mgr ctrl.Manager) error {
Complete()
}

// EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN!
// TODO(user): EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN!
`

//nolint:lll
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ type {{ .Resource.Kind }}Reconciler struct {
func (r *{{ .Resource.Kind }}Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
_ = log.FromContext(ctx)

// your logic here
// TODO(user): your logic here

return ctrl.Result{}, nil
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ kind: Admiral
metadata:
name: admiral-sample
spec:
# Add fields here
# TODO(user): Add fields here
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ kind: Captain
metadata:
name: captain-sample
spec:
# Add fields here
# TODO(user): Add fields here
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ kind: FirstMate
metadata:
name: firstmate-sample
spec:
# Add fields here
# TODO(user): Add fields here
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ kind: Captain
metadata:
name: captain-sample
spec:
# Add fields here
# TODO(user): Add fields here
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ kind: HealthCheckPolicy
metadata:
name: healthcheckpolicy-sample
spec:
# Add fields here
# TODO(user): Add fields here
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ kind: Kraken
metadata:
name: kraken-sample
spec:
# Add fields here
# TODO(user): Add fields here
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ kind: Leviathan
metadata:
name: leviathan-sample
spec:
# Add fields here
# TODO(user): Add fields here
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ kind: Destroyer
metadata:
name: destroyer-sample
spec:
# Add fields here
# TODO(user): Add fields here
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ kind: Frigate
metadata:
name: frigate-sample
spec:
# Add fields here
# TODO(user): Add fields here
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ kind: Cruiser
metadata:
name: cruiser-sample
spec:
# Add fields here
# TODO(user): Add fields here
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func (r *DeploymentReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)
_ = context.Background()
_ = r.Log.WithValues("deployment", req.NamespacedName)

// your logic here
// TODO(user): your logic here

return ctrl.Result{}, nil
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (r *CaptainReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error) {
_ = context.Background()
_ = r.Log.WithValues("captain", req.NamespacedName)

// your logic here
// TODO(user): your logic here

return ctrl.Result{}, nil
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (r *HealthCheckPolicyReconciler) Reconcile(req ctrl.Request) (ctrl.Result,
_ = context.Background()
_ = r.Log.WithValues("healthcheckpolicy", req.NamespacedName)

// your logic here
// TODO(user): your logic here

return ctrl.Result{}, nil
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (r *KrakenReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error) {
_ = context.Background()
_ = r.Log.WithValues("kraken", req.NamespacedName)

// your logic here
// TODO(user): your logic here

return ctrl.Result{}, nil
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (r *LeviathanReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error) {
_ = context.Background()
_ = r.Log.WithValues("leviathan", req.NamespacedName)

// your logic here
// TODO(user): your logic here

return ctrl.Result{}, nil
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (r *CruiserReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error) {
_ = context.Background()
_ = r.Log.WithValues("cruiser", req.NamespacedName)

// your logic here
// TODO(user): your logic here

return ctrl.Result{}, nil
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (r *DestroyerReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error) {
_ = context.Background()
_ = r.Log.WithValues("destroyer", req.NamespacedName)

// your logic here
// TODO(user): your logic here

return ctrl.Result{}, nil
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (r *FrigateReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error) {
_ = context.Background()
_ = r.Log.WithValues("frigate", req.NamespacedName)

// your logic here
// TODO(user): your logic here

return ctrl.Result{}, nil
}
Expand Down
2 changes: 1 addition & 1 deletion testdata/project-v2/config/samples/crew_v1_admiral.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ kind: Admiral
metadata:
name: admiral-sample
spec:
# Add fields here
# TODO(user): Add fields here
2 changes: 1 addition & 1 deletion testdata/project-v2/config/samples/crew_v1_captain.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ kind: Captain
metadata:
name: captain-sample
spec:
# Add fields here
# TODO(user): Add fields here
2 changes: 1 addition & 1 deletion testdata/project-v2/config/samples/crew_v1_firstmate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ kind: FirstMate
metadata:
name: firstmate-sample
spec:
# Add fields here
# TODO(user): Add fields here
2 changes: 1 addition & 1 deletion testdata/project-v2/controllers/admiral_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (r *AdmiralReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error) {
_ = context.Background()
_ = r.Log.WithValues("admiral", req.NamespacedName)

// your logic here
// TODO(user): your logic here

return ctrl.Result{}, nil
}
Expand Down
2 changes: 1 addition & 1 deletion testdata/project-v2/controllers/captain_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (r *CaptainReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error) {
_ = context.Background()
_ = r.Log.WithValues("captain", req.NamespacedName)

// your logic here
// TODO(user): your logic here

return ctrl.Result{}, nil
}
Expand Down
2 changes: 1 addition & 1 deletion testdata/project-v2/controllers/firstmate_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (r *FirstMateReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error) {
_ = context.Background()
_ = r.Log.WithValues("firstmate", req.NamespacedName)

// your logic here
// TODO(user): your logic here

return ctrl.Result{}, nil
}
Expand Down
2 changes: 1 addition & 1 deletion testdata/project-v2/controllers/laker_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func (r *LakerReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error) {
_ = context.Background()
_ = r.Log.WithValues("laker", req.NamespacedName)

// your logic here
// TODO(user): your logic here

return ctrl.Result{}, nil
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ kind: Admiral
metadata:
name: admiral-sample
spec:
# Add fields here
# TODO(user): Add fields here
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ kind: Captain
metadata:
name: captain-sample
spec:
# Add fields here
# TODO(user): Add fields here
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ kind: FirstMate
metadata:
name: firstmate-sample
spec:
# Add fields here
# TODO(user): Add fields here
2 changes: 1 addition & 1 deletion testdata/project-v3-config/api/v1/admiral_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func (r *Admiral) SetupWebhookWithManager(mgr ctrl.Manager) error {
Complete()
}

// EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN!
// TODO(user): EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN!

//+kubebuilder:webhook:path=/mutate-crew-testproject-org-v1-admiral,mutating=true,failurePolicy=fail,sideEffects=None,groups=crew.testproject.org,resources=admirals,verbs=create;update,versions=v1,name=madmiral.kb.io,admissionReviewVersions=v1

Expand Down
2 changes: 1 addition & 1 deletion testdata/project-v3-config/api/v1/captain_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func (r *Captain) SetupWebhookWithManager(mgr ctrl.Manager) error {
Complete()
}

// EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN!
// TODO(user): EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN!

//+kubebuilder:webhook:path=/mutate-crew-testproject-org-v1-captain,mutating=true,failurePolicy=fail,sideEffects=None,groups=crew.testproject.org,resources=captains,verbs=create;update,versions=v1,name=mcaptain.kb.io,admissionReviewVersions=v1

Expand Down
2 changes: 1 addition & 1 deletion testdata/project-v3-config/api/v1/firstmate_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ func (r *FirstMate) SetupWebhookWithManager(mgr ctrl.Manager) error {
Complete()
}

// EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN!
// TODO(user): EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN!
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ kind: Admiral
metadata:
name: admiral-sample
spec:
# Add fields here
# TODO(user): Add fields here
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ kind: Captain
metadata:
name: captain-sample
spec:
# Add fields here
# TODO(user): Add fields here
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ kind: FirstMate
metadata:
name: firstmate-sample
spec:
# Add fields here
# TODO(user): Add fields here
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ type AdmiralReconciler struct {
func (r *AdmiralReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
_ = log.FromContext(ctx)

// your logic here
// TODO(user): your logic here

return ctrl.Result{}, nil
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ type CaptainReconciler struct {
func (r *CaptainReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
_ = log.FromContext(ctx)

// your logic here
// TODO(user): your logic here

return ctrl.Result{}, nil
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ type FirstMateReconciler struct {
func (r *FirstMateReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
_ = log.FromContext(ctx)

// your logic here
// TODO(user): your logic here

return ctrl.Result{}, nil
}
Expand Down
2 changes: 1 addition & 1 deletion testdata/project-v3-config/controllers/laker_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ type LakerReconciler struct {
func (r *LakerReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
_ = log.FromContext(ctx)

// your logic here
// TODO(user): your logic here

return ctrl.Result{}, nil
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func (r *Captain) SetupWebhookWithManager(mgr ctrl.Manager) error {
Complete()
}

// EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN!
// TODO(user): EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN!

//+kubebuilder:webhook:path=/mutate-crew-testproject-org-v1-captain,mutating=true,failurePolicy=fail,sideEffects=None,groups=crew.testproject.org,resources=captains,verbs=create;update,versions=v1,name=mcaptain.kb.io,admissionReviewVersions=v1

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func (r *Destroyer) SetupWebhookWithManager(mgr ctrl.Manager) error {
Complete()
}

// EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN!
// TODO(user): EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN!

//+kubebuilder:webhook:path=/mutate-ship-testproject-org-v1-destroyer,mutating=true,failurePolicy=fail,sideEffects=None,groups=ship.testproject.org,resources=destroyers,verbs=create;update,versions=v1,name=mdestroyer.kb.io,admissionReviewVersions=v1

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ func (r *Frigate) SetupWebhookWithManager(mgr ctrl.Manager) error {
Complete()
}

// EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN!
// TODO(user): EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN!
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func (r *Cruiser) SetupWebhookWithManager(mgr ctrl.Manager) error {
Complete()
}

// EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN!
// TODO(user): EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN!

// TODO(user): change verbs to "verbs=create;update;delete" if you want to enable deletion validation.
//+kubebuilder:webhook:path=/validate-ship-testproject-org-v2alpha1-cruiser,mutating=false,failurePolicy=fail,sideEffects=None,groups=ship.testproject.org,resources=cruisers,verbs=create;update,versions=v2alpha1,name=vcruiser.kb.io,admissionReviewVersions=v1
Expand Down
2 changes: 1 addition & 1 deletion testdata/project-v3-multigroup/apis/v1/lakers_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func (r *Lakers) SetupWebhookWithManager(mgr ctrl.Manager) error {
Complete()
}

// EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN!
// TODO(user): EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN!

//+kubebuilder:webhook:path=/mutate-testproject-org-v1-lakers,mutating=true,failurePolicy=fail,sideEffects=None,groups=testproject.org,resources=lakers,verbs=create;update,versions=v1,name=mlakers.kb.io,admissionReviewVersions=v1

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ kind: Lakers
metadata:
name: lakers-sample
spec:
# Add fields here
# TODO(user): Add fields here
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ kind: Captain
metadata:
name: captain-sample
spec:
# Add fields here
# TODO(user): Add fields here
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ kind: HealthCheckPolicy
metadata:
name: healthcheckpolicy-sample
spec:
# Add fields here
# TODO(user): Add fields here
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ kind: Kraken
metadata:
name: kraken-sample
spec:
# Add fields here
# TODO(user): Add fields here
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ kind: Leviathan
metadata:
name: leviathan-sample
spec:
# Add fields here
# TODO(user): Add fields here
Loading