Skip to content

Commit 5ec099b

Browse files
authored
Merge pull request #1977 from CatherineF-dev/clean-up-NewFamilyGenerator
Clean up function NewFamilyGenerator in comments
2 parents 86bf8f2 + 4210d50 commit 5ec099b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pkg/customresource/registry_factory.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,11 @@ type RegistryFactory interface {
5252
//
5353
// func (f *FooFactory) MetricFamilyGenerators(allowAnnotationsList, allowLabelsList []string) []generator.FamilyGenerator {
5454
// return []generator.FamilyGenerator{
55-
// *generator.NewFamilyGenerator(
55+
// *generator.NewFamilyGeneratorWithStability(
5656
// "kube_foo_spec_replicas",
5757
// "Number of desired replicas for a foo.",
5858
// metric.Gauge,
59+
// basemetrics.ALPHA,
5960
// "",
6061
// wrapFooFunc(func(f *samplev1alpha1.Foo) *metric.Family {
6162
// return &metric.Family{
@@ -67,10 +68,11 @@ type RegistryFactory interface {
6768
// }
6869
// }),
6970
// ),
70-
// *generator.NewFamilyGenerator(
71+
// *generator.NewFamilyGeneratorWithStability(
7172
// "kube_foo_status_replicas_available",
7273
// "The number of available replicas per foo.",
7374
// metric.Gauge,
75+
// basemetrics.ALPHA,
7476
// "",
7577
// wrapFooFunc(func(f *samplev1alpha1.Foo) *metric.Family {
7678
// return &metric.Family{

0 commit comments

Comments
 (0)