Skip to content

Commit

Permalink
Added status name to the status description
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Dzon <[email protected]>
  • Loading branch information
Jakub Dzon committed Sep 17, 2020
1 parent a81d9e9 commit 8b020d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/sdk/resources/openapi/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ package openapi
import extv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"

// OperatorConfigStatus provides JSONSchemaProps for the Status struct
func OperatorConfigStatus(operatorName string) extv1.JSONSchemaProps {
func OperatorConfigStatus(statusName string, operatorName string) extv1.JSONSchemaProps {
return extv1.JSONSchemaProps{
Type: "object",
Description: "Defines the status of the " + operatorName + " installation",
Description: statusName + " defines the status of the " + operatorName + " installation",
Properties: map[string]extv1.JSONSchemaProps{
"targetVersion": {
Description: "The desired version of the " + operatorName + " resource",
Expand Down

0 comments on commit 8b020d1

Please sign in to comment.