Skip to content

Commit

Permalink
add mq configuration
Browse files Browse the repository at this point in the history
Signed-off-by: Ana-Maria Garlau <[email protected]>
  • Loading branch information
anagarlau committed Sep 15, 2024
1 parent 34115e2 commit 3ec5118
Show file tree
Hide file tree
Showing 19 changed files with 1,813 additions and 54 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 3ec5118

Please sign in to comment.