-
Notifications
You must be signed in to change notification settings - Fork 175
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 annotations parser #239
base: master
Are you sure you want to change the base?
Conversation
"os" | ||
"path/filepath" | ||
"strconv" | ||
"strings" | ||
"testing" | ||
|
||
"github.com/aws/amazon-eks-pod-identity-webhook/pkg/cache" | ||
"github.com/aws/amazon-eks-pod-identity-webhook/pkg/containercredentials" | ||
|
||
corev1 "k8s.io/api/core/v1" | ||
"sigs.k8s.io/yaml" |
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.
The changes in this file are just minor refactoring for better readability.
It's easier to view with whitespace diffs disabled:
https://github.com/aws/amazon-eks-pod-identity-webhook/pull/239/files?w=1
} | ||
return skippedNames | ||
} | ||
|
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 function has been moved to pkg/annotations/parser.go
(with some minor changes)
|
||
return tokenExpiration, containersToSkip | ||
} | ||
|
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 function has been moved to pkg/annotations/parser.go
(with some minor changes)
Issue #, if available:
#174
Description of changes:
This is preparatory refactoring, and a non-behavioral change.
There will be a followup PR to add annotations support for the new
service-account-lookup-grace-period
setting.By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.