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

Enable etcd-druid to make use of Azurite - the Azure Blob Storage Emulator #753

Merged
merged 1 commit into from
Jul 17, 2024

Commits on Jul 17, 2024

  1. Added support to etcd-druid to make use of Azurite - the Azure Bl…

    …ob Storage Emulator
    
    * New documentation `docs/development/getting-started-locally-azurite.md`, to document
      the setup process for running `etcd-druid` with `Azurite`.
    
    * New make target `deploy-azurite` to setup the `Azurite` emulator in the `kind` cluster.
    
    * New make target `ci-e2e-kind-azure` to run the e2e tests with `Azurite`.
    
    * New script `hack/deploy-azurite.sh`, to setup the `Azurite` emulator in the `kind` cluster.
    
    * New script `ci-e2e-kind-azurite`, to run the e2e tests with `Azurite`.
    
    * New manifest `config/samples/druid_v1alpha1_etcd_azurite.yaml`, to run with `Azurite`.
    
    * New manifest `config/samples/etcd-secret-azurite.yaml`, to run with with `Azurite`.
    
    * New manifest `hack/e2e-test/infrastructure/azurite/azurite.yaml`, to setup `Azurite`.
    
    * Port `10000` forward `hack/e2e-test/infrastructure/kind/cluster.yaml`, to setup `Azurite`.
    
    * New environment variable `AZURE_STORAGE_API_ENDPOINT` to override ABS endpoint to `Azurite`.
    
    * Environment variable `AZURE_STORAGE_CONNECTION_STRING` added to
      `hack/e2e-test/infrastructure/overlays/azure/common/azure.env` to enable the script which
      creates the ABS Container in `Azurite` to access `Azurite` using the relevant Storage Account,
      Storage Key, and the BlobEndpoint at which `Azurite`'s Blob Storage is hosted.
    
    * Modified `hack/e2e-test/infrastructure/overlays/azure/common/files/common.sh` to create
      the ABS Container in `Azurite` when the relevant environment variable is present.
    
    * Modified `pkg/utils/envvar.go` to read the Azure infrastructure `Secret` for the fields
      `enableAzurite` and `storageAPIEndpoint`, which are passed to the `etcd-backup-restore`
      container as environment variables, which are used to make use of the `Azurite` emulator.
    
    * Modified `pkg/common/constants.go` to add `AZURE_ENABLE_STORAGE_EMULATOR` and
      `AZURE_STORAGE_API_ENDPOINT`, which are the enviroment variables passed to
      `etcd-backup-restore` to make use of the `Azurite` emulator.
    
    * Modified `test/e2e/utils.go` to check for the `AZURITE_HOST` environment variable
      which creates the Azure `Secret`, to include additional fields `emulatorEnabled` and
      `storageAPIEndpoint` to enable usage of `Azurite`.
    
    * Fix license headers wherever applicable.
    
    * Miscellaneous fixes.
    renormalize committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    34c6e2d View commit details
    Browse the repository at this point in the history