Skip to content

Commit

Permalink
Revert "fix: reconcile reloader when resources are updated"
Browse files Browse the repository at this point in the history
This reverts commit ec52296.

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
  • Loading branch information
simonpasquier committed Oct 13, 2023
1 parent ee37cac commit 6a4b055
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions pkg/operator/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ func DefaultConfig(cpu, memory string) Config {
// ContainerConfig holds some configuration for the ConfigReloader sidecar
// that can be set through prometheus-operator command line arguments
type ContainerConfig struct {
CPURequests Quantity `hash:"string"`
CPULimits Quantity `hash:"string"`
MemoryRequests Quantity `hash:"string"`
MemoryLimits Quantity `hash:"string"`
CPURequests Quantity
CPULimits Quantity
MemoryRequests Quantity
MemoryLimits Quantity
Image string
EnableProbes bool
}
Expand Down Expand Up @@ -106,10 +106,8 @@ type Quantity struct {
q resource.Quantity
}

var _ = fmt.Stringer(Quantity{})

// String implements the flag.Value and fmt.Stringer interfaces.
func (q Quantity) String() string {
// String implements the flag.Value interface
func (q *Quantity) String() string {
return q.q.String()
}

Expand Down

0 comments on commit 6a4b055

Please sign in to comment.