-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Description
Before: the cmd/main.go
is generated based on user inputs Kind
and APIVersion
such as PlayService
kind. The reason behind this is that users can just watch their customized resource out of the box as the default behavior.
func main() {
namespace := "default"
// old Watch API.
sdk.Watch(api.PlayServicePlural, namespace, api.PlayService)
sdk.Handle(&stub.Handler{})
sdk.Run(context.TODO())
}
Now: Should we change the above default behavior to watch on Deployment
instead?
func main() {
namespace := "default"
sdk.Watch("apps/v1", "Deployment", namespace)
sdk.Handle(&stub.Handler{})
sdk.Run(context.TODO())
}
Metadata
Metadata
Assignees
Labels
No labels