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

Rename SQL resources to AzureSQL #349

Merged
merged 5 commits into from
Oct 14, 2019

Conversation

aka-msft
Copy link
Contributor

Closes #231

What this PR does / why we need it:
Note: Initially a WIP - Waiting for some firewall rule code to get merged before doing a rename on those files.

Renames SqlServer, SqlDatabase, SqlFirewallRule, and SqlAction (rolling credentials) to AzureSqlServer, AzureSqlDatabase, AzureSqlFirewallRule, and AzureSqlAction, respectively. Resolves ambiguity in the type of SQL services being implemented, and makes room for other future database implementations such as PostgresSQL or MySQL, etc.

Special notes for your reviewer:
Run operator and check to make sure that an AzureSQL server, database, and firewall rule can still be created successfully and show up in the portal. Get the DB password from the k8s secret, base64 decode, then use it to log into the database to test. Run the AzureSqlAction to roll credentials using the operator. Get the new password from the k8s secret, base64 decode, then test to make sure the new password can be used to log into the database.

If applicable:

  • this PR contains documentation
  • this PR contains tests

@aka-msft aka-msft changed the title WIP - Rename SQL resources to AzureSQL Rename SQL resources to AzureSQL Oct 14, 2019
@aka-msft
Copy link
Contributor Author

@frodopwns @jananivMS Update: No longer a WIP, ready for review. Tagging you in case you have free time and want to take a look at this - Will and I chatted and he is already tracking on it.

@aka-msft aka-msft added this to In Review in Boulder Sprints Oct 14, 2019
@WilliamMortlMicrosoft
Copy link
Contributor

needs to fix sql action meta data issue where it points to the sql server as its parent... take a look at sql firewall rule for the code to do this

@WilliamMortlMicrosoft
Copy link
Contributor

tested by creating and deleting (including cascading delete of sql server) sql servers, databases, and firewall rules

@aka-msft aka-msft merged commit 2da53fd into Azure:master Oct 14, 2019
@aka-msft aka-msft deleted the fix/azure-sql-renames branch October 14, 2019 20:42
@jananivMS jananivMS moved this from In Review to Done in Boulder Sprints Oct 15, 2019
@jananivMS jananivMS removed this from Done in Boulder Sprints Oct 18, 2019
Porges pushed a commit that referenced this pull request May 11, 2021
* Track used imports when generating
* Emit only used imports
* Add MustGetImportedPackageName() and use to simplify code
* Pass package name into FormatError()
* Pass package name into NewTestFuncDetails()
* Use MustGetImportedPackageName() and simplify code
* Use CodeGenerationContext to find package name for 'encoding/json'
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.

Task: Rename SQLServer, SqlDatabase, SqlFirewallRule, and SqlAction with "AzureSql" prefix
2 participants