forked from argoproj/argo-workflows
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add basic support for nix flakes (#21)
This adds a reproducible build environment for Argo Workflows. Argo Workflows can now be run in a few simple steps documented in the README.md. Why are there some go files changed here? This was the outcome of running gofmt on the sources, sources can be reformatted by running "nix fmt". Currently this only supports formatting golang and nix files but can be extended to anything supported via clang-format, prettier and more. See this for more info: https://numtide.github.io/treefmt/formatters/ The files.go stub was added, this is a bit more deterministic than copying at build time. This will also make caching easier. --------- Signed-off-by: Isitha Subasinghe <[email protected]>
- Loading branch information
1 parent
327313b
commit 924a8bc
Showing
11 changed files
with
3,037 additions
and
7 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
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
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,50 @@ | ||
rec { | ||
staticFiles = true; | ||
version = "latest"; | ||
env = { | ||
DEFAULT_REQUEUE_TIME = "1s"; | ||
SECURE = "false"; | ||
ALWAYS_OFFLOAD_NODE_STATUS = "false"; | ||
LOG_LEVEL = "debug"; | ||
UPPERIO_DB_DEBUG = "0"; | ||
IMAGE_NAMESPACE = "quay.io/pipekitdev"; | ||
VERSION = "${version}"; | ||
AUTH_MODE = "hybrid"; | ||
NAMESPACED = "true"; | ||
KUBE_NAMESPACE = "argo"; | ||
NAMESPACE = "${env.KUBE_NAMESPACE}"; | ||
MANAGED_NAMESPACE = "${env.KUBE_NAMESPACE}"; # same as kubeNamespace | ||
CTRL = "true"; | ||
LOGS = "true"; # same as CTRL - not acted upon | ||
UI = "true"; # same as CTRL | ||
API = "true"; # same as CTRL | ||
PLUGINS = "false"; | ||
}; | ||
controller = { | ||
env = { | ||
CTRL = "${env.CTRL}"; | ||
ARGO_EXECUTOR_PLUGINS = "${env.PLUGINS}"; | ||
ARGO_REMOVE_PVC_PROTECTION_FINALIZER = "true"; | ||
ARGO_PROGRESS_PATCH_TICK_DURATION = "7s"; | ||
DEFAULT_REQUEUE_TIME = "${env.DEFAULT_REQUEUE_TIME}"; | ||
LEADER_ELECTION_IDENTITY = "local"; | ||
ALWAYS_OFFLOAD_NODE_STATUS = "${env.ALWAYS_OFFLOAD_NODE_STATUS}"; | ||
OFFLOAD_NODE_STATUS_TTL = "30s"; | ||
WORKFLOW_GC_PERIOD = "30s"; | ||
UPPERIO_DB_DEBUG = "${env.UPPERIO_DB_DEBUG}"; | ||
ARCHIVED_WORKFLOW_GC_PERIOD = "30s"; | ||
}; | ||
args = "--executor-image ${env.IMAGE_NAMESPACE}/argoexec:${env.VERSION} --namespaced=${env.NAMESPACED} --managed-namespace=${env.MANAGED_NAMESPACE} --loglevel ${env.LOG_LEVEL}"; | ||
}; | ||
|
||
argoServer = { | ||
env = { | ||
UPPERIO_DB_DEBUG = "${env.UPPERIO_DB_DEBUG}"; | ||
}; | ||
args = "--loglevel ${env.LOG_LEVEL} server --namespaced=${env.NAMESPACED} --auth-mode ${env.AUTH_MODE} --secure=${env.SECURE} --x-frame-options=SAMEORIGIN"; | ||
}; | ||
ui = { | ||
env = { }; | ||
args = "--cwd ui start"; | ||
}; | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.