Skip to content

Commit

Permalink
Merge pull request #13 from appuio/change/udpate-warning
Browse files Browse the repository at this point in the history
Update warning to not mention cost for now
  • Loading branch information
glrf authored Apr 7, 2022
2 parents 6ed426f + edfe82c commit 7e802c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webhooks/ratio_validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func (v *RatioValidator) Handle(ctx context.Context, req admission.Request) admi
Allowed: true,
// WARNING(glrf) Warnings MUST NOT contain newlines. K8s will simply drop your warning if you add newlines.
Warnings: []string{
fmt.Sprintf("Current memory to CPU ratio of %s/core in this namespace is below the fair use ratio of %s/core. This might lead to additional costs.", r, v.RatioLimit),
fmt.Sprintf("Current memory to CPU ratio of %s/core in this namespace is below the fair use ratio of %s/core.", r, v.RatioLimit),
},
}}
}
Expand Down

0 comments on commit 7e802c0

Please sign in to comment.