Skip to content

Commit

Permalink
Merge pull request #2091 from anagarlau/mq-config
Browse files Browse the repository at this point in the history
feat(mq): Add MQ Configuration resource
  • Loading branch information
MisterMX authored Sep 16, 2024
2 parents 34115e2 + b08e42e commit e824b15
Show file tree
Hide file tree
Showing 17 changed files with 1,802 additions and 46 deletions.
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

0 comments on commit e824b15

Please sign in to comment.