Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(mq): Add MQ Configuration resource #2091

Merged
merged 1 commit into from
Sep 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions apis/mq/generator-config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
ignore:
operations:
- UpdateConfiguration
field_paths:
- CreateBrokerRequest.Users
- CreateBrokerRequest.BrokerName
Expand All @@ -7,9 +9,20 @@ ignore:
- CreateUserRequest.Username
- CreateUserRequest.BrokerId
- CreateUserRequest.Password
resource_names:
- Configuration
resources:
Configuration:
fields:
LatestRevision.Data:
is_read_only: true
from:
operation: DescribeConfigurationRevision
path: Data
Tags:
is_read_only: true
from:
operation: DescribeConfiguration
path: Tags

Broker:
fields:
BrokerInstances:
Expand Down
15 changes: 15 additions & 0 deletions apis/mq/v1alpha1/custom_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,18 @@ type CustomUserParameters struct {

PasswordSecretRef xpv1.SecretKeySelector `json:"passwordSecretRef,omitempty"`
}

// CustomConfigurationParameters contains the additional fields for CustomConfigurationParameters
type CustomConfigurationParameters struct {
Data *string `json:"data,omitempty"`
Description *string `json:"description,omitempty"`
}

const (
// LatestUnsanitizedConfiguration is the key in the annotations map of a
// Configuration resource to track the latest unsanitized version
// and stop the update loop if the external update result always results in
// sanitization of the desired configuration.spec.data
// the latest desired config is stored as
LatestUnsanitizedConfiguration = "crossplane.io/latest-unsanitized-desired"
)
111 changes: 111 additions & 0 deletions apis/mq/v1alpha1/zz_configuration.go

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

Loading
Loading