Skip to content

Commit

Permalink
Merge branch 'main' into PC-14236-le-1-shr-thresholds
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasz-dobek authored Sep 20, 2024
2 parents 7a75bf2 + 0350ad4 commit be63493
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 7 deletions.
1 change: 0 additions & 1 deletion internal/manifest/v1alpha/examples/slo_composite.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ func (s sloCompositeExample) SLO() v1alphaSLO.SLO {
{
ObjectiveBase: v1alphaSLO.ObjectiveBase{
DisplayName: "User experience",
Value: ptr(0.0),
Name: "user-experience",
},
BudgetTarget: ptr(0.95),
Expand Down
4 changes: 0 additions & 4 deletions manifest/v1alpha/slo/examples/composite-slo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
budgetingMethod: Occurrences
objectives:
- displayName: User experience
value: 0.0
name: user-experience
target: 0.95
composite:
Expand Down Expand Up @@ -96,7 +95,6 @@
budgetingMethod: Occurrences
objectives:
- displayName: User experience
value: 0.0
name: user-experience
target: 0.95
composite:
Expand Down Expand Up @@ -160,7 +158,6 @@
budgetingMethod: Timeslices
objectives:
- displayName: User experience
value: 0.0
name: user-experience
target: 0.95
timeSliceTarget: 0.9
Expand Down Expand Up @@ -228,7 +225,6 @@
budgetingMethod: Timeslices
objectives:
- displayName: User experience
value: 0.0
name: user-experience
target: 0.95
timeSliceTarget: 0.9
Expand Down
2 changes: 1 addition & 1 deletion manifest/v1alpha/slo/slo.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ type Attachment struct {
// ObjectiveBase base structure representing an objective.
type ObjectiveBase struct {
DisplayName string `json:"displayName"`
Value *float64 `json:"value"`
Value *float64 `json:"value,omitempty"`
Name string `json:"name"`
NameChanged bool `json:"-"`
}
Expand Down
1 change: 0 additions & 1 deletion sdk/test_data/reader/expected/composite_v2_slo.tpl.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"objectives": [
{
"displayName": "composite-obj",
"value": null,
"name": "composite-obj",
"target": 0.99,
"composite": {
Expand Down

0 comments on commit be63493

Please sign in to comment.