Граф коммитов

20 Коммитов

Автор SHA1 Сообщение Дата
Brian Loss 105c1af9c0
Fix build failure, update package versions (#41)
* gdal version needs to be locked in pyproject.toml to the same version
  in the Dockerfile. Otherwise when new versions of gdal come out, the
  build will attempt to use them and that may fail since the native code
  won't be installed and pip will try to build the wheel and fail.
* Update stac-browser to 3.0.2 which fixes a build issue where upstream
  packages changed and previous versions (3.0.0, 3.0.1) will no longer
  build.
* Update packages to latest versions.
* Remove use of xargs and replace with a for loop to support
  cross-platform use of the script.
* Fix retrieval of signed-in user object ID. If no value was found in
  the id field, then try objectId. If that is not found, then fail the
  script.
* Pass cloudName to stac-scaler deployment so deployment works on
  sovereign or other non-public clouds.
* Switch to stac-fastapi-pgstac, since the pgstac backend was broken out
  of the stac-fastapi project starting with version 2.4.6.
* Update naip deployment docs to make copy/paste easier
2023-06-16 16:49:38 -04:00
Kungumaraj Nachimuthu c5406fb90e
Fix uami timing and deploymentscript re-run issue (#39)
UAMI needs a few minutes to propagate through Azure AD and may cause timing issue in some tenants. So, a pause of 5 minutes is added after its creation.

The bicep template is not idempotent because the vnet and its subnets cannot be redeployed using bicep template. So, a solution was put in place earlier where deploymentScript would check the existence of the Vnet and conditionally deploy the vnet and its subnets. However, the deploymentScript does not re-run until the contents of the script changes.

So when it first runs, its output says the vnet does not exists. Subsequent deployments also use the same output since the deploymentScript is not re-run as the content of the script did not change.

As a fix, deleting the deploymentScript at the end of each run
2023-06-09 09:58:37 -07:00
Brian Loss 626dc914fb
Remove API management (#38)
* Remove API Management from the deployment
* Add nginx k8s ingress controller to route traffic to the stac API
* Add stac-browser
* Add blbostore proxy to allow for assets in storage to be accessed in
  a secure manner
2023-06-05 17:35:09 -04:00
Brian Loss c4c7e292fd
Reformat code (#37)
* Update dependencies and remove stac-fastapi workaround

* Update dependency versions for virtually all dependencies
* Remove workaround for a broken stac-fastapi version. Change code back
  to once again pull a release from GitHub rather than cloning and
  modifying the source.

* Sort/optimize imports

* Format code

* Fix flake8 errors

* Fix MyPy errors

* Fix issues found in testing.
2023-06-05 17:22:44 -04:00
Brian Loss aa64950e18
Move to pyproject.toml (#36)
* Add pyproject.toml configuration
* Update main entrypoint to work with pyproject.toml
* Remove requirements.txt and setup.py files
* Update Dockerfile to install non-editable version of the package
* Update self package imports to use common root of stac.
2023-06-05 13:49:39 -07:00
Brian Loss 16a5dd51c3
Clean up APIM policies and fix db connection bug (#35)
* Clean up APIM policies and fix db connection bug

* If the db connection fails to open, then the ingest collection
  processor will fail when checking whether or not the connection is
  open, since the type of the connection variable would be its default
  string and not a Connection. Change type to Optional[Connection] and
  also don't suppress the exception if the connection fails to open
  while processing a message.

* Fix APIM policies. The re-writes on the STAC API now re-write the
  internal service name to the external APIM host/path to the STAC API.
  The storage account in use is specified in a named value, and URLs
  with the storage account are re-written to send to the blobstore API
  that is loaded in APIM.

* Change blobstore proxy to a wildcard url

* The previous version of the blobstore proxy would not work with deep
  paths (e.g., anything that didn't match /container/filename). Instead,
  change the URL to a wildcard so that any URL passed to /blobstore
  gets passed to storage (with the /blobstore part of the path removed).
* Fix issue with sed commands on macOS.
* Adjust scripts that were checking required parameters--they were
  attempting to allow the env var to be used instead of the positional
  arg, but then were validating that the position arg was set vs the
  environment variable (which is initialized with the positional arg
  and a fallback to the env var value).
2023-03-08 15:44:02 -08:00
Kungumaraj Nachimuthu 8fec8dd842
Apply changes for Gov cloud deployment (#34)
* Apply changes for Gov cloud deployment

* Update README.md to clarify sovereign cloud term
2023-02-22 09:28:52 -08:00
Kungumaraj Nachimuthu 9bdd020590
Bug fixes based on latest testing (#32) 2023-02-03 10:05:34 -08:00
Karthick Narendran a72215fb58
Minor fix with azcopy install (#31)
* Minor fix with azcopy install
---------

Co-authored-by: Karthick Narendan <kanarend@microsoft.com>
2023-02-03 17:25:18 +00:00
Kungumaraj Nachimuthu ce1f9a8ddf
Move secrets to Key Vault (#29)
* Move secrets to Key Vault

* Remove use of unsed vars and dates in deployments

* Update pre-requisites for workload identity use

* Get latest Kubernetes Version for AKS Cluster

* Update with feedback for k8s version retrieval
2023-01-19 08:46:07 -08:00
Kungumaraj Nachimuthu c6f985631d
STAC Code refactor and restructure (#28)
* KEDA connector for scaling jobs

* Restructure folder and minor fixes to helm chart

* KEDA connector for scaling jobs

* Restructure folder and minor fixes to helm chart

* Parameterize messageCount

* Change Load Balancer to Internal

* Remove redundant stac-fastapi deployment folder

* Change folder name to processors

* KEDA connector for scaling jobs

* Restructure folder and minor fixes to helm chart

* KEDA connector for scaling jobs

* Restructure folder and minor fixes to helm chart

* Parameterize messageCount

* Change Load Balancer to Internal

* Remove redundant stac-fastapi deployment folder

* Change folder name to processors

* Change load balancer to internal load balancer

* Support message count for STAC processors

* Change for adding telemetry to processor

* Scaling cluster + HPA

* Add Ingestion script

* Code restructure and refactored

* Copyrights header added

* Parameterize maxPods and add gitignore folders

* Update namespace parameters to avoid overloading

* Reduce cmd line parameters for Helm

* Remove POD_NAME and NODE_NAME from env vars

* Add missing comment to __command.py

* Delete optional script to bulk ingest assets

* Delete obsolete folders

* Remove minimal values in favor of values.yaml

* Remove default value for required parameters

* Get loadbalancer IP from az cli cmd execution

* Update to use version 3 of psycopg

* Fix missing indentation

* Test and Finalized Helm chart changes

* Update deploy/helm/stac-scaler/templates/_checks.yaml

Co-authored-by: Brian Loss <brianloss@gmail.com>

* Upgrade to Keda 2.9.1

Co-authored-by: Brian Loss <brianloss@gmail.com>
2023-01-03 16:12:04 -08:00
Karthick Narendran 3a60cd440a
Changes to support STAC on multiple Azure clouds - Part 1 of 2 (#22)
Co-authored-by: Karthick Narendan <kanarend@microsoft.com>
Co-authored-by: Brian Loss <brianloss@gmail.com>
2022-12-05 13:26:23 +00:00
Brian Loss 87447ccb74
Doc cleanup (#25)
* Fix markdown lint warnings

* Clean up docs
2022-12-05 07:37:40 -05:00
Ardon Bailey 4431307565
Complete message on error (#16)
* Complete message

* Change maxDeliveryCount and change back to original code

Co-authored-by: Ardon Bailey <arbailey@microsoft.com>
Co-authored-by: Kungumaraj Nachimuthu <kunachim@microsoft.com>
2022-11-10 15:03:05 -08:00
Sushil Kumar 6a4462f8c4
Update documentation to get sample data directly from naip source (#18) 2022-11-07 13:03:06 -08:00
Sushil Kumar 9157c3220b
Use internal load-balancer with private-ip for faststac api on aks (#17) 2022-11-07 10:02:53 -08:00
Sushil Kumar dde04272b2
Fixes stack-fastapi image build (#14)
* Fixes stack-fastapi image build

* Pinned to the commit for locking pygeoif==0.7
2022-10-27 11:40:29 -07:00
Sushil Kumar c9a1dfa571
Adds execute permission to scripts (#12) 2022-10-24 10:01:42 -07:00
Karthick Narendran 0969634009
Update md files (#8)
Co-authored-by: Karthick Narendan <kanarend@microsoft.com>
Co-authored-by: Kungumaraj Nachimuthu <kunachim@microsoft.com>
2022-09-28 15:39:22 -07:00
Kungumaraj Nachimuthu dcc6113c86 Initial code commit 2022-09-27 09:17:03 -07:00