Skip to content

Commit

Permalink
fix(ingress): Fix contact ingress annotations being ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Jul 20, 2024
1 parent 713ac04 commit 769547c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions api/v1/monitor_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,9 @@ type MonitorPOST struct {

// MonitorContactRef attaches alert contacts. If blank, the default will be used.
type MonitorContactRef struct {
corev1.LocalObjectReference `json:",inline"`
corev1.LocalObjectReference `json:",inline" mapstructure:",squash"`

MonitorContactCommon `json:",inline"`
MonitorContactCommon `json:",inline" mapstructure:",squash"`
}

type MonitorContactCommon struct {
Expand Down
1 change: 0 additions & 1 deletion internal/controller/ingress_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,6 @@ func (r *IngressReconciler) updateValues(ingress *networkingv1.Ingress, monitor
mapstructure.TextUnmarshallerHookFunc(),
),
ErrorUnused: true,
TagName: "json",
WeaklyTypedInput: true,
Result: &monitor.Spec,
})
Expand Down

0 comments on commit 769547c

Please sign in to comment.