-
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
chore: add v1 version lifecycle CRDs #8119
Conversation
387ddcb
to
3a36b9f
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8119 +/- ##
==========================================
- Coverage 62.47% 61.29% -1.18%
==========================================
Files 333 359 +26
Lines 40681 41291 +610
==========================================
- Hits 25417 25311 -106
- Misses 12986 13740 +754
+ Partials 2278 2240 -38
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
3a36b9f
to
31075f0
Compare
Keys: spec.Keys, | ||
ConfigConstraintRef: spec.ConfigConstraintRef, | ||
AsEnvFrom: spec.AsEnvFrom, | ||
InjectEnvTo: spec.InjectEnvTo, |
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.
Reminder: #8115 conflicts with this function (and the following function).
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 the copier package help?
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.
Have a try to it, the error handling introduced by copier is too cumbersome.
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 think we could implement our owned object conversion utility by using json encoding and decoding, to replace the usage of the copier package (including usages for the API conversion). The copier package feels like a complicated black box and it's hard to figure out how it actually behaves.
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.
#8115 has been merged into main.
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.
Merged
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.
Merged
That PR introduced a new field ComponentConfigSpec.AsSecret
, which should be copied here.
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.
done
} | ||
} | ||
|
||
func (r *ComponentDefinition) toV1LifecycleAction(action *Action) *appsv1.Action { |
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 method can be defined as a free function (without the receiver r
).
but it's not a big deal anyway.
31075f0
to
6fae3db
Compare
/approve |
No description provided.