Skip to content
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

fix: update function configuration #4560

Merged

Conversation

sivchari
Copy link
Member

What this PR does / why we need it:

@khanhtc1202
I'm so sorry, update function configuration has been already defined and called. So I deleted my changes.
And I fixed order to call UpdateFunctionCode and UpdateFunctionConfiguration. Because UpdateFunctionConfiguration is failed, if Lambda state is pending.

Which issue(s) this PR fixes:

Fixes #

Does this PR introduce a user-facing change?:

  • How are users affected by this change:
  • Is this breaking change:
  • How to migrate (if breaking change):

Signed-off-by: sivchari <shibuuuu5@gmail.com>
Comment on lines 275 to 278
VpcConfig: &types.VpcConfig{
SecurityGroupIds: fm.Spec.VPCConfig.SecurityGroupIDs,
SubnetIds: fm.Spec.VPCConfig.SubnetIDs,
},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should check nullity for fm.Spec.VPCConfig before call to its fields

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I fixed it.

Signed-off-by: sivchari <shibuuuu5@gmail.com>
@codecov
Copy link

codecov bot commented Aug 24, 2023

Codecov Report

Patch coverage has no change and project coverage change: +0.01% 🎉

Comparison is base (801a7c6) 29.91% compared to head (969fdde) 29.93%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4560      +/-   ##
==========================================
+ Coverage   29.91%   29.93%   +0.01%     
==========================================
  Files         220      220              
  Lines       25873    25871       -2     
==========================================
+ Hits         7741     7745       +4     
+ Misses      17484    17478       -6     
  Partials      648      648              
Files Changed Coverage Δ
pkg/app/piped/platformprovider/lambda/client.go 4.73% <0.00%> (+0.02%) ⬆️

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@khanhtc1202 khanhtc1202 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch, thank you 👏

@khanhtc1202 khanhtc1202 merged commit 1d26fe2 into pipe-cd:master Aug 24, 2023
12 of 13 checks passed
@github-actions github-actions bot mentioned this pull request Aug 24, 2023
khanhtc1202 pushed a commit that referenced this pull request Aug 24, 2023
* fix: update function configuration

Signed-off-by: sivchari <shibuuuu5@gmail.com>

* update: check if vpc is non-nil

Signed-off-by: sivchari <shibuuuu5@gmail.com>

---------

Signed-off-by: sivchari <shibuuuu5@gmail.com>
khanhtc1202 pushed a commit that referenced this pull request Aug 24, 2023
* fix: update function configuration

Signed-off-by: sivchari <shibuuuu5@gmail.com>

* update: check if vpc is non-nil

Signed-off-by: sivchari <shibuuuu5@gmail.com>

---------

Signed-off-by: sivchari <shibuuuu5@gmail.com>
khanhtc1202 added a commit that referenced this pull request Aug 24, 2023
* fix: update function configuration (#4560)

* fix: update function configuration

Signed-off-by: sivchari <shibuuuu5@gmail.com>

* update: check if vpc is non-nil

Signed-off-by: sivchari <shibuuuu5@gmail.com>

---------

Signed-off-by: sivchari <shibuuuu5@gmail.com>

* Release v0.45.2 (#4561)

Signed-off-by: khanhtc1202 <khanhtc1202@gmail.com>

---------

Signed-off-by: sivchari <shibuuuu5@gmail.com>
Signed-off-by: khanhtc1202 <khanhtc1202@gmail.com>
Co-authored-by: sivchari <shibuuuu5@gmail.com>
tokku5552 pushed a commit to tokku5552/pipecd that referenced this pull request Aug 25, 2023
* fix: update function configuration

Signed-off-by: sivchari <shibuuuu5@gmail.com>

* update: check if vpc is non-nil

Signed-off-by: sivchari <shibuuuu5@gmail.com>

---------

Signed-off-by: sivchari <shibuuuu5@gmail.com>
Signed-off-by: 徳田 真之介 <tokuda_shinnosuke@cyberagent.co.jp>
sZma5a pushed a commit to sZma5a/pipecd that referenced this pull request Aug 27, 2023
* fix: update function configuration

Signed-off-by: sivchari <shibuuuu5@gmail.com>

* update: check if vpc is non-nil

Signed-off-by: sivchari <shibuuuu5@gmail.com>

---------

Signed-off-by: sivchari <shibuuuu5@gmail.com>
Signed-off-by: sZma5a <masaaki.haribote@gmail.com>
moko-poi pushed a commit to moko-poi/pipecd that referenced this pull request Nov 3, 2023
* fix: update function configuration

Signed-off-by: sivchari <shibuuuu5@gmail.com>

* update: check if vpc is non-nil

Signed-off-by: sivchari <shibuuuu5@gmail.com>

---------

Signed-off-by: sivchari <shibuuuu5@gmail.com>
Signed-off-by: moko-poi <mokopoi44@gmail.com>
@github-actions github-actions bot mentioned this pull request Dec 1, 2023
@github-actions github-actions bot mentioned this pull request Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants