-
Notifications
You must be signed in to change notification settings - Fork 225
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
update functionConfigs during render #3228
Conversation
@mengqiy @natasha41575 Can you pl. review this PR. Thanks. |
I'm not sure if I understood this correctly. Before beta15, if the functionConfig is in the same directory alongside with other input resources, the functionConfig will be included in |
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
exitCode: 0 |
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 is the default and it can be removed.
So this file can be removed.
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.
@@ -0,0 +1,21 @@ | |||
# app-example |
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.
It seems this file is just a template without much useful information. Should we remove 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.
Removed 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.
Thanks for the review. Was able to root cause the issue and resolved it.
Pl. take a look.
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
exitCode: 0 |
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.
@@ -0,0 +1,21 @@ | |||
# app-example |
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.
Removed it.
No. If the functionConfig resides outside the package, it will not be included. User can still point to an outside functionConfig in |
514e283
to
5ea9e1d
Compare
Thanks for root causing the issue related to |
5ea9e1d
to
7027b9d
Compare
This example (https://github.com/GoogleContainerTools/kpt-functions-catalog/tree/master/examples/upsert-resource-simple) is broken with the latest kpt built from HEAD. e.g. https://github.com/GoogleContainerTools/kpt-functions-catalog/runs/6630134377?check_suite_focus=true#step:7:841 |
upsert-resource example (https://github.com/GoogleContainerTools/kpt-functions-catalog/tree/master/examples/upsert-resource-simple) is broken due to this change. The CI in the catalog repo is failing because of that. |
Sorry, couldn't get to it yet. Will take a look at it today. |
kpt v1.0.0-beta15+
onwardsfunctionConfigs
are included in the function inputs by default duringrender
. Before this change, functionConfigs were read from the filesystem once before rendering the pipeline and changes to functionConfigs during therender
were ignored. This change ensures thatfunctionConfigs
are now updated for a function during rendering.