Skip to content

Conversation

@modulitos
Copy link
Contributor

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.

"github.com/aws/amazon-eks-pod-identity-webhook/pkg/containercredentials"

corev1 "k8s.io/api/core/v1"
"sigs.k8s.io/yaml"
Copy link
Contributor Author

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
}

Copy link
Contributor Author

@modulitos modulitos Sep 13, 2024

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
}

Copy link
Contributor Author

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)

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.

1 participant