Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Create Terraform AKS helper #405

Merged
merged 16 commits into from
Nov 11, 2019
Merged

Create Terraform AKS helper #405

merged 16 commits into from
Nov 11, 2019

Conversation

jakiefermsft
Copy link
Contributor

What this PR does / why we need it:
Spinning up an AKS cluster for testing is time consuming and this automates the entire process. Just run a make terraform-and-deploy, supply a couple tokens and get a ☕️.

If applicable:

  • this PR contains documentation

…or into terraform-helper

# By Anna Zietlow (8) and others
# Via GitHub (6) and Anna Zietlow (3)
* 'master' of github.com:jakiefermsft/azure-service-operator:
  add tests for controller with mock (#344)
  Revert "Revert "Replace hard coded event types in calls to Recorder with consts ""
  Revert "Replace hard coded event types in calls to Recorder with consts "
  Adding aso types (#411)
  Fixed the SQL Firewall Requeue issue (#409)
  Telemetry (#401)
  Update consts in Azure SQL controller finalizer
  update a few missed replacements
  update strings to const in resourcegroup and storage controllers
  update event type strings to consts in keyvault and redis controllers
  update event type strings to const for eventhubnamespace controller
  replace event type strings to consts for eventhub controller
  update event type to consts in cosmosdb controller
  update event types to consts for consumer group controller

# Conflicts:
#	Makefile
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.

this looks reasonable tho I suspect it will require some changes before it will be usable by the tests

frodopwns and others added 4 commits October 30, 2019 14:52
… terraform-helper

* 'master' of github.com:Azure/azure-service-operator:
  Update KeyVaultStatus fields, KeyVault Controller Cleaning (#415)
  removing unused fields
  cleaning up comments
  comment and log message cleanup
  use constants for event type
  remove commented code
  rename azure client 'Az' to 'AzureClient'
  fix issues in rg pkg tests resulting from async delete change
  flesh out mock to work with async operator
  working on improcing status
  working on getting tests to pass
  update test clients to match interface
  whoops
  leftover debug code
  add logs to resourcegroup client, remove wiat from rg delete
  working on robustness
  working on implementing a more generic interface/reconcile stragegy
  feat: semi-generic async azure controller + CLI improvements
  feat: implement keyvault secret, bundle, additional controllers
  chore: secrets work
Co-Authored-By: Erin Corson <frodopwns@gmail.com>
@jananivMS jananivMS self-requested a review November 1, 2019 16:12
@jakiefermsft jakiefermsft dismissed jananivMS’s stale review November 1, 2019 17:17

Completed thank you

terraform init devops/terraform
terraform apply devops/terraform

terraform-and-deploy: terraform generate install-cert-manager build-and-push deploy
Copy link
Contributor

Choose a reason for hiding this comment

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

This still has some issues like when the command fails once (in my case since my docker login wasnt set), the next time it fails as install-cert-manager is not idempotent. So there would still be some limitations to use this like you may need to do a terraform destroy before running again

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Would a make delete work?

@jakiefermsft jakiefermsft merged commit 59726f1 into Azure:master Nov 11, 2019
@jakiefermsft jakiefermsft deleted the terraform-helper branch November 11, 2019 22:41
Porges added a commit that referenced this pull request May 11, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants