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

POC Piped v1 planner with plugin deployment interface #5074

Closed
wants to merge 35 commits into from

Conversation

khanhtc1202
Copy link
Member

@khanhtc1202 khanhtc1202 commented Jul 25, 2024

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #4980

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: khanhtc1202 <khanhtc1202@gmail.com>
ffjlabo and others added 10 commits July 25, 2024 18:51
Signed-off-by: Yoshiki Fujikane <ffjlabo@gmail.com>
Signed-off-by: Yoshiki Fujikane <ffjlabo@gmail.com>
Signed-off-by: Yoshiki Fujikane <ffjlabo@gmail.com>
Signed-off-by: Yoshiki Fujikane <ffjlabo@gmail.com>
Signed-off-by: Yoshiki Fujikane <ffjlabo@gmail.com>
Signed-off-by: Yoshiki Fujikane <ffjlabo@gmail.com>
Signed-off-by: khanhtc1202 <khanhtc1202@gmail.com>
* Register otel TracerProvider to send traces

Signed-off-by: Shinnosuke Sawada-Dazai <shin@warashi.dev>

* Bump gRPC version

Signed-off-by: Shinnosuke Sawada-Dazai <shin@warashi.dev>

* Upgrade google.golang.org/grpc

Signed-off-by: Shinnosuke Sawada-Dazai <shin@warashi.dev>

---------

Signed-off-by: Shinnosuke Sawada-Dazai <shin@warashi.dev>
Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>
Signed-off-by: khanhtc1202 <khanhtc1202@gmail.com>
Signed-off-by: khanhtc1202 <khanhtc1202@gmail.com>
Copy link

codecov bot commented Jul 29, 2024

Codecov Report

Attention: Patch coverage is 4.35897% with 373 lines in your changes missing coverage. Please review.

Project coverage is 22.67%. Comparing base (b9ffb09) to head (8b0c246).
Report is 24 commits behind head on master.

Files Patch % Lines
pkg/app/pipedv1/controller/planner.go 5.34% 299 Missing and 2 partials ⚠️
pkg/app/piped/cmd/piped/piped.go 0.00% 48 Missing ⚠️
pkg/app/pipedv1/controller/scheduler.go 0.00% 16 Missing ⚠️
pkg/app/piped/executor/ecs/ecs.go 0.00% 3 Missing ⚠️
pkg/app/piped/executor/lambda/lambda.go 0.00% 1 Missing ⚠️
pkg/app/piped/platformprovider/cloudrun/cache.go 0.00% 1 Missing ⚠️
pkg/app/piped/platformprovider/kubernetes/cache.go 0.00% 1 Missing ⚠️
pkg/app/pipedv1/controller/controller.go 0.00% 1 Missing ⚠️
pkg/app/pipedv1/deploysource/deploysource.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5074      +/-   ##
==========================================
- Coverage   22.80%   22.67%   -0.13%     
==========================================
  Files         410      409       -1     
  Lines       43382    43660     +278     
==========================================
+ Hits         9895     9902       +7     
- Misses      32709    32977     +268     
- Partials      778      781       +3     

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

khanhtc1202 and others added 4 commits July 29, 2024 16:56
Signed-off-by: khanhtc1202 <khanhtc1202@gmail.com>
* fix typo: aplication -> application

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* fix typo: put from -> put into

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* fix typo: to rolling out -> to roll out

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* fix: 'service manifest' -> 'lambda function manifest'

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

---------

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>
* fix available values of  SharedSSOConfig.provider

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* fix description of supported SSO services.

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

---------

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>
* Rename file referring to other platforms

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* Add ECS to live-state protobuf

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* Impl ECS APIs

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* Impl ECS's state.go

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* Fix the healthDescription because a task has two statuses

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* Add GetClusterTasks func

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* draft: add ecs store.go

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* Add ECSApplicationLiveState to ApplicationLiveStateSnapshot and gen code

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* Fix typo: ECSRun -> ECS

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* draft: reporter, model

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* remove applicationLister from ECS

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* Define blank funcs in Getter

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* impl NewStore, GetManifests, GetState, WaitForReady

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* Add GetTaskDefinition()

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* fix comment

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* Revert "Add GetTaskDefinition()"

This reverts commit cbac8ed.

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* Revert "Revert "Add GetTaskDefinition()""

This reverts commit 9304b16.

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* impl store.go

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* Impl ecs.go > Run()

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* impl ecs/report.go]

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* add switch case of ECS

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* fix livestatestore v1 for ecs

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* Add ecs/state_test.go

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* fix comments

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* remove comment

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* Remove TODO comment

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* Remove standalone tasks states

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* fix fetching ecs resources

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* Fix appId key in store: use appId tag

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* Remove validation of ApiVersion of ECS

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* Fix updatedAt of ECS Service to pass validation

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* Use VersionV1Beta1 for ECS states

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* Revert "Remove validation of ApiVersion of ECS"

This reverts commit e6b1ee6.

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* Fix comments

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* fix pipedv1

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* fix test: add apiversion, updatedat

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* remove comment-outed namespace

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* Export ECSResourceState

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* add ECSResourceHealthStatusIcon index.tsx

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* Add ECSResource index.tsx

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* Add ECSResourceDetail index.tsx

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* Add ECSStateView index.tsx

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* Add ECS as supported kind for livestate UI

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* Use ID for ResourceState of taskset and task

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* Fix nits: arrange import section

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* Fix graph

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* fix lint/web by `make lint/web FIX=true`

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* Remove ApiVersion & Namespace from ECSResourceState

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* Remove ApiVersion from ECSStateView

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* fix indent

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* [debug] add debug logs

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* add dummyApplicationLiveState of ecs

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* Revert "[debug] add debug logs"

This reverts commit 7926720.

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

---------

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>
ffjlabo and others added 10 commits July 30, 2024 06:41
Signed-off-by: Yoshiki Fujikane <ffjlabo@gmail.com>
… as much as possible (#5096)

Signed-off-by: Yoshiki Fujikane <ffjlabo@gmail.com>
Signed-off-by: khanhtc1202 <khanhtc1202@gmail.com>
* Fix 'ImageURI' -> 'Image'

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* Fix field names from UpperCamelCase to lowerCamelCase

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* Fix link title: 'Configuration' -> 'Configuring'

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* Move link of 'Configuring Lambda application' to function.yaml area

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* Fix field names from UpperCamelCase to lowerCamelCase: v0.46.x

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* fix 'IDs' -> 'Ids'

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* Fix Required values and add explanation

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* Fix header levels under function.yaml

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* fix '[[]Architecture]' to '[][Architecture]'

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* Fix 'sourceCode' to 'source', although its type name is SourceCode in function.go

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

---------

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: t-kikuc <97105818+t-kikuc@users.noreply.github.com>
Bumps [postcss](https://github.com/postcss/postcss) from 7.0.39 to 8.4.40.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](postcss/postcss@7.0.39...8.4.40)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…mpatible (#5097)

* Bump github.com/docker/docker

Bumps [github.com/docker/docker](https://github.com/docker/docker) from 24.0.9+incompatible to 26.1.4+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](moby/moby@v24.0.9...v26.1.4)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* Manually update docker/cli to pass the tests build errors

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

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: khanhtc1202 <khanhtc1202@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: khanhtc1202 <khanhtc1202@gmail.com>
Signed-off-by: Yoshiki Fujikane <ffjlabo@gmail.com>
Signed-off-by: Yoshiki Fujikane <ffjlabo@gmail.com>
* Use LRUCache for Application Manifests Cache

Signed-off-by: Shinnosuke Sawada-Dazai <shin@warashi.dev>

* Use not constant but config value

Co-authored-by: Yoshiki Fujikane <40124947+ffjlabo@users.noreply.github.com>
Signed-off-by: Shinnosuke Sawada-Dazai <shin@warashi.dev>

---------

Signed-off-by: Shinnosuke Sawada-Dazai <shin@warashi.dev>
Co-authored-by: Yoshiki Fujikane <40124947+ffjlabo@users.noreply.github.com>
khanhtc1202 and others added 9 commits August 5, 2024 10:00
Signed-off-by: khanhtc1202 <khanhtc1202@gmail.com>
Signed-off-by: khanhtc1202 <khanhtc1202@gmail.com>
Signed-off-by: khanhtc1202 <khanhtc1202@gmail.com>
Signed-off-by: khanhtc1202 <khanhtc1202@gmail.com>
Signed-off-by: khanhtc1202 <khanhtc1202@gmail.com>
Signed-off-by: khanhtc1202 <khanhtc1202@gmail.com>
Signed-off-by: khanhtc1202 <khanhtc1202@gmail.com>
…c-pipedv1-planner

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

github-actions bot commented Aug 5, 2024

RELEASE

No GitHub releases will be created one this pull request got merged. Because the following tags were already created before.

  • v0.48.4

@khanhtc1202 khanhtc1202 closed this Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Plugin architectured piped (pipedv1) supports deployment for applications
4 participants