-
Notifications
You must be signed in to change notification settings - Fork 204
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
SqlDatabase controller changes #144
SqlDatabase controller changes #144
Conversation
…erator into jananiv/azuresqltests
…erator into jananiv/azuresqltests
* improve tests with parallel execution and rm sleep * fix the tests to run on kindcluster
* feat: implement keyvault controller * Ace's KV changes with updates * Added an event for the final successful provisioning * Updated changes based on the PR comments * removing unwanted file * making resource group name the one in the keyvault yaml Co-authored-by: Ace Eldeib <alexeldeib@gmail.com>
…erator into jananiv/azuresqltests
…erator into jananiv/azuresqltests
Location string `json:"location"` | ||
ResourceGroup string `json:"resourcegroup,omitempty"` | ||
Server string `json:"server"` | ||
Edition sql.DBAddition `json:"edition"` |
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.
IS this the one that is meant to be Edition?
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.
yes
@@ -1,7 +1,9 @@ | |||
apiVersion: azure.microsoft.com/v1 | |||
kind: SqlDatabase | |||
metadata: | |||
name: sqldatabase-sample | |||
name: samplesqldb123 |
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.
name: samplesqldb123 | |
name: sqldatabase-sample |
server := instance.Spec.Server | ||
groupName := instance.Spec.ResourceGroup | ||
var dbEdition sql.DBAddition | ||
dbEdition = instance.Spec.Edition |
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.
why define this on the previous line?
dbEdition = instance.Spec.Edition | |
dbEdition := instance.Spec.Edition |
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.
need to handle the merge conflicts before this will run as-is...I merged locally and it all seemed to work though
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.
lgtm
* Fix usage of ** in glob - Add new dependency becuase golang filepath.glob doesn't support recursive matching. * Allow output directory to be configured - This fixes #144. - Improved configuration yaml file property casing. * Add makefile target for running k8sinfra-gen * Little comment type fixup * Allow `make gen-arm` to be rerun by deleting the generated code Since the generated code doesn't currently build it would prevent `make gen-arm` from being rerun until the apis directory was removed. Hit a bug in codegen.isFileGenerated that would fail to close files - move the deferred close to before the early return. * Add clarifying comment to Makefile Co-authored-by: Christian Muirhead <christian.muirhead@canonical.com>
refs #133
What this PR does / why we need it:
Adds the reconciler logic for SqlDatabase to create and delete Sql Databases
Special notes for your reviewer:
Test create and delete of Sql database using the kubectl apply -f "config/samples/azure_v1_sqldatabse,yaml"
If applicable: