-
Notifications
You must be signed in to change notification settings - Fork 152
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
Adding a configurable env for EFS backup vault name #1090
Conversation
pkg/blockstorage/awsefs/awsefs.go
Outdated
) | ||
|
||
var ( | ||
efsBackupVaultName = getEnvAsStringOrDefault(efsBackupVaultNameEnv, defaultK10BackupVaultName) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bathina2 - can we add this to the config map - see NewEFSProvider
instead of environment variables?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vkamra This will be set in the config map and referred to as an environment variable. See https://github.com/kastenhq/k10/pull/13188
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh you mean as an input to create the Provider.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh you mean as an input to create the Provider.
Yep 👍
pkg/aws/aws.go
Outdated
ConfigEFSVaultName = "efsVaultName" | ||
// EfsBackupVaultNameEnv describes the environment variable used to set the | ||
// backup vault name. | ||
EfsBackupVaultNameEnv = "EFS_BACKUP_VAULT_NAME" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this one please
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why? That's how it will be referenced through K10?
pkg/blockstorage/awsefs/awsefs.go
Outdated
testMarker = "" | ||
efsType = "EFS" | ||
defaultK10BackupVaultName = "k10vault" | ||
testMarker = "" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's this? Should be removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should also be there. This is the default value in case it's set.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Change Overview
This lets the EFS backup vault name be configurable via an environment variable.
Pull request type
Please check the type of change your PR introduces:
Test Plan