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

Inline TempoComponentSpec struct in spec.template. #715

Open
Tracked by #524
andreasgerstmayr opened this issue Dec 14, 2023 · 0 comments
Open
Tracked by #524

Inline TempoComponentSpec struct in spec.template. #715

andreasgerstmayr opened this issue Dec 14, 2023 · 0 comments
Labels
tech-debt Technical debt

Comments

@andreasgerstmayr
Copy link
Collaborator

Currently the rendered version of a TempoStack looks like this:

template:
  compactor:
    replicas: 1
  distributor:
    component:
      replicas: 1
  ingester:
    replicas: 2
  querier:
    replicas: 1
  queryFrontend:
    component:
      replicas: 1

Where replicas is directly under the component for compactor, ingester and querier, but not for distributor and queryFrontend.

In the code at

// Currently, there is no way to inline this field.
// See: https://github.com/golang/go/issues/6213
is a link to golang/go#6213, but I don't follow, afaics the following works fine:

type TempoDistributorSpec struct {
    TempoComponentSpec `json:",inline"`
}

and is already used at another place:

type TempoStack struct {
	metav1.TypeMeta   `json:",inline"`
}

Is there a corner case I'm missing here? Or did this feature get implemented in the meantime?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tech-debt Technical debt
Projects
None yet
Development

No branches or pull requests

1 participant