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

SqlDatabase controller changes #144

Merged
merged 20 commits into from
Aug 28, 2019

Conversation

jananivMS
Copy link
Contributor

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:

  • this PR contains documentation
  • this PR contains tests

alexeldeib and others added 19 commits August 6, 2019 22:56
* 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>
@jananivMS jananivMS changed the title SqlDatabase controiller changes SqlDatabase controller changes Aug 26, 2019
@jananivMS jananivMS requested a review from melonrush13 August 26, 2019 22:26
Location string `json:"location"`
ResourceGroup string `json:"resourcegroup,omitempty"`
Server string `json:"server"`
Edition sql.DBAddition `json:"edition"`
Copy link
Contributor

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?

Copy link
Contributor Author

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
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
name: samplesqldb123
name: sqldatabase-sample

server := instance.Spec.Server
groupName := instance.Spec.ResourceGroup
var dbEdition sql.DBAddition
dbEdition = instance.Spec.Edition
Copy link
Contributor

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?

Suggested change
dbEdition = instance.Spec.Edition
dbEdition := instance.Spec.Edition

Copy link
Contributor

@frodopwns frodopwns left a 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

@jananivMS jananivMS requested a review from frodopwns August 28, 2019 19:16
Copy link
Contributor

@frodopwns frodopwns left a comment

Choose a reason for hiding this comment

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

lgtm

@jananivMS jananivMS merged commit 006e683 into Azure:azure-sql Aug 28, 2019
@jananivMS jananivMS deleted the jananiv/sqldbcontroller branch August 28, 2019 21:37
Porges pushed a commit that referenced this pull request May 11, 2021
* 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>
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.

4 participants