Skip to content

[ECS] Enabled to configure/update PropagateTags and EnableECSManagedTags #5425

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

Merged
merged 5 commits into from
Dec 17, 2024

Conversation

t-kikuc
Copy link
Member

@t-kikuc t-kikuc commented Dec 16, 2024

What this PR does:

  1. Enabled to configure PropagateTags of Service on creating, not the default SERVICE.
  2. Enabled to update PropagateTags and EnableECSManagedTags of Service

Why we need it:

  • for 1: We don't need to force SERVICE for PropagateTags.

    • We don't have to propagate tags from a Service to Tasks.
    • That's because PipeCD managed tags of Tasks are NOT used.
      • Those of Services and TaskSets are used. They are explicitly attached in the code.
    • cf. It's introduced in Add pipecd builtin tags to ECS resources #4140.
  • for 2: There's no reason to prevent updating PropagateTags and EnableECSManagedTags.

    • EnableECSManagedTags has NO effect on PipeCD managed tags.

Which issue(s) this PR 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):

Copy link

codecov bot commented Dec 16, 2024

Codecov Report

Attention: Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.

Project coverage is 25.96%. Comparing base (0e4fbc0) to head (5d574ae).
Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
pkg/app/piped/platformprovider/ecs/client.go 0.00% 3 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5425   +/-   ##
=======================================
  Coverage   25.95%   25.96%           
=======================================
  Files         451      451           
  Lines       48799    48801    +2     
=======================================
+ Hits        12665    12669    +4     
+ Misses      35127    35126    -1     
+ Partials     1007     1006    -1     

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

Copy link
Member

@ffjlabo ffjlabo left a comment

Choose a reason for hiding this comment

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

👍

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.

Thank you 👍

@t-kikuc t-kikuc merged commit d38cc20 into master Dec 17, 2024
17 of 18 checks passed
@t-kikuc t-kikuc deleted the ecs-propagate-tag branch December 17, 2024 02:41
@github-actions github-actions bot mentioned this pull request Jan 21, 2025
github-actions bot pushed a commit that referenced this pull request Jan 21, 2025
…edTags` (#5425)

* Enable updating PropagateTags and specifying other than SERVICE

Signed-off-by: t-kikuc <[email protected]>

* Enable updating EnableECSManagedTags

Signed-off-by: t-kikuc <[email protected]>

* Remove default PropagateTags: unnecessary

Signed-off-by: t-kikuc <[email protected]>

* support propagateTags other than SERVICE

Signed-off-by: t-kikuc <[email protected]>

---------

Signed-off-by: t-kikuc <[email protected]>
Signed-off-by: pipecd-bot <[email protected]>
Warashi added a commit that referenced this pull request Jan 21, 2025
* [ECS] Support 5 missing fields in TaskDefinition (#5424)

* Add missing fields in RegisterTaskDef

Signed-off-by: t-kikuc <[email protected]>

* remove two restrictions

Signed-off-by: t-kikuc <[email protected]>

---------

Signed-off-by: t-kikuc <[email protected]>
Signed-off-by: pipecd-bot <[email protected]>

* [ECS] Enabled to configure/update `PropagateTags` and `EnableECSManagedTags` (#5425)

* Enable updating PropagateTags and specifying other than SERVICE

Signed-off-by: t-kikuc <[email protected]>

* Enable updating EnableECSManagedTags

Signed-off-by: t-kikuc <[email protected]>

* Remove default PropagateTags: unnecessary

Signed-off-by: t-kikuc <[email protected]>

* support propagateTags other than SERVICE

Signed-off-by: t-kikuc <[email protected]>

---------

Signed-off-by: t-kikuc <[email protected]>
Signed-off-by: pipecd-bot <[email protected]>

* Enhance logging in EventWatcher (#5443)

* Add logger.Error() before returning for detailed logs

Signed-off-by: t-kikuc <[email protected]>

* Enhance error logging in event watcher with additional context for push and commit failures

Signed-off-by: t-kikuc <[email protected]>

---------

Signed-off-by: t-kikuc <[email protected]>
Signed-off-by: pipecd-bot <[email protected]>

* fixed to certainly store the startTime (#5461)

Signed-off-by: t-kikuc <[email protected]>
Signed-off-by: pipecd-bot <[email protected]>

* Add default envs in ScriptRunStage: SR_TRIGGERED_COMMANDER, SR_IS_ROLLBACK (#5464)

* Add TriggeredCommandar

Signed-off-by: t-kikuc <[email protected]>

* add isRollback

Signed-off-by: t-kikuc <[email protected]>

* update docs

Signed-off-by: t-kikuc <[email protected]>

* fix name->id

Signed-off-by: t-kikuc <[email protected]>

* fix env name

Signed-off-by: t-kikuc <[email protected]>

* fix: specify isRollback since deployment.Status is always Planned

Signed-off-by: t-kikuc <[email protected]>

* fix typo

Signed-off-by: t-kikuc <[email protected]>

* Add case of `pipectl sync`

Signed-off-by: t-kikuc <[email protected]>

---------

Signed-off-by: t-kikuc <[email protected]>
Signed-off-by: pipecd-bot <[email protected]>

* Release v0.50.1 (#5498)

Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]>
Signed-off-by: pipecd-bot <[email protected]>

---------

Signed-off-by: t-kikuc <[email protected]>
Signed-off-by: pipecd-bot <[email protected]>
Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]>
Co-authored-by: Tetsuya KIKUCHI <[email protected]>
Co-authored-by: Shinnosuke Sawada-Dazai <[email protected]>
@github-actions github-actions bot mentioned this pull request Mar 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants