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

Refactor LocalSecretStore #1260

Merged
merged 1 commit into from
Dec 4, 2020
Merged

Refactor LocalSecretStore #1260

merged 1 commit into from
Dec 4, 2020

Conversation

pleshakov
Copy link
Contributor

Proposed changes

  • Move LocalSecretStore, SecretReference, secret validation
    to a new internal/k8s/secrets package
  • Refactor GetSecret into GetSecretReference

- Move LocalSecretStore, SecretReference, secret validation
to a new internal/k8s/secrets package
- Refactor GetSecret into GetSecretReference
secretType, secretPath, err := lbc.secretStore.GetSecret(secretKey)
if err != nil {
glog.Warningf("Error trying to get the secret %v for Ingress %v: %v", secretName, ing.Name, err)
secretRef := lbc.secretStore.GetSecretReference(secretKey)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice change Michael!

Copy link

@mikestephen mikestephen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice changes!

@pleshakov pleshakov merged commit 788477a into master Dec 4, 2020
@pleshakov pleshakov deleted the refactor-localsecretstore branch December 4, 2020 17:39
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.

3 participants