Skip to content

Commit c01cb8e

Browse files
authored
Migrate goformation under pkg/ as a local package and remove location re-write (#8219)
1 parent 854da87 commit c01cb8e

File tree

3,999 files changed

+7841
-7970
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,999 files changed

+7841
-7970
lines changed

.github/workflows/link-checker.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ jobs:
3333
- name: Link Checker
3434
uses: lycheeverse/lychee-action@f613c4a64e50d792e0b31ec34bbcbba12263c6a6 #v2.3.0
3535
with:
36-
args: --exclude-all-private --exclude-mail --exclude-file .github/workflows/exclude-file.txt --exclude-path goformation --verbose --no-progress './**/*.md' './**/*.html'
36+
args: --exclude-all-private --exclude-mail --exclude-file .github/workflows/exclude-file.txt --exclude-path pkg/goformation --verbose --no-progress './**/*.md' './**/*.html'

.golangci.yml

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -21,32 +21,6 @@ run:
2121

2222
# output configuration options
2323
output:
24-
# The formats used to render issues.
25-
# Formats:
26-
# - `colored-line-number`
27-
# - `line-number`
28-
# - `json`
29-
# - `colored-tab`
30-
# - `tab`
31-
# - `html`
32-
# - `checkstyle`
33-
# - `code-climate`
34-
# - `junit-xml`
35-
# - `junit-xml-extended`
36-
# - `github-actions`
37-
# - `teamcity`
38-
# - `sarif`
39-
# Output path can be either `stdout`, `stderr` or path to the file to write to.
40-
#
41-
# For the CLI flag (`--out-format`), multiple formats can be specified by separating them by comma.
42-
# The output can be specified for each of them by separating format name and path by colon symbol.
43-
# Example: "--out-format=checkstyle:report.xml,json:stdout,colored-line-number"
44-
# The CLI flag (`--out-format`) override the configuration file.
45-
#
46-
# Default:
47-
# formats:
48-
# - format: colored-line-number
49-
# path: stdout
5024
formats:
5125
- format: tab
5226

@@ -144,7 +118,7 @@ issues:
144118
- ^vendor$
145119
- ^build$
146120
- ^pkg\/eks\/mocks$
147-
- ^goformation$
121+
- ^pkg\/goformation*
148122

149123
# Which files to exclude: they will be analyzed, but issues from them won't be reported.
150124
# There is no need to include all autogenerated files,

go.mod

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ require (
2828
github.com/aws/aws-sdk-go-v2/service/sts v1.33.5
2929
github.com/aws/smithy-go v1.22.2
3030
github.com/awslabs/amazon-eks-ami/nodeadm v0.0.0-20240508073157-fbfa1bc129f5
31-
github.com/awslabs/goformation/v4 v4.15.5
3231
github.com/benjamintf1/unmarshalledmatchers v1.0.0
3332
github.com/blang/semver v3.5.1+incompatible
3433
github.com/bxcodec/faker v2.0.1+incompatible
@@ -51,12 +50,15 @@ require (
5150
github.com/kubicorn/kubicorn v0.0.0-20180829191017-06f6bce92acc
5251
github.com/lithammer/dedent v1.1.0
5352
github.com/maxbrunsfeld/counterfeiter/v6 v6.8.1
53+
github.com/onsi/ginkgo v1.16.4
5454
github.com/onsi/ginkgo/v2 v2.22.2
5555
github.com/onsi/gomega v1.36.2
5656
github.com/orcaman/concurrent-map v1.0.0
5757
github.com/otiai10/copy v1.14.0
5858
github.com/pelletier/go-toml v1.9.5
5959
github.com/pkg/errors v0.9.1
60+
github.com/sanathkr/go-yaml v0.0.0-20170819195128-ed9d249f429b
61+
github.com/sanathkr/yaml v0.0.0-20170819201035-0056894fa522
6062
github.com/sethvargo/go-password v0.2.0
6163
github.com/spf13/afero v1.12.0
6264
github.com/spf13/cobra v1.8.1
@@ -68,10 +70,12 @@ require (
6870
github.com/vburenin/ifacemaker v1.2.1
6971
github.com/vektra/mockery/v2 v2.52.2
7072
github.com/weaveworks/schemer v0.0.0-20230525114451-47139fe25848
73+
github.com/xeipuuv/gojsonschema v1.2.0
7174
github.com/xgfone/netaddr v0.5.1
7275
golang.org/x/crypto v0.33.0
7376
golang.org/x/oauth2 v0.25.0
7477
golang.org/x/sync v0.11.0
78+
golang.org/x/text v0.22.0
7579
golang.org/x/tools v0.30.0
7680
gopkg.in/yaml.v2 v2.4.0
7781
helm.sh/helm/v3 v3.17.0
@@ -312,6 +316,7 @@ require (
312316
github.com/nishanths/exhaustive v0.12.0 // indirect
313317
github.com/nishanths/predeclared v0.2.2 // indirect
314318
github.com/nunnatsa/ginkgolinter v0.18.4 // indirect
319+
github.com/nxadm/tail v1.4.8 // indirect
315320
github.com/olekukonko/tablewriter v0.0.5 // indirect
316321
github.com/oliveagle/jsonpath v0.0.0-20180606110733-2e52cf6e6852 // indirect
317322
github.com/opencontainers/go-digest v1.0.0 // indirect
@@ -342,8 +347,6 @@ require (
342347
github.com/sagikazarmark/locafero v0.7.0 // indirect
343348
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
344349
github.com/sahilm/fuzzy v0.1.0 // indirect
345-
github.com/sanathkr/go-yaml v0.0.0-20170819195128-ed9d249f429b // indirect
346-
github.com/sanathkr/yaml v0.0.0-20170819201035-0056894fa522 // indirect
347350
github.com/sanposhiho/wastedassign/v2 v2.1.0 // indirect
348351
github.com/santhosh-tekuri/jsonschema/v6 v6.0.1 // indirect
349352
github.com/sashamelentyev/interfacebloat v1.1.0 // indirect
@@ -382,7 +385,6 @@ require (
382385
github.com/x448/float16 v0.8.4 // indirect
383386
github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb // indirect
384387
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect
385-
github.com/xeipuuv/gojsonschema v1.2.0 // indirect
386388
github.com/xen0n/gosmopolitan v1.2.2 // indirect
387389
github.com/xlab/treeprint v1.2.0 // indirect
388390
github.com/yagipy/maintidx v1.0.0 // indirect
@@ -404,7 +406,6 @@ require (
404406
golang.org/x/net v0.35.0 // indirect
405407
golang.org/x/sys v0.30.0 // indirect
406408
golang.org/x/term v0.29.0 // indirect
407-
golang.org/x/text v0.22.0 // indirect
408409
golang.org/x/time v0.8.0 // indirect
409410
google.golang.org/api v0.215.0 // indirect
410411
google.golang.org/genproto/googleapis/rpc v0.0.0-20241223144023-3abc09e42ca8 // indirect
@@ -414,6 +415,7 @@ require (
414415
gopkg.in/gcfg.v1 v1.2.3 // indirect
415416
gopkg.in/inf.v0 v0.9.1 // indirect
416417
gopkg.in/ini.v1 v1.67.0 // indirect
418+
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect
417419
gopkg.in/warnings.v0 v0.1.2 // indirect
418420
gopkg.in/yaml.v3 v3.0.1 // indirect
419421
honnef.co/go/tools v0.6.0 // indirect
@@ -467,6 +469,3 @@ replace (
467469
k8s.io/sample-cli-plugin => k8s.io/sample-cli-plugin v0.32.1
468470
k8s.io/sample-controller => k8s.io/sample-controller v0.32.1
469471
)
470-
471-
// Use a local fork of goformation
472-
replace github.com/awslabs/goformation/v4 => ./goformation

goformation/go.mod

Lines changed: 0 additions & 25 deletions
This file was deleted.

goformation/go.sum

Lines changed: 0 additions & 80 deletions
This file was deleted.

pkg/actions/nodegroup/upgrade.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ import (
1818
"github.com/kris-nova/logger"
1919
"github.com/pkg/errors"
2020

21-
"github.com/awslabs/goformation/v4"
22-
"github.com/awslabs/goformation/v4/cloudformation"
23-
gfnec2 "github.com/awslabs/goformation/v4/cloudformation/ec2"
24-
gfneks "github.com/awslabs/goformation/v4/cloudformation/eks"
25-
gfnt "github.com/awslabs/goformation/v4/cloudformation/types"
21+
"github.com/weaveworks/eksctl/pkg/goformation"
22+
"github.com/weaveworks/eksctl/pkg/goformation/cloudformation"
23+
gfnec2 "github.com/weaveworks/eksctl/pkg/goformation/cloudformation/ec2"
24+
gfneks "github.com/weaveworks/eksctl/pkg/goformation/cloudformation/eks"
25+
gfnt "github.com/weaveworks/eksctl/pkg/goformation/cloudformation/types"
2626

2727
"github.com/weaveworks/eksctl/pkg/ami"
2828
api "github.com/weaveworks/eksctl/pkg/apis/eksctl.io/v1alpha5"

pkg/automode/cluster_role_manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111

1212
"github.com/kris-nova/logger"
1313

14-
"github.com/awslabs/goformation/v4"
14+
"github.com/weaveworks/eksctl/pkg/goformation"
1515

1616
api "github.com/weaveworks/eksctl/pkg/apis/eksctl.io/v1alpha5"
1717
"github.com/weaveworks/eksctl/pkg/awsapi"

pkg/cfn/builder/access_entry.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package builder
22

33
import (
4-
gfneks "github.com/awslabs/goformation/v4/cloudformation/eks"
5-
gfnt "github.com/awslabs/goformation/v4/cloudformation/types"
4+
gfneks "github.com/weaveworks/eksctl/pkg/goformation/cloudformation/eks"
5+
gfnt "github.com/weaveworks/eksctl/pkg/goformation/cloudformation/types"
66

77
api "github.com/weaveworks/eksctl/pkg/apis/eksctl.io/v1alpha5"
88
)

pkg/cfn/builder/api.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import (
44
"fmt"
55
"reflect"
66

7-
gfn "github.com/awslabs/goformation/v4/cloudformation"
8-
gfncfn "github.com/awslabs/goformation/v4/cloudformation/cloudformation"
9-
gfnt "github.com/awslabs/goformation/v4/cloudformation/types"
7+
gfn "github.com/weaveworks/eksctl/pkg/goformation/cloudformation"
8+
gfncfn "github.com/weaveworks/eksctl/pkg/goformation/cloudformation/cloudformation"
9+
gfnt "github.com/weaveworks/eksctl/pkg/goformation/cloudformation/types"
1010

1111
"github.com/aws/aws-sdk-go-v2/service/cloudformation/types"
1212

pkg/cfn/builder/auto_mode.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import (
66

77
api "github.com/weaveworks/eksctl/pkg/apis/eksctl.io/v1alpha5"
88

9-
"github.com/awslabs/goformation/v4"
10-
gfn "github.com/awslabs/goformation/v4/cloudformation"
11-
gfnt "github.com/awslabs/goformation/v4/cloudformation/types"
9+
"github.com/weaveworks/eksctl/pkg/goformation"
10+
gfn "github.com/weaveworks/eksctl/pkg/goformation/cloudformation"
11+
gfnt "github.com/weaveworks/eksctl/pkg/goformation/cloudformation/types"
1212

1313
cfntypes "github.com/aws/aws-sdk-go-v2/service/cloudformation/types"
1414
)

0 commit comments

Comments
 (0)