-
Notifications
You must be signed in to change notification settings - Fork 28
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
Use Azure Storage Tables for collection and container configuration #48
Merged
Merged
Changes from 33 commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
75be7dc
Add additional dependencies to pccommon
lossyrob 81c8ac9
Fix mypy error in pctiler
lossyrob effcede
Refactor scripts to test pccommon
lossyrob 5d31e71
Linting fixups
lossyrob 6eaa061
Add tables classes
lossyrob 56aab13
Refactor collection config in pccommon
lossyrob a053bbf
Add Azurite setup
lossyrob 861a38f
Update codebase to use refactored configuration
lossyrob f6069f8
Set azurite settings in docker-compose
lossyrob 516ac38
Move to using only pytest for consistency
lossyrob 2cbe249
Test get render config for naip
lossyrob a44c544
Refactor config code layout
lossyrob ae6f055
Run azurite setup in scripts/setup
lossyrob 8d63a2b
Add mosaicInfo and queriables to collection config
lossyrob 459522f
Remove usage of requirements.txt
lossyrob 59aef83
Add script for local package install
lossyrob 06c6c46
Fetch queryables from storage tables
lossyrob 3c94e79
Use orjson in pccommon
lossyrob 2f7483b
Use ORJSONResponse
lossyrob 23d5769
Remove unused endpoint prefixes
lossyrob 7df82cf
Add mosiac/info endpoint
lossyrob 3662d50
Add method to fetch all rows
lossyrob eaf3378
Add CLI for loading and dumping config data
lossyrob 9b049cb
Variable for k8s version; update dev
lossyrob 63ade60
Allow AKS to pull from ACR
lossyrob 52ffb6d
Storage Tables in terraform
lossyrob 2f2fe64
Add config table env vars to helm charts
lossyrob c99e0fe
Update ingress apiVersion
lossyrob 45a8ee9
Make note in deploy README about updating tables
lossyrob 25ad45f
Update CHANGELOG
lossyrob 43b499c
Linting/formatting
lossyrob e090d66
Remove unused __init__ override
lossyrob 009ee37
Remove unused vars in dev terraform
lossyrob a12dd32
Merge branch 'main' into feature/rde/table-configs
mmcfarland 196be2d
Allow cli to dump configs by id
mmcfarland File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
data "azurerm_container_registry" "pc" { | ||
name = var.pc_test_resources_acr | ||
resource_group_name = var.pc_test_resources_rg | ||
} | ||
|
||
# add the role to the identity the kubernetes cluster was assigned | ||
resource "azurerm_role_assignment" "attach_acr" { | ||
scope = data.azurerm_container_registry.pc.id | ||
role_definition_name = "AcrPull" | ||
principal_id = azurerm_kubernetes_cluster.pc.kubelet_identity[0].object_id | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
resource "azurerm_storage_account" "pc" { | ||
name = "${local.nodash_prefix}sa" | ||
resource_group_name = azurerm_resource_group.pc.name | ||
location = azurerm_resource_group.pc.location | ||
account_tier = "Standard" | ||
account_replication_type = "LRS" | ||
} | ||
|
||
# Tables | ||
|
||
resource "azurerm_storage_table" "collectionconfig" { | ||
name = "collectionconfig" | ||
storage_account_name = azurerm_storage_account.pc.name | ||
} | ||
|
||
resource "azurerm_storage_table" "containerconfig" { | ||
name = "containerconfig" | ||
storage_account_name = azurerm_storage_account.pc.name | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Might need to update this to PCAPIS_APP_INSIGHTS_INSTRUMENTATION_KEY