Skip to content

Commit

Permalink
Merge pull request #1453 from turkenf/add-desc-mquser
Browse files Browse the repository at this point in the history
Add description to consoleAccess field for MQ User
  • Loading branch information
turkenf authored Aug 8, 2024
2 parents 5a775c6 + 863d372 commit ad89d40
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
5 changes: 4 additions & 1 deletion apis/mq/v1alpha1/zz_user_types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions config/mq/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"fmt"

"github.com/crossplane/upjet/pkg/config"
"github.com/crossplane/upjet/pkg/registry"
)

// Configure adds configurations for the mq group.
Expand Down Expand Up @@ -68,5 +69,9 @@ func Configure(p *config.Provider) {
TerraformName: "aws_mq_broker",
}
r.Version = "v1alpha1"
r.MetaResource = &registry.Resource{
ArgumentDocs: make(map[string]string),
}
r.MetaResource.ArgumentDocs["console_access"] = `- (Optional) Setting consoleAccess will result in an update loop till the MQ Broker to which this user belongs is restarted.`
})
}
8 changes: 7 additions & 1 deletion package/crds/mq.aws.upbound.io_users.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ spec:
name: v1alpha1
schema:
openAPIV3Schema:
description: User is the Schema for the Users API. <no value>
description: User is the Schema for the Users API.
properties:
apiVersion:
description: |-
Expand Down Expand Up @@ -149,6 +149,8 @@ spec:
type: object
type: object
consoleAccess:
description: Setting consoleAccess will result in an update loop
till the MQ Broker to which this user belongs is restarted.
type: boolean
groups:
items:
Expand Down Expand Up @@ -273,6 +275,8 @@ spec:
type: object
type: object
consoleAccess:
description: Setting consoleAccess will result in an update loop
till the MQ Broker to which this user belongs is restarted.
type: boolean
groups:
items:
Expand Down Expand Up @@ -486,6 +490,8 @@ spec:
brokerId:
type: string
consoleAccess:
description: Setting consoleAccess will result in an update loop
till the MQ Broker to which this user belongs is restarted.
type: boolean
groups:
items:
Expand Down

0 comments on commit ad89d40

Please sign in to comment.