-
Notifications
You must be signed in to change notification settings - Fork 0
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
merge secretrefs and configrefs into single list #81
Conversation
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.
Mostly looking good, just nits. generally looking good
0878b2d
to
e6d4fd4
Compare
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.
Just one question on the Spec for the API, apart from that LGTM
# Conflicts: # api/v1alpha1/component_types.go # Conflicts: # api/v1alpha1/common_types.go # Conflicts: # api/v1alpha1/ocmrepository_types.go # config/crd/bases/delivery.ocm.software_ocmrepositories.yaml
The propagation policy now is defaulted through a kubebuilder directive which makes this logic redundant.
The GetEffectiveOCMConfig() is merely a getter, which is much more easy and stable to maintain in our public API.
4f76ac4
to
89f8f66
Compare
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,
@frewilhelm PTAL
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.
only a preliminary review..
What this PR does / why we need it
This PR merges config ref and secret ref into a single list and exchanges the implicit defaulting mechanism (implicitly inheriting the configuration of the previous object in the pipeline - e.g. component inherits from repository) with an explicit mechanism.
Merging into single list
The order in which the configuration is applied is relevant. This becomes confusing and cumbersome with two separate lists and additional mechanisms would be needed.
Changing the defaulting mechanism
Which issue(s) this PR fixes
#80