-
Notifications
You must be signed in to change notification settings - Fork 12
Registry cache implementation: add a property to the Runtime CR that enables the cache #886
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
Conversation
) | ||
|
||
func getRegistryCache(ctx context.Context, s *systemState, m *fsm) ([]v1beta1.RegistryCache, error) { | ||
getSecretFunc := func() (v1.Secret, error) { |
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.
Can we either
- modify
getRegistryCache
function signature and passgetSecretFunc
function as argument or - limit arguments just to
Client
,Labels
andNamespace
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.
I just got rid of getSecretFunc
as it is not needed for now (and probably won't be).
kubeconfigSecretKey = "config" | ||
) | ||
|
||
// TODO: Use this function in the Runtime Controller's FSM |
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.
Lets investigate it
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.
FSM states for OIDC, and RBAC use a function that is defined in the fsm
package. In the next steps I will refactor this to use the function from the github.com/kyma-project/infrastructure-manager/pkg/gardener
package.
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
Merging this branch changes the coverage (2 decrease, 1 increase)
Coverage by fileChanged files (no unit tests)
Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code. Changed unit test files
|
Description
Changes proposed in this pull request:
spec.imageRegistryCache.enabled
property addedspec.imageRegistryCache.enabled
is true registry config extension is configured based on the settings from CustomConfig CRRelated issue(s)
#635