Skip to content

Conversation

@batpad
Copy link
Member

@batpad batpad commented Mar 12, 2025

Refs #186

Creates the pgstac-secret- object reading from an Azure Secrets Vault.

We may or may not want to include this in a main eoapi-k8s release, but it would definitely be helpful to have a helm chart with this to test our deploy.

cc @geohacker @emmanuelmathot

[EDIT] Emmanuel 08/04/2025

  • Refactored specific azure service account to generic service account management
  • Added extra placeholders in values.yaml to mount extra volumes and extra secret managed by azure in a generic way
  • Deactivate existing postgres secret when postgrescluster.enabled is false
  • Added Azure specific documentation for using Azure managed postgres and keyvault
  • Added pod debug logs when startup fails in CI/CD
  • updated PGO to 5.7.0

batpad and others added 28 commits March 12, 2025 18:14
…figmap.yaml for PGADMIN_URI initialization and PostgreSQL environment variables
…o ensure PGADMIN_URI is initialized correctly
…figmap.yaml for PGADMIN_URI initialization and PostgreSQL environment variables
…ts and environment variables for LOAD_FIXTURES and KEEP_ALIVE
…and update values.yaml to use a map for extraEnvVars
…cBootstrap settings and clean up values.yaml by removing unused envVars for raster and vector
…traEnvVars for environment variable management in job.yaml and values.yaml
…meMounts, and extraVolumes for improved secret management and volume handling
- Introduced a unified PostgreSQL configuration structure in values.yaml, replacing the old db configuration.
- Added new helper functions for managing PostgreSQL environment variables and secrets based on the selected configuration type (postgrescluster, external-plaintext, external-secret).
- Removed old database-related templates (ConfigMap, Deployment, PVC, Secrets, Service) that are no longer needed.
- Updated the pgstacbootstrap job and configmap templates to align with the new PostgreSQL configuration.
- Implemented validation for PostgreSQL settings to ensure required fields are set based on the selected type.
…he external secret (host, port, database) will override the corresponding values defined in external.host, external.port, and external.database.

Confirmed that the conditional blocks in deployment.yaml were already consolidated to eliminate redundancy. The file was already using a single include statement for PostgreSQL environment variables:

env:
  {{- include "eoapi.postgresqlEnv" $ | nindent 12 }}
Removed the unused eoapi.mapLegacyPostgresql helper function from _helpers.tpl as it wasn't being referenced anywhere in the codebase.
…ructions and examples for server creation, database setup, firewall configuration, and Key Vault integration.
@emmanuelmathot
Copy link
Contributor

need #215 to be merged and closed

@emmanuelmathot emmanuelmathot added this to the Full Cloud Agnostic milestone Apr 28, 2025
@emmanuelmathot
Copy link
Contributor

@pantierra No more azure specific configuration

@emmanuelmathot emmanuelmathot merged commit 9c581c5 into main Apr 29, 2025
2 checks passed
@emmanuelmathot emmanuelmathot deleted the feature/azure-secrets branch April 29, 2025 10:04
@emmanuelmathot emmanuelmathot restored the feature/azure-secrets branch August 18, 2025 08:56
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.

6 participants