Skip to content

Commit

Permalink
feat: new major v2 release
Browse files Browse the repository at this point in the history
Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
  • Loading branch information
ilya-lesikov committed Apr 21, 2024
1 parent c6e39bf commit e15cf3c
Show file tree
Hide file tree
Showing 479 changed files with 1,530 additions and 1,530 deletions.
2 changes: 1 addition & 1 deletion Taskfile.dist.yaml
Expand Up @@ -17,7 +17,7 @@ vars:
mode: '{{ternary "cgo" "go" (eq .os "linux")}}'
devBinary: './bin/werf{{if (eq .targetOS "windows")}}.exe{{end}}'
withCoverageBinary: './bin/werf-with-coverage{{if (eq .targetOS "windows")}}.exe{{end}}'
package: "github.com/werf/werf/cmd/werf"
package: "github.com/werf/werf/v2/cmd/werf"

cgoTags: "dfrunsecurity dfrunnetwork dfrunmount dfssh containers_image_openpgp osusergo exclude_graphdriver_devicemapper netgo no_devmapper static_build cni"
cgoDevLDFlags: "-linkmode external -extldflags=-static"
Expand Down
4 changes: 2 additions & 2 deletions cmd/buildah-test/main.go
Expand Up @@ -10,8 +10,8 @@ import (

"github.com/opencontainers/runtime-spec/specs-go"

"github.com/werf/werf/pkg/buildah"
"github.com/werf/werf/pkg/werf"
"github.com/werf/werf/v2/pkg/buildah"
"github.com/werf/werf/v2/pkg/werf"
)

var errUsage = errors.New(`
Expand Down
2 changes: 1 addition & 1 deletion cmd/werf/build/build_docs.go
@@ -1,6 +1,6 @@
package build

import "github.com/werf/werf/cmd/werf/docs/structs"
import "github.com/werf/werf/v2/cmd/werf/docs/structs"

func GetBuildDocs() structs.DocsStruct {
var docs structs.DocsStruct
Expand Down
28 changes: 14 additions & 14 deletions cmd/werf/build/main.go
Expand Up @@ -7,20 +7,20 @@ import (
"github.com/spf13/cobra"

"github.com/werf/logboek"
"github.com/werf/werf/cmd/werf/common"
"github.com/werf/werf/pkg/build"
"github.com/werf/werf/pkg/container_backend"
"github.com/werf/werf/pkg/git_repo"
"github.com/werf/werf/pkg/git_repo/gitdata"
"github.com/werf/werf/pkg/giterminism_manager"
"github.com/werf/werf/pkg/image"
"github.com/werf/werf/pkg/ssh_agent"
"github.com/werf/werf/pkg/storage/lrumeta"
"github.com/werf/werf/pkg/storage/manager"
"github.com/werf/werf/pkg/tmp_manager"
"github.com/werf/werf/pkg/true_git"
"github.com/werf/werf/pkg/werf"
"github.com/werf/werf/pkg/werf/global_warnings"
"github.com/werf/werf/v2/cmd/werf/common"
"github.com/werf/werf/v2/pkg/build"
"github.com/werf/werf/v2/pkg/container_backend"
"github.com/werf/werf/v2/pkg/git_repo"
"github.com/werf/werf/v2/pkg/git_repo/gitdata"
"github.com/werf/werf/v2/pkg/giterminism_manager"
"github.com/werf/werf/v2/pkg/image"
"github.com/werf/werf/v2/pkg/ssh_agent"
"github.com/werf/werf/v2/pkg/storage/lrumeta"
"github.com/werf/werf/v2/pkg/storage/manager"
"github.com/werf/werf/v2/pkg/tmp_manager"
"github.com/werf/werf/v2/pkg/true_git"
"github.com/werf/werf/v2/pkg/werf"
"github.com/werf/werf/v2/pkg/werf/global_warnings"
)

var commonCmdData common.CmdData
Expand Down
22 changes: 11 additions & 11 deletions cmd/werf/bundle/apply/apply.go
Expand Up @@ -41,17 +41,17 @@ import (
"github.com/werf/nelm/pkg/rlshistor"
"github.com/werf/nelm/pkg/track"
"github.com/werf/nelm/pkg/utls"
"github.com/werf/werf/cmd/werf/common"
"github.com/werf/werf/pkg/deploy/bundles"
"github.com/werf/werf/pkg/deploy/helm"
"github.com/werf/werf/pkg/deploy/helm/chart_extender"
"github.com/werf/werf/pkg/deploy/helm/chart_extender/helpers"
"github.com/werf/werf/pkg/deploy/helm/command_helpers"
"github.com/werf/werf/pkg/deploy/lock_manager"
"github.com/werf/werf/pkg/deploy/secrets_manager"
"github.com/werf/werf/pkg/util"
"github.com/werf/werf/pkg/werf"
"github.com/werf/werf/pkg/werf/global_warnings"
"github.com/werf/werf/v2/cmd/werf/common"
"github.com/werf/werf/v2/pkg/deploy/bundles"
"github.com/werf/werf/v2/pkg/deploy/helm"
"github.com/werf/werf/v2/pkg/deploy/helm/chart_extender"
"github.com/werf/werf/v2/pkg/deploy/helm/chart_extender/helpers"
"github.com/werf/werf/v2/pkg/deploy/helm/command_helpers"
"github.com/werf/werf/v2/pkg/deploy/lock_manager"
"github.com/werf/werf/v2/pkg/deploy/secrets_manager"
"github.com/werf/werf/v2/pkg/util"
"github.com/werf/werf/v2/pkg/werf"
"github.com/werf/werf/v2/pkg/werf/global_warnings"
)

var cmdData struct {
Expand Down
10 changes: 5 additions & 5 deletions cmd/werf/bundle/copy/copy.go
Expand Up @@ -9,11 +9,11 @@ import (
helm_v3 "helm.sh/helm/v3/cmd/helm"

"github.com/werf/logboek"
"github.com/werf/werf/cmd/werf/common"
"github.com/werf/werf/pkg/deploy/bundles"
"github.com/werf/werf/pkg/docker_registry"
"github.com/werf/werf/pkg/werf"
"github.com/werf/werf/pkg/werf/global_warnings"
"github.com/werf/werf/v2/cmd/werf/common"
"github.com/werf/werf/v2/pkg/deploy/bundles"
"github.com/werf/werf/v2/pkg/docker_registry"
"github.com/werf/werf/v2/pkg/werf"
"github.com/werf/werf/v2/pkg/werf/global_warnings"
)

var cmdData struct {
Expand Down
8 changes: 4 additions & 4 deletions cmd/werf/bundle/download/download.go
Expand Up @@ -9,10 +9,10 @@ import (
helm_v3 "helm.sh/helm/v3/cmd/helm"

"github.com/werf/logboek"
"github.com/werf/werf/cmd/werf/common"
"github.com/werf/werf/pkg/deploy/bundles"
"github.com/werf/werf/pkg/werf"
"github.com/werf/werf/pkg/werf/global_warnings"
"github.com/werf/werf/v2/cmd/werf/common"
"github.com/werf/werf/v2/pkg/deploy/bundles"
"github.com/werf/werf/v2/pkg/werf"
"github.com/werf/werf/v2/pkg/werf/global_warnings"
)

var cmdData struct {
Expand Down
34 changes: 17 additions & 17 deletions cmd/werf/bundle/export/export.go
Expand Up @@ -13,23 +13,23 @@ import (
"helm.sh/helm/v3/pkg/cli/values"

"github.com/werf/logboek"
"github.com/werf/werf/cmd/werf/common"
"github.com/werf/werf/pkg/build"
"github.com/werf/werf/pkg/config"
"github.com/werf/werf/pkg/deploy/helm/chart_extender"
"github.com/werf/werf/pkg/deploy/helm/chart_extender/helpers"
"github.com/werf/werf/pkg/deploy/helm/command_helpers"
"github.com/werf/werf/pkg/deploy/secrets_manager"
"github.com/werf/werf/pkg/git_repo"
"github.com/werf/werf/pkg/git_repo/gitdata"
"github.com/werf/werf/pkg/image"
"github.com/werf/werf/pkg/ssh_agent"
"github.com/werf/werf/pkg/storage/lrumeta"
"github.com/werf/werf/pkg/storage/manager"
"github.com/werf/werf/pkg/tmp_manager"
"github.com/werf/werf/pkg/true_git"
"github.com/werf/werf/pkg/werf"
"github.com/werf/werf/pkg/werf/global_warnings"
"github.com/werf/werf/v2/cmd/werf/common"
"github.com/werf/werf/v2/pkg/build"
"github.com/werf/werf/v2/pkg/config"
"github.com/werf/werf/v2/pkg/deploy/helm/chart_extender"
"github.com/werf/werf/v2/pkg/deploy/helm/chart_extender/helpers"
"github.com/werf/werf/v2/pkg/deploy/helm/command_helpers"
"github.com/werf/werf/v2/pkg/deploy/secrets_manager"
"github.com/werf/werf/v2/pkg/git_repo"
"github.com/werf/werf/v2/pkg/git_repo/gitdata"
"github.com/werf/werf/v2/pkg/image"
"github.com/werf/werf/v2/pkg/ssh_agent"
"github.com/werf/werf/v2/pkg/storage/lrumeta"
"github.com/werf/werf/v2/pkg/storage/manager"
"github.com/werf/werf/v2/pkg/tmp_manager"
"github.com/werf/werf/v2/pkg/true_git"
"github.com/werf/werf/v2/pkg/werf"
"github.com/werf/werf/v2/pkg/werf/global_warnings"
)

var cmdData struct {
Expand Down
2 changes: 1 addition & 1 deletion cmd/werf/bundle/export/export_docs.go
@@ -1,7 +1,7 @@
package export

import (
"github.com/werf/werf/cmd/werf/docs/structs"
"github.com/werf/werf/v2/cmd/werf/docs/structs"
)

func GetBundleExportDocs() structs.DocsStruct {
Expand Down
36 changes: 18 additions & 18 deletions cmd/werf/bundle/publish/publish.go
Expand Up @@ -15,24 +15,24 @@ import (
"helm.sh/helm/v3/pkg/cli/values"

"github.com/werf/logboek"
"github.com/werf/werf/cmd/werf/common"
"github.com/werf/werf/pkg/build"
"github.com/werf/werf/pkg/config"
"github.com/werf/werf/pkg/deploy/bundles"
"github.com/werf/werf/pkg/deploy/helm/chart_extender"
"github.com/werf/werf/pkg/deploy/helm/chart_extender/helpers"
"github.com/werf/werf/pkg/deploy/helm/command_helpers"
"github.com/werf/werf/pkg/deploy/secrets_manager"
"github.com/werf/werf/pkg/git_repo"
"github.com/werf/werf/pkg/git_repo/gitdata"
"github.com/werf/werf/pkg/image"
"github.com/werf/werf/pkg/ssh_agent"
"github.com/werf/werf/pkg/storage/lrumeta"
"github.com/werf/werf/pkg/storage/manager"
"github.com/werf/werf/pkg/tmp_manager"
"github.com/werf/werf/pkg/true_git"
"github.com/werf/werf/pkg/werf"
"github.com/werf/werf/pkg/werf/global_warnings"
"github.com/werf/werf/v2/cmd/werf/common"
"github.com/werf/werf/v2/pkg/build"
"github.com/werf/werf/v2/pkg/config"
"github.com/werf/werf/v2/pkg/deploy/bundles"
"github.com/werf/werf/v2/pkg/deploy/helm/chart_extender"
"github.com/werf/werf/v2/pkg/deploy/helm/chart_extender/helpers"
"github.com/werf/werf/v2/pkg/deploy/helm/command_helpers"
"github.com/werf/werf/v2/pkg/deploy/secrets_manager"
"github.com/werf/werf/v2/pkg/git_repo"
"github.com/werf/werf/v2/pkg/git_repo/gitdata"
"github.com/werf/werf/v2/pkg/image"
"github.com/werf/werf/v2/pkg/ssh_agent"
"github.com/werf/werf/v2/pkg/storage/lrumeta"
"github.com/werf/werf/v2/pkg/storage/manager"
"github.com/werf/werf/v2/pkg/tmp_manager"
"github.com/werf/werf/v2/pkg/true_git"
"github.com/werf/werf/v2/pkg/werf"
"github.com/werf/werf/v2/pkg/werf/global_warnings"
)

var cmdData struct {
Expand Down
2 changes: 1 addition & 1 deletion cmd/werf/bundle/publish/publish_docs.go
@@ -1,7 +1,7 @@
package publish

import (
"github.com/werf/werf/cmd/werf/docs/structs"
"github.com/werf/werf/v2/cmd/werf/docs/structs"
)

func GetBundlePublishDocs() structs.DocsStruct {
Expand Down
22 changes: 11 additions & 11 deletions cmd/werf/bundle/render/render.go
Expand Up @@ -15,17 +15,17 @@ import (
"helm.sh/helm/v3/pkg/chart/loader"
"helm.sh/helm/v3/pkg/cli/values"

"github.com/werf/werf/cmd/werf/common"
"github.com/werf/werf/pkg/deploy/bundles"
"github.com/werf/werf/pkg/deploy/helm"
"github.com/werf/werf/pkg/deploy/helm/chart_extender"
"github.com/werf/werf/pkg/deploy/helm/chart_extender/helpers"
"github.com/werf/werf/pkg/deploy/helm/command_helpers"
"github.com/werf/werf/pkg/deploy/secrets_manager"
"github.com/werf/werf/pkg/storage"
"github.com/werf/werf/pkg/util"
"github.com/werf/werf/pkg/werf"
"github.com/werf/werf/pkg/werf/global_warnings"
"github.com/werf/werf/v2/cmd/werf/common"
"github.com/werf/werf/v2/pkg/deploy/bundles"
"github.com/werf/werf/v2/pkg/deploy/helm"
"github.com/werf/werf/v2/pkg/deploy/helm/chart_extender"
"github.com/werf/werf/v2/pkg/deploy/helm/chart_extender/helpers"
"github.com/werf/werf/v2/pkg/deploy/helm/command_helpers"
"github.com/werf/werf/v2/pkg/deploy/secrets_manager"
"github.com/werf/werf/v2/pkg/storage"
"github.com/werf/werf/v2/pkg/util"
"github.com/werf/werf/v2/pkg/werf"
"github.com/werf/werf/v2/pkg/werf/global_warnings"
)

var cmdData struct {
Expand Down
18 changes: 9 additions & 9 deletions cmd/werf/ci_env/ci_env.go
Expand Up @@ -17,15 +17,15 @@ import (

"github.com/werf/logboek"
"github.com/werf/logboek/pkg/level"
"github.com/werf/werf/cmd/werf/common"
"github.com/werf/werf/pkg/docker"
"github.com/werf/werf/pkg/docker_registry"
"github.com/werf/werf/pkg/git_repo"
"github.com/werf/werf/pkg/git_repo/gitdata"
"github.com/werf/werf/pkg/tmp_manager"
"github.com/werf/werf/pkg/true_git"
"github.com/werf/werf/pkg/util"
"github.com/werf/werf/pkg/werf"
"github.com/werf/werf/v2/cmd/werf/common"
"github.com/werf/werf/v2/pkg/docker"
"github.com/werf/werf/v2/pkg/docker_registry"
"github.com/werf/werf/v2/pkg/git_repo"
"github.com/werf/werf/v2/pkg/git_repo/gitdata"
"github.com/werf/werf/v2/pkg/tmp_manager"
"github.com/werf/werf/v2/pkg/true_git"
"github.com/werf/werf/v2/pkg/util"
"github.com/werf/werf/v2/pkg/werf"
)

var cmdData struct {
Expand Down
22 changes: 11 additions & 11 deletions cmd/werf/cleanup/cleanup.go
Expand Up @@ -9,17 +9,17 @@ import (

"github.com/werf/kubedog/pkg/kube"
"github.com/werf/logboek"
"github.com/werf/werf/cmd/werf/common"
"github.com/werf/werf/pkg/cleaning"
"github.com/werf/werf/pkg/git_repo"
"github.com/werf/werf/pkg/git_repo/gitdata"
"github.com/werf/werf/pkg/image"
"github.com/werf/werf/pkg/storage/lrumeta"
"github.com/werf/werf/pkg/storage/manager"
"github.com/werf/werf/pkg/tmp_manager"
"github.com/werf/werf/pkg/true_git"
"github.com/werf/werf/pkg/werf"
"github.com/werf/werf/pkg/werf/global_warnings"
"github.com/werf/werf/v2/cmd/werf/common"
"github.com/werf/werf/v2/pkg/cleaning"
"github.com/werf/werf/v2/pkg/git_repo"
"github.com/werf/werf/v2/pkg/git_repo/gitdata"
"github.com/werf/werf/v2/pkg/image"
"github.com/werf/werf/v2/pkg/storage/lrumeta"
"github.com/werf/werf/v2/pkg/storage/manager"
"github.com/werf/werf/v2/pkg/tmp_manager"
"github.com/werf/werf/v2/pkg/true_git"
"github.com/werf/werf/v2/pkg/werf"
"github.com/werf/werf/v2/pkg/werf/global_warnings"
)

var commonCmdData common.CmdData
Expand Down
2 changes: 1 addition & 1 deletion cmd/werf/cleanup/cleanup_docs.go
@@ -1,7 +1,7 @@
package cleanup

import (
"github.com/werf/werf/cmd/werf/docs/structs"
"github.com/werf/werf/v2/cmd/werf/docs/structs"
)

func GetCleanupDocs() structs.DocsStruct {
Expand Down
2 changes: 1 addition & 1 deletion cmd/werf/common/cleanup_namespaces_scan.go
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/werf/kubedog/pkg/kube"
"github.com/werf/logboek"
"github.com/werf/werf/pkg/util"
"github.com/werf/werf/v2/pkg/util"
)

func SetupScanContextNamespaceOnly(cmdData *CmdData, cmd *cobra.Command) {
Expand Down
2 changes: 1 addition & 1 deletion cmd/werf/common/cmd_data.go
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/spf13/cobra"

"github.com/werf/werf/pkg/util"
"github.com/werf/werf/v2/pkg/util"
)

type CmdData struct {
Expand Down
26 changes: 13 additions & 13 deletions cmd/werf/common/common.go
Expand Up @@ -15,19 +15,19 @@ import (
"github.com/werf/logboek/pkg/level"
"github.com/werf/logboek/pkg/style"
"github.com/werf/logboek/pkg/types"
"github.com/werf/werf/pkg/build"
"github.com/werf/werf/pkg/build/stage"
"github.com/werf/werf/pkg/config"
"github.com/werf/werf/pkg/container_backend"
"github.com/werf/werf/pkg/docker_registry"
"github.com/werf/werf/pkg/git_repo"
"github.com/werf/werf/pkg/giterminism_manager"
"github.com/werf/werf/pkg/logging"
"github.com/werf/werf/pkg/storage"
"github.com/werf/werf/pkg/true_git"
"github.com/werf/werf/pkg/util"
"github.com/werf/werf/pkg/werf"
"github.com/werf/werf/pkg/werf/global_warnings"
"github.com/werf/werf/v2/pkg/build"
"github.com/werf/werf/v2/pkg/build/stage"
"github.com/werf/werf/v2/pkg/config"
"github.com/werf/werf/v2/pkg/container_backend"
"github.com/werf/werf/v2/pkg/docker_registry"
"github.com/werf/werf/v2/pkg/git_repo"
"github.com/werf/werf/v2/pkg/giterminism_manager"
"github.com/werf/werf/v2/pkg/logging"
"github.com/werf/werf/v2/pkg/storage"
"github.com/werf/werf/v2/pkg/true_git"
"github.com/werf/werf/v2/pkg/util"
"github.com/werf/werf/v2/pkg/werf"
"github.com/werf/werf/v2/pkg/werf/global_warnings"
)

const (
Expand Down
12 changes: 6 additions & 6 deletions cmd/werf/common/container_backend.go
Expand Up @@ -7,12 +7,12 @@ import (
"path/filepath"
"strings"

"github.com/werf/werf/pkg/buildah"
"github.com/werf/werf/pkg/buildah/thirdparty"
"github.com/werf/werf/pkg/container_backend"
"github.com/werf/werf/pkg/docker"
"github.com/werf/werf/pkg/util"
"github.com/werf/werf/pkg/werf"
"github.com/werf/werf/v2/pkg/buildah"
"github.com/werf/werf/v2/pkg/buildah/thirdparty"
"github.com/werf/werf/v2/pkg/container_backend"
"github.com/werf/werf/v2/pkg/docker"
"github.com/werf/werf/v2/pkg/util"
"github.com/werf/werf/v2/pkg/werf"
)

func ContainerBackendProcessStartupHook() (bool, error) {
Expand Down

0 comments on commit e15cf3c

Please sign in to comment.