Skip to content

Commit

Permalink
fix: reconcile reloader when resources are updated
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
  • Loading branch information
simonpasquier committed Oct 16, 2023
1 parent 8944ea9 commit f618c5b
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions pkg/operator/config.go
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
CPULimits Quantity
MemoryRequests Quantity
MemoryLimits Quantity
CPURequests Quantity `hash:"string"`
CPULimits Quantity `hash:"string"`
MemoryRequests Quantity `hash:"string"`
MemoryLimits Quantity `hash:"string"`
Image string
EnableProbes bool
}
Expand Down Expand Up @@ -106,8 +106,10 @@ type Quantity struct {
q resource.Quantity
}

// String implements the flag.Value interface
func (q *Quantity) String() string {
var _ = fmt.Stringer(Quantity{})

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

Expand Down

0 comments on commit f618c5b

Please sign in to comment.