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

Ignore minimalTlsVersion mismatch when the sslEnforcement is disabled #310

Merged
merged 2 commits into from
Dec 1, 2021

Conversation

sergenyalcin
Copy link
Contributor

Signed-off-by: Sergen Yalçın yalcinsergen97@gmail.com

Description of your changes

Fixes #307

This PR solves the problem that IsPostgreSQLUpToDate function always returns false. When the value of sslEnforcement is Disabled, the minimalTlsVersion mismatch is ignored.

I have:

  • Read and followed Crossplane's contribution process.
  • Run make reviewable test to ensure this PR is ready for review.

How has this code been tested

  • A PostgreSqlServer was provisioned by using example manifest (value of sslEnforcement is Disabled). Then I observed that, the IsPostgreSQLUpToDate returned true despite there is a mismatch between the values of minimalTlsVersion.

  • A PostgreSqlServer was provisioned by using example manifest (value of sslEnforcement is Enabled, value of minimalTlsVersion is TLS1_2). Then I observed that, cloud resource created with proper values and IsPostgreSQLUpToDate did not return false.

Signed-off-by: Sergen Yalçın <yalcinsergen97@gmail.com>
@sergenyalcin sergenyalcin self-assigned this Nov 30, 2021
Signed-off-by: Sergen Yalçın <yalcinsergen97@gmail.com>
Copy link
Member

@muvaf muvaf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @sergenyalcin !

@ulucinar ulucinar merged commit 8380dd2 into crossplane-contrib:master Dec 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IsUpToDate of PostgreSqlServer returns false for every reconciliation loop
3 participants