-
Notifications
You must be signed in to change notification settings - Fork 663
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'flytepropeller/prepare-for-monorepo' in…
…to prepare-monorepo Signed-off-by: Eduardo Apolinario <[email protected]>
- Loading branch information
Showing
1,214 changed files
with
146,864 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
vendor/* | ||
bin/* | ||
.github/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
name: Flytepropeller Checks | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
branches: | ||
- master | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
lint: | ||
name: Lint | ||
uses: flyteorg/flytetools/.github/workflows/lint.yml@master | ||
with: | ||
go-version: "1.19" | ||
|
||
tests: | ||
name: Unit Tests | ||
uses: flyteorg/flytetools/.github/workflows/tests.yml@master | ||
with: | ||
go-version: "1.19" | ||
secrets: | ||
FLYTE_BOT_PAT: ${{ secrets.FLYTE_BOT_PAT }} | ||
|
||
docker-build: | ||
name: Docker Build Images | ||
uses: flyteorg/flytetools/.github/workflows/docker_build.yml@master | ||
|
||
endtoend: | ||
name: End2End Test | ||
needs: [ docker-build ] | ||
uses: flyteorg/flytetools/.github/workflows/end2end.yml@master | ||
with: | ||
cache_key: ${{ needs.docker-build.outputs.cache_key }} | ||
priorities: "P0" | ||
|
||
integration: | ||
name: Integration Test | ||
needs: [ docker-build ] | ||
uses: flyteorg/flytetools/.github/workflows/integration.yml@master | ||
with: | ||
cache_key: ${{ needs.docker-build.outputs.cache_key }} | ||
go-version: "1.19" | ||
|
||
generate: | ||
name: Check Go Generate | ||
uses: flyteorg/flytetools/.github/workflows/go_generate.yml@master | ||
with: | ||
go-version: "1.19" | ||
|
||
bump_version: | ||
name: Bump Version | ||
if: ${{ github.event_name != 'pull_request' }} | ||
needs: [ endtoend, integration, lint, tests, generate ] # Only to ensure it can successfully build | ||
uses: flyteorg/flytetools/.github/workflows/bump_version.yml@master | ||
secrets: | ||
FLYTE_BOT_PAT: ${{ secrets.FLYTE_BOT_PAT }} | ||
|
||
goreleaser: | ||
name: Goreleaser | ||
needs: [ bump_version ] # Only to ensure it can successfully build | ||
uses: flyteorg/flytetools/.github/workflows/goreleaser.yml@master | ||
with: | ||
go-version: "1.19" | ||
secrets: | ||
FLYTE_BOT_PAT: ${{ secrets.FLYTE_BOT_PAT }} | ||
|
||
push_docker_image: | ||
name: Build & Push Flytepropeller Image | ||
needs: [ bump_version ] | ||
uses: flyteorg/flytetools/.github/workflows/publish.yml@master | ||
with: | ||
version: ${{ needs.bump_version.outputs.version }} | ||
dockerfile: Dockerfile | ||
push: true | ||
repository: ${{ github.repository }} | ||
secrets: | ||
FLYTE_BOT_PAT: ${{ secrets.FLYTE_BOT_PAT }} | ||
FLYTE_BOT_USERNAME: ${{ secrets.FLYTE_BOT_USERNAME }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
# For most projects, this workflow file will not need changing; you simply need | ||
# to commit it to your repository. | ||
# | ||
# You may wish to alter this file to override the set of languages analyzed, | ||
# or to provide custom queries or build logic. | ||
# | ||
# ******** NOTE ******** | ||
# We have attempted to detect the languages in your repository. Please check | ||
# the `language` matrix defined below to confirm you have the correct set of | ||
# supported CodeQL languages. | ||
# | ||
name: "CodeQL" | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
# The branches below must be a subset of the branches above | ||
branches: [ master ] | ||
schedule: | ||
- cron: '23 3 * * 6' | ||
|
||
jobs: | ||
analyze: | ||
name: Analyze | ||
runs-on: ubuntu-latest | ||
permissions: | ||
actions: read | ||
contents: read | ||
security-events: write | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
language: [ 'go' ] | ||
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ] | ||
# Learn more about CodeQL language support at https://git.io/codeql-language-support | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: '1.19' | ||
|
||
# Initializes the CodeQL tools for scanning. | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v1 | ||
with: | ||
languages: ${{ matrix.language }} | ||
# If you wish to specify custom queries, you can do so here or in a config file. | ||
# By default, queries listed here will override any specified in a config file. | ||
# Prefix the list here with "+" to use these queries and those in the config file. | ||
# queries: ./path/to/local/query, your-org/your-repo/queries@main | ||
|
||
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java). | ||
# If this step fails, then you should remove it and run the build manually (see below) | ||
- name: Autobuild | ||
uses: github/codeql-action/autobuild@v1 | ||
|
||
# ℹ️ Command-line programs to run using the OS shell. | ||
# 📚 https://git.io/JvXDl | ||
|
||
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines | ||
# and modify them (or add more) to build your code if your project | ||
# uses a compiled language | ||
|
||
#- run: | | ||
# make bootstrap | ||
# make release | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: releaser | ||
on: | ||
release: | ||
types: | ||
- published | ||
|
||
jobs: | ||
release-cli-via-krew: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Unshallow | ||
run: git fetch --prune --unshallow | ||
|
||
- name: Update new version in krew-index | ||
if: "!github.event.release.prerelease" | ||
uses: rajatjindal/[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Upgrade Automation | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
component: | ||
description: "Name of Flyte component" | ||
required: true | ||
default: "boilerplate" | ||
type: choice | ||
options: | ||
- boilerplate | ||
- flyteidl | ||
jobs: | ||
trigger-upgrade: | ||
name: ${{ github.event.inputs.component }} Upgrade | ||
uses: flyteorg/flytetools/.github/workflows/flyte_automation.yml@master | ||
with: | ||
component: ${{ github.event.inputs.component }} | ||
go-version: 1.19 | ||
secrets: | ||
FLYTE_BOT_PAT: ${{ secrets.FLYTE_BOT_PAT }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.idea | ||
vendor | ||
bin | ||
.DS_Store | ||
_test | ||
boilerplate/lyft/end2end/tmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# WARNING: THIS FILE IS MANAGED IN THE 'BOILERPLATE' REPO AND COPIED TO OTHER REPOSITORIES. | ||
# ONLY EDIT THIS FILE FROM WITHIN THE 'FLYTEORG/BOILERPLATE' REPOSITORY: | ||
# | ||
# TO OPT OUT OF UPDATES, SEE https://github.com/flyteorg/boilerplate/blob/master/Readme.rst | ||
|
||
run: | ||
skip-dirs: | ||
- pkg/client | ||
|
||
linters: | ||
disable-all: true | ||
enable: | ||
- deadcode | ||
- errcheck | ||
- gas | ||
- goconst | ||
- goimports | ||
- golint | ||
- gosimple | ||
- govet | ||
- ineffassign | ||
- misspell | ||
- nakedret | ||
- staticcheck | ||
- structcheck | ||
- typecheck | ||
- unconvert | ||
- unparam | ||
- unused | ||
- varcheck |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
project_name: kubectl-flyte | ||
before: | ||
hooks: | ||
- go mod download | ||
builds: | ||
- id: kubectl-flyte | ||
env: | ||
- CGO_ENABLED=0 | ||
main: ./cmd/kubectl-flyte/main.go | ||
binary: kubectl-flyte | ||
goos: | ||
- linux | ||
- windows | ||
- darwin | ||
ldflags: | ||
- -s -w -X github.com/lyft/flytepropeller/version.Version={{.Version}} -X github.com/lyft/flytepropeller/version.Build={{.ShortCommit}} -X github.com/lyft/flytepropeller/version.BuildTime={{.Date}} | ||
- id: flytepropeller | ||
env: | ||
- CGO_ENABLED=0 | ||
main: ./cmd/controller/main.go | ||
ldflags: | ||
- -s -w -X github.com/flyteorg/flytestdlib/version.Version={{.Version}} -X github.com/flyteorg/flytestdlib/version.Build={{.ShortCommit}} -X github.com/flyteorg/flytestdlib/version.BuildTime={{.Date}} | ||
|
||
binary: flytepropeller | ||
goos: | ||
- linux | ||
- windows | ||
- darwin | ||
archives: | ||
- id: kubectl-flyte-archive | ||
name_template: |- | ||
kubectl-flyte_{{ .Tag }}_{{ .Os }}_ | ||
{{- if eq .Arch "amd64" }}x86_64 | ||
{{- else if eq .Arch "386" }}i386 | ||
{{- else }}{{ .Arch }}{{ end }} | ||
builds: | ||
- kubectl-flyte | ||
format_overrides: | ||
- goos: windows | ||
format: zip | ||
- id: flytepropeller-archive | ||
name_template: |- | ||
flytepropeller_{{ .Tag }}_{{ .Os }}_ | ||
{{- if eq .Arch "amd64" }}x86_64 | ||
{{- else if eq .Arch "386" }}i386 | ||
{{- else }}{{ .Arch }}{{ end }} | ||
builds: | ||
- flytepropeller | ||
format_overrides: | ||
- goos: windows | ||
format: zip | ||
|
||
checksum: | ||
name_template: 'checksums.txt' | ||
changelog: | ||
sort: asc | ||
filters: | ||
exclude: | ||
- '^docs:' | ||
- '^test:' | ||
# scoop: | ||
# # Default is "https://github.com/<repo_owner>/<repo_name>/releases/download/{{ .Tag }}/{{ .ArtifactName }}" | ||
# # url_template: "http://github.mycompany.com/foo/bar/releases/{{ .Tag }}/{{ .ArtifactName }}" | ||
|
||
# # Repository to push the app manifest to. | ||
# bucket: | ||
# owner: lyft | ||
# name: flytepropeller | ||
|
||
# # Git author used to commit to the repository. | ||
# # Defaults are shown. | ||
# commit_author: | ||
# name: goreleaserbot | ||
# email: [email protected] | ||
|
||
# # Your app's homepage. | ||
# # Default is empty. | ||
# homepage: "https://godoc.org/github.com/lyft/flytepropeller" | ||
|
||
# # Your app's description. | ||
# # Default is empty. | ||
# description: "kubectl-flyte is an command line tool that can be used as an extension to kubectl" | ||
|
||
# # Your app's license | ||
# # Default is empty. | ||
# license: Apache-2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
apiVersion: krew.googlecontainertools.github.com/v1alpha2 | ||
kind: Plugin | ||
metadata: | ||
name: flyte | ||
spec: | ||
version: "{{ .TagName }}" | ||
homepage: https://github.com/flyteorg/flyte | ||
shortDescription: Monitor, launch and manage flyte executions | ||
description: | | ||
Kubectl-flyte can be used to manage workflows in a kubernetes cluster executed | ||
by FlytePropeller. Users can monitor, visualize executing workflows, delete or | ||
terminate executions in bulk, and dive into quota utilization for tenants. The | ||
tool allows users to launch yaml based Flyte workflows without FlyteAdmin. | ||
For more information about Flyte refer to https://flyte.org | ||
platforms: | ||
- selector: | ||
matchLabels: | ||
os: darwin | ||
arch: amd64 | ||
{{addURIAndSha "https://github.com/flyteorg/flytepropeller/releases/download/{{ .TagName }}/kubectl-flyte_{{ .TagName }}_darwin_x86_64.tar.gz" .TagName | indent 6}} | ||
files: | ||
- from: kubectl-flyte | ||
to: flyte | ||
- from: LICENSE | ||
to: . | ||
bin: flyte | ||
- selector: | ||
matchLabels: | ||
os: linux | ||
arch: amd64 | ||
{{addURIAndSha "https://github.com/flyteorg/flytepropeller/releases/download/{{ .TagName }}/kubectl-flyte_{{ .TagName }}_linux_x86_64.tar.gz" .TagName | indent 6}} | ||
files: | ||
- from: kubectl-flyte | ||
to: flyte | ||
- from: LICENSE | ||
to: . | ||
bin: flyte |
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# These owners will be the default owners for everything in | ||
# the repo. Unless a later match takes precedence. | ||
* @kumare3 @EngHabu @hamersaw |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
This project is governed by LF AI Foundation's [code of conduct](https://lfprojects.org/policies/code-of-conduct/). | ||
All contributors and participants agree to abide by its terms. |
Oops, something went wrong.