Manage the litellm plugin via config/plugins (import existing registration) #90
Reference in New Issue
Block a user
Delete Branch "benvin/import-litellm-plugin"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bring the litellm plugin under terraform management like the gpg one, using the new plugin-import module (#89).
Why
The litellm plugin was registered manually before terraform owned the catalog. If we just add it to
config/plugins/, the first apply tries to create a catalog entry that already exists and fails. So its state must be imported first.Changes
config/plugins/vault-plugin-secrets-litellm.yaml(sha256= released v0.1.1 openbao binary from the RPM Puppet installs).Manual pre-step (before apply)
Import the existing registration into state, and verify the sha matches the live catalog:
If the live sha differs from the yaml, update the yaml to match (or expect a benign re-register to the on-disk v0.1.1 sha). Needs the deployer's plugin-catalog access (#88, already merged).
Bring the litellm plugin under terraform management like the gpg one. It was registered manually before terraform owned the catalog, so its state must be imported before applying, otherwise apply fails creating an entry that already exists. - Add config/plugins/vault-plugin-secrets-litellm.yaml (sha256 = released v0.1.1 openbao binary; verify against the live catalog on import). Manual pre-step before apply: cd environments/au/syd1 terragrunt import \ 'module.plugin["vault-plugin-secrets-litellm"].vault_plugin.this' \ secret/vault-plugin-secrets-litellmView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.