Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Aws secretsmanager additions (#6381)
* Add SecretKey to AWS SecretsManager TriggerAuthentication spec Signed-off-by: Nick Richardson <nicholas.richardson@akasa.com> * Update CHANGELOG Signed-off-by: Nick Richardson <nicholas.richardson@akasa.com> * Fix linting issue Signed-off-by: Nick Richardson <nicholas.richardson@akasa.com> * Update E2E tests Signed-off-by: Nick Richardson <nicholas.richardson@akasa.com> * Update E2E tests Signed-off-by: Nick Richardson <nicholas.richardson@akasa.com> * Update E2E tests Signed-off-by: Nick Richardson <nicholas.richardson@akasa.com> * fixed mixedxe tab/space issue Signed-off-by: michael pechner <mike.pechner@akasa.com> * reverted back to exportloopref Signed-off-by: michael pechner <mike.pechner@akasa.com> * remoace tab with spaces Signed-off-by: michael pechner <mike.pechner@akasa.com> * Needed the hlper added in here Signed-off-by: michael pechner <mike.pechner@akasa.com> * only changed awssecreetmanager_test.go to see if my approach is correct. Will remove REMOVETestAwsSecretManagerJSONFormat and change aws_secret_manager_pod_identity.go once I have changed this file as expected. Signed-off-by: michael pechner <mike.pechner@akasa.com> * nd keeps removing // Local imports . "github.com/kedacore/keda/v2/tests/helper" Signed-off-by: michael pechner <mike.pechner@akasa.com> * Not sure what the correct way to import the local helper is. Signed-off-by: michael pechner <mike.pechner@akasa.com> * Trying blank import. Signed-off-by: michael pechner <mike.pechner@akasa.com> * fix path "github.com/kedacore/keda/v2/tests/helper" Signed-off-by: michael pechner <mike.pechner@akasa.com> * added call to GetRandomNumber() just to keep goimport from removeing the the helper. Fixed type Ti -> T Signed-off-by: michael pechner <mike.pechner@akasa.com> * really am a noob. AwsSecretManager() does not return anything, so fixed the calling test Signed-off-by: michael pechner <mike.pechner@akasa.com> * another noob error. added test code back and making AwsSecretmanager() return nil Signed-off-by: michael pechner <mike.pechner@akasa.com> * really am gonna make every dumb mistake. Signed-off-by: michael pechner <mike.pechner@akasa.com> * fixed return value Signed-off-by: michael pechner <mike.pechner@akasa.com> * thought I fixed that. Signed-off-by: michael pechner <mike.pechner@akasa.com> * figured goland would have pointed these out Signed-off-by: michael pechner <mike.pechner@akasa.com> * removed duplicated function. Tests not run with useJSONSecretFormat true and false Signed-off-by: michael pechner <mike.pechner@akasa.com> * no excuse Signed-off-by: michael pechner <mike.pechner@akasa.com> * fixed . "github.com/kedacore/keda/v2/tests/helper" igoland linter keeps removng it. Signed-off-by: michael pechner <mike.pechner@akasa.com> * go fmt needs for 1 empty line Signed-off-by: michael pechner <mike.pechner@akasa.com> * In both tests deleteAWSSecret() is already coded to immediately delete the secret. Instead of tryinfg to further randomize the secretname, just let the code do what it should. Added a poll to wait on the secret to be removed. Hoping 2 minniutes is more than enough. Signed-off-by: michael pechner <mike.pechner@akasa.com> * In both tests deleteAWSSecret() is already coded to immediately delete the secret. Instead of trying to further randomize the secretname, just let the code do what it should. Added a poll to wait on the secret to be removed. Should happen within a few seconds. But we are talking AWS. 5 minutes really should be more then enough. Signed-off-by: michael pechner <mike.pechner@akasa.com> * forgot the import Signed-off-by: michael pechner <mike.pechner@akasa.com> * format Signed-off-by: michael pechner <mike.pechner@akasa.com> * Sorry. did not realize the needed imcludes for the wait code. Signed-off-by: michael pechner <mike.pechner@akasa.com> * compiles clean. found types.ResourceNotFoundException Signed-off-by: michael pechner <mike.pechner@akasa.com> * swapped wait.PollImmediate for wait.PollUntilContextTimeout Signed-off-by: michael pechner <mike.pechner@akasa.com> * forgot to fmt 1 Signed-off-by: michael pechner <mike.pechner@akasa.com> * as requested. removed wait on secret delete. made sure we set a new secret name for each run Signed-off-by: michael pechner <mike.pechner@akasa.com> * removed useJSONSecretFormat from test struct. Signed-off-by: michael pechner <mike.pechner@akasa.com> * missed a spot where useJSONSecretFormat was set Signed-off-by: michael pechner <mike.pechner@akasa.com> --------- Signed-off-by: Nick Richardson <nicholas.richardson@akasa.com> Signed-off-by: michael pechner <mike.pechner@akasa.com> Signed-off-by: Michael D Pechner - Akasa <mike.pechner@akasa.com> Co-authored-by: Nick Richardson <nicholas.richardson@akasa.com> Co-authored-by: Nick Richardson <89413781+nrichardson-akasa@users.noreply.github.com> Co-authored-by: Zbynek Roubalik <zroubalik@gmail.com>
- Loading branch information