Skip to content
This repository was archived by the owner on Oct 9, 2023. It is now read-only.

Commit 92cd1b7

Browse files
authored
Updating PodTemplateStore API (#516)
* updated pod template store handling Signed-off-by: Daniel Rammer <[email protected]> * updated flyteidl Signed-off-by: Daniel Rammer <[email protected]> * updating flyteplugins Signed-off-by: Daniel Rammer <[email protected]> * updated flyteidl and flyteplugins versions Signed-off-by: Daniel Rammer <[email protected]> * updated flyteidl and flyteplugins Signed-off-by: Daniel Rammer <[email protected]> * bumping go version to 1.19 Signed-off-by: Daniel Rammer <[email protected]> * fixed linter Signed-off-by: Daniel Rammer <[email protected]> * bumping setup-go action Signed-off-by: Daniel Rammer <[email protected]> * using different flytetools branch Signed-off-by: Daniel Rammer <[email protected]> * fixed go generate Signed-off-by: Daniel Rammer <[email protected]> * using master branch of flytetools Signed-off-by: Daniel Rammer <[email protected]> * removed secrets from unit tests Signed-off-by: Daniel Rammer <[email protected]> * maybe surround go-version in quotes Signed-off-by: Daniel Rammer <[email protected]> * specific 1.19.5 version Signed-off-by: Daniel Rammer <[email protected]> * moved go-version before secrets Signed-off-by: Daniel Rammer <[email protected]> * OMG Signed-off-by: Daniel Rammer <[email protected]> * updated flyte deps Signed-off-by: Daniel Rammer <[email protected]> --------- Signed-off-by: Daniel Rammer <[email protected]>
1 parent 2014630 commit 92cd1b7

File tree

18 files changed

+122
-308
lines changed

18 files changed

+122
-308
lines changed

.github/workflows/checks.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ jobs:
1414
name: Lint
1515
uses: flyteorg/flytetools/.github/workflows/lint.yml@master
1616
with:
17-
go-version: 1.18
17+
go-version: "1.19"
1818

1919
tests:
2020
name: Unit Tests
2121
uses: flyteorg/flytetools/.github/workflows/tests.yml@master
22+
with:
23+
go-version: "1.19"
2224
secrets:
2325
FLYTE_BOT_PAT: ${{ secrets.FLYTE_BOT_PAT }}
24-
with:
25-
go-version: 1.18
2626

2727
docker-build:
2828
name: Docker Build Images
@@ -42,13 +42,13 @@ jobs:
4242
uses: flyteorg/flytetools/.github/workflows/integration.yml@master
4343
with:
4444
cache_key: ${{ needs.docker-build.outputs.cache_key }}
45-
go-version: 1.18
45+
go-version: "1.19"
4646

4747
generate:
4848
name: Check Go Generate
4949
uses: flyteorg/flytetools/.github/workflows/go_generate.yml@master
5050
with:
51-
go-version: 1.18
51+
go-version: "1.19"
5252

5353
bump_version:
5454
name: Bump Version
@@ -63,7 +63,7 @@ jobs:
6363
needs: [ bump_version ] # Only to ensure it can successfully build
6464
uses: flyteorg/flytetools/.github/workflows/goreleaser.yml@master
6565
with:
66-
go-version: 1.18
66+
go-version: "1.19"
6767
secrets:
6868
FLYTE_BOT_PAT: ${{ secrets.FLYTE_BOT_PAT }}
6969

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ jobs:
3838

3939
steps:
4040
- name: Checkout repository
41-
uses: actions/checkout@v2
41+
uses: actions/checkout@v3
4242

43-
- uses: actions/setup-go@v2
43+
- uses: actions/setup-go@v3
4444
with:
45-
go-version: '1.18'
45+
go-version: '1.19'
4646

4747
# Initializes the CodeQL tools for scanning.
4848
- name: Initialize CodeQL

.github/workflows/upgrade_automation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ jobs:
1616
uses: flyteorg/flytetools/.github/workflows/flyte_automation.yml@master
1717
with:
1818
component: ${{ github.event.inputs.component }}
19-
go-version: 1.18
19+
go-version: 1.19
2020
secrets:
2121
FLYTE_BOT_PAT: ${{ secrets.FLYTE_BOT_PAT }}

go.mod

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
module github.com/flyteorg/flytepropeller
22

3-
go 1.18
3+
go 1.19
44

55
require (
66
github.com/DiSiqueira/GoTree v1.0.1-0.20180907134536-53a8e837f295
77
github.com/benlaurie/objecthash v0.0.0-20180202135721-d1e3d6079fc1
88
github.com/fatih/color v1.13.0
9-
github.com/flyteorg/flyteidl v1.3.4
10-
github.com/flyteorg/flyteplugins v1.0.28
11-
github.com/flyteorg/flytestdlib v1.0.11
9+
github.com/flyteorg/flyteidl v1.3.6
10+
github.com/flyteorg/flyteplugins v1.0.34
11+
github.com/flyteorg/flytestdlib v1.0.15
1212
github.com/ghodss/yaml v1.0.0
1313
github.com/go-redis/redis v6.15.7+incompatible
1414
github.com/go-test/deep v1.0.7

go.sum

Lines changed: 9 additions & 195 deletions
Large diffs are not rendered by default.

manager/config/shardtype_enumer.go

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

manager/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ FlytePropeller Manager is configured at the root of the FlytePropeller configurt
1616
1717
FlytePropeller Manager handles dynamic updates to both the k8s PodTemplate and shard configuration. The k8s PodTemplate resource has an associated resource version which uniquely identifies changes. Additionally, shard configuration modifications may be tracked using a simple hash. Flyte stores these values as annotations on managed FlytePropeller instances. Therefore, if either of there values change the FlytePropeller Manager instance will detect it and perform the necessary deployment updates.
1818
19-
Shard Strategies
19+
# Shard Strategies
2020
2121
Flyte defines a variety of Shard Strategies for configuring how FlyteWorkflows are sharded. These options may include the shard type (ex. hash, project, or domain) along with the number of shards or the distribution of project / domain IDs over shards.
2222

pkg/compiler/builders.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
c "github.com/flyteorg/flytepropeller/pkg/compiler/common"
88
)
99

10-
type flyteTask = core.TaskTemplate
10+
type flyteTask = core.TaskTemplate //nolint:unused
1111
type flyteWorkflow = core.CompiledWorkflow
1212
type flyteNode = core.Node
1313

pkg/compiler/workflow_compiler.go

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,30 @@
55
// 2) Call CompileWorkflow(...) and make sure it reports no errors.
66
// 3) Use one of the transformer packages (e.g. transformer/k8s) to build the final executable workflow.
77
//
8-
// +-------------------+
9-
// | start(StartNode) |
10-
// +-------------------+
11-
// |
12-
// | wf_input
13-
// v
14-
// +--------+ +-------------------+
15-
// | static | --> | node_1(TaskNode) |
16-
// +--------+ +-------------------+
17-
// | |
18-
// | | x
19-
// | v
20-
// | +-------------------+
21-
// +----------> | node_2(TaskNode) |
22-
// +-------------------+
23-
// |
24-
// | n2_output
25-
// v
26-
// +-------------------+
27-
// | end(EndNode) |
28-
// +-------------------+
29-
// +-------------------+
30-
// | Workflow Id: repo |
31-
// +-------------------+
8+
// +-------------------+
9+
// | start(StartNode) |
10+
// +-------------------+
11+
// |
12+
// | wf_input
13+
// v
14+
// +--------+ +-------------------+
15+
// | static | --> | node_1(TaskNode) |
16+
// +--------+ +-------------------+
17+
// | |
18+
// | | x
19+
// | v
20+
// | +-------------------+
21+
// +----------> | node_2(TaskNode) |
22+
// +-------------------+
23+
// |
24+
// | n2_output
25+
// v
26+
// +-------------------+
27+
// | end(EndNode) |
28+
// +-------------------+
29+
// +-------------------+
30+
// | Workflow Id: repo |
31+
// +-------------------+
3232
package compiler
3333

3434
import (

pkg/controller/composite_workqueue.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ import (
1414
)
1515

1616
// A CompositeWorkQueue can be used in cases where the work is enqueued by two sources. It can be enqueued by either
17-
// 1. Informer for the Primary Object itself. In case of FlytePropeller, this is the workflow object
18-
// 2. Informer or any other process that enqueues the top-level object for re-evaluation in response to one of the
19-
// sub-objects being ready. In the case of FlytePropeller this is the "Node/Task" updates, will re-enqueue the workflow
20-
// to be re-evaluated
17+
// 1. Informer for the Primary Object itself. In case of FlytePropeller, this is the workflow object
18+
// 2. Informer or any other process that enqueues the top-level object for re-evaluation in response to one of the
19+
// sub-objects being ready. In the case of FlytePropeller this is the "Node/Task" updates, will re-enqueue the workflow
20+
// to be re-evaluated
2121
type CompositeWorkQueue interface {
2222
workqueue.RateLimitingInterface
2323
// Specialized interface that should be called to start the migration of work from SubQueue to primaryQueue

0 commit comments

Comments
 (0)