-
Notifications
You must be signed in to change notification settings - Fork 2
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
Adding necessary field names to handle external IPs in connection secret #191
Conversation
ecec7f8
to
ee78fa9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well that looks easy :D
Just two remarks about naming and the replica ips
component/vshn_postgres.jsonnet
Outdated
@@ -403,6 +413,8 @@ local sgCluster = { | |||
|
|||
comp.FromCompositeFieldPath('spec.parameters.backup.schedule', 'spec.forProvider.manifest.spec.configurations.backups[0].cronSchedule'), | |||
comp.FromCompositeFieldPath('spec.parameters.backup.retention', 'spec.forProvider.manifest.spec.configurations.backups[0].retention'), | |||
comp.FromCompositeFieldPath('spec.parameters.network.serviceType', 'spec.forProvider.manifest.spec.postgresServices.primary.type'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just saw, that you also have logic in the composition function. Please do these patches there as well. It's confusing if the logic is spread over the composition function and the legacy P+T compostion.
tests/golden/vshn/appcat/appcat/21_composition_vshn_postgres.yaml
Outdated
Show resolved
Hide resolved
101f29e
to
19f8b62
Compare
@Kidswiss please re-review component-appcat as well |
@@ -38,6 +38,7 @@ parameters: | |||
services: | |||
vshn: | |||
enabled: true | |||
externalDatabaseConnectionsEnabled: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add this parameter to the default as well? But set it to false, as we can only use it on specific clusters.
Otherwise the compilation will probably fail for the remaining clusters, as there is no field with that name available.
This PR is strictly connected with: vshn/appcat#46
I need to add fields to connection secret so crossplane can write to them
Checklist
changelog.
The PR has a meaningful description that sums up the change. It will be
linked in the changelog.
bug
,enhancement
,documentation
,change
,breaking
,dependency
as they show up in the changelog.