[Question] When using go-sdk to subscribe all RouterTraffic CR in current namespace, what 'app' param should be?
Opened this issue · 1 comments
LaurenceLiZhixin commented
// NewSubscribeKey returns an instance of SubscribeKey which is constructed by parameters.
func NewSubscribeKey(namespace string, app string, configKind configkind.ConfigKind) *SubscribeKey {
return &SubscribeKey{
namespace: namespace,
app: app,
kind: configKind,
}
}
How I can subscribe all crs in current ns?
jnan806 commented
In most scenes, RouterTraffic CRs were defined in a certain application scope, so we have a convention that, the label app
in CR is required.
So in current version you should give both namespace
and app
to defined your target CR, and you should subscribe all configKind one by one in your framework or application if you want to subscribe all CRs in the given namespace
and app
.
We also welcome you to append your opinions and your designs in this ISSUE 😃