Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

e2e/infracosts #1554

Closed
wants to merge 19 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
81f0e3d
Bump mvdan.cc/sh/v3 from 3.9.0 to 3.10.0 (#1531)
dependabot[bot] Oct 23, 2024
3378965
[FEATURE] - Provider Service Account (#1532)
gambol99 Oct 23, 2024
d3957a3
[BUILD] - Controller Runtime 0.19.0 (#1537)
gambol99 Oct 24, 2024
0db8309
Bump sigs.k8s.io/controller-tools from 0.15.0 to 0.16.4 (#1538)
dependabot[bot] Oct 25, 2024
9e2a921
Bump k8s.io/apimachinery from 0.30.3 to 0.31.2 (#1534)
dependabot[bot] Oct 25, 2024
44bd812
Bump k8s.io/code-generator from 0.30.3 to 0.31.2 (#1533)
dependabot[bot] Oct 25, 2024
636194c
Bump github.com/fatih/color from 1.17.0 to 1.18.0 (#1535)
dependabot[bot] Oct 28, 2024
986ec1b
Bump sigs.k8s.io/controller-runtime from 0.19.0 to 0.19.1 (#1539)
dependabot[bot] Oct 28, 2024
ee3831e
Bump k8s.io/apiextensions-apiserver from 0.31.1 to 0.31.2 (#1540)
dependabot[bot] Oct 28, 2024
b299fb8
Bump sigs.k8s.io/controller-tools from 0.16.4 to 0.16.5 (#1543)
dependabot[bot] Oct 29, 2024
3fc478f
Bump k8s.io/cli-runtime from 0.30.3 to 0.31.2 (#1542)
dependabot[bot] Oct 29, 2024
2d54d6a
Bump github.com/onsi/gomega from 1.34.2 to 1.35.0 (#1544)
dependabot[bot] Oct 30, 2024
46e5994
Bump github.com/onsi/gomega from 1.35.0 to 1.35.1 (#1546)
dependabot[bot] Nov 1, 2024
81ec60d
Bump github.com/onsi/ginkgo/v2 from 2.20.2 to 2.21.0 (#1545)
dependabot[bot] Nov 1, 2024
0b9ad4b
Bump golang.org/x/oauth2 from 0.23.0 to 0.24.0 (#1547)
dependabot[bot] Nov 8, 2024
0a9a2e5
Bump golang.org/x/tools from 0.26.0 to 0.27.0 (#1552)
dependabot[bot] Nov 11, 2024
a5df2ac
Also set resource k8s limits/requests on the apply job (#1553)
ronaldvb-k Nov 13, 2024
6139c2f
[FEATURE] - Switching to Opentofu (#1550)
gambol99 Nov 15, 2024
904fd5e
[E2E] - Infrascosts
gambol99 Nov 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion charts/terranetes-controller/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ controller:
# Configuration for the images used by the jobs
images:
# is the default image to use for terraform operations
terraform: hashicorp/terraform:1.5.7
terraform: ghcr.io/opentofu/opentofu:1.8.5
# image to use for infracost
infracost: infracost/infracost:ci-0.10.35
# policy is image for policy
Expand Down
3 changes: 2 additions & 1 deletion cmd/controller/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ func main() {
flags.StringSliceVar(&config.ExecutorSecrets, "executor-secret", []string{}, "Name of a secret in controller namespace which should be added to the job")
flags.StringSliceVar(&config.JobLabels, "job-label", []string{}, "A collection of key=values to add to all jobs")
flags.StringVar(&config.BackendTemplate, "backend-template", "", "Name of secret in the controller namespace containing a template for the terraform state")
flags.StringVar(&config.BinaryPath, "binary-path", "/usr/local/bin/tofu", "The path of the terraform binary to use")
flags.StringVar(&config.ExecutorCPULimit, "executor-cpu-limit", "", "The default CPU limit for the executor container (default is no limit)")
flags.StringVar(&config.ExecutorCPURequest, "executor-cpu-request", "5m", "The default CPU request for the executor container")
flags.StringVar(&config.ExecutorImage, "executor-image", fmt.Sprintf("ghcr.io/appvia/terranetes-executor:%s", version.Version), "The image to use for the executor")
Expand All @@ -93,7 +94,7 @@ func main() {
flags.StringVar(&config.TLSCert, "tls-cert", "tls.pem", "The name of the file containing the TLS certificate")
flags.StringVar(&config.TLSDir, "tls-dir", "", "The directory the certificates are held")
flags.StringVar(&config.TLSKey, "tls-key", "tls-key.pem", "The name of the file containing the TLS key")
flags.StringVar(&config.TerraformImage, "terraform-image", "hashicorp/terraform:latest", "The image to use for the terraform")
flags.StringVar(&config.TerraformImage, "terraform-image", "ghcr.io/opentofu/opentofu:latest", "The image to use for the terraform")

crFlags := flag.NewFlagSet("controller-runtime", flag.ContinueOnError)
zapOpts.BindFlags(crFlags)
Expand Down
52 changes: 27 additions & 25 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ require (
github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d
github.com/enescakir/emoji v1.0.0
github.com/evanphx/json-patch v5.9.0+incompatible
github.com/fatih/color v1.17.0
github.com/fatih/color v1.18.0
github.com/felixge/httpsnoop v1.0.4
github.com/gertd/go-pluralize v0.2.1
github.com/ghodss/yaml v1.0.0
Expand All @@ -30,8 +30,8 @@ require (
github.com/mikefarah/yq/v3 v3.0.0-20201202084205-8846255d1c37
github.com/mitchellh/gox v1.0.1
github.com/olekukonko/tablewriter v0.0.5
github.com/onsi/ginkgo/v2 v2.20.2
github.com/onsi/gomega v1.34.2
github.com/onsi/ginkgo/v2 v2.21.0
github.com/onsi/gomega v1.35.1
github.com/patrickmn/go-cache v2.1.0+incompatible
github.com/prometheus/client_golang v1.20.5
github.com/rodaine/hclencoder v0.0.1
Expand All @@ -42,20 +42,20 @@ require (
github.com/tidwall/gjson v1.18.0
github.com/tidwall/pretty v1.2.1
github.com/tidwall/sjson v1.2.5
golang.org/x/oauth2 v0.23.0
golang.org/x/tools v0.26.0
golang.org/x/oauth2 v0.24.0
golang.org/x/tools v0.27.0
gopkg.in/yaml.v2 v2.4.0
k8s.io/api v0.30.3
k8s.io/apiextensions-apiserver v0.30.3
k8s.io/apimachinery v0.30.3
k8s.io/cli-runtime v0.30.3
k8s.io/client-go v0.30.3
k8s.io/code-generator v0.30.3
k8s.io/api v0.31.2
k8s.io/apiextensions-apiserver v0.31.2
k8s.io/apimachinery v0.31.2
k8s.io/cli-runtime v0.31.2
k8s.io/client-go v0.31.2
k8s.io/code-generator v0.31.2
k8s.io/kube-openapi v0.0.0-20240709000822-3c01b740850f
k8s.io/utils v0.0.0-20240711033017-18e509b52bc8
mvdan.cc/sh/v3 v3.9.0
sigs.k8s.io/controller-runtime v0.18.5
sigs.k8s.io/controller-tools v0.15.0
mvdan.cc/sh/v3 v3.10.0
sigs.k8s.io/controller-runtime v0.19.1
sigs.k8s.io/controller-tools v0.16.5
sigs.k8s.io/yaml v1.4.0
)

Expand Down Expand Up @@ -118,6 +118,7 @@ require (
github.com/fatih/structtag v1.2.0 // indirect
github.com/firefart/nonamedreturns v1.0.4 // indirect
github.com/fsnotify/fsnotify v1.7.0 // indirect
github.com/fxamacker/cbor/v2 v2.7.0 // indirect
github.com/fzipp/gocyclo v0.6.0 // indirect
github.com/ghostiam/protogetter v0.3.5 // indirect
github.com/go-critic/go-critic v0.11.2 // indirect
Expand Down Expand Up @@ -146,7 +147,7 @@ require (
github.com/go-toolsmith/typep v1.1.0 // indirect
github.com/go-viper/mapstructure/v2 v2.0.0-alpha.1 // indirect
github.com/go-xmlfmt/xmlfmt v1.1.2 // indirect
github.com/gobuffalo/flect v1.0.2 // indirect
github.com/gobuffalo/flect v1.0.3 // indirect
github.com/gobwas/glob v0.2.3 // indirect
github.com/goccy/go-yaml v1.8.1 // indirect
github.com/gofrs/flock v0.8.1 // indirect
Expand All @@ -166,7 +167,7 @@ require (
github.com/google/go-github/v47 v47.1.0 // indirect
github.com/google/go-querystring v1.1.0 // indirect
github.com/google/gofuzz v1.2.0 // indirect
github.com/google/pprof v0.0.0-20240827171923-fa2c70bbbfe5 // indirect
github.com/google/pprof v0.0.0-20241029153458-d1b30febd7db // indirect
github.com/google/renameio/v2 v2.0.0 // indirect
github.com/google/s2a-go v0.1.7 // indirect
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect
Expand Down Expand Up @@ -257,7 +258,7 @@ require (
github.com/quasilyte/regex/syntax v0.0.0-20210819130434-b3f0c404a727 // indirect
github.com/quasilyte/stdinfo v0.0.0-20220114132959-f7386bf02567 // indirect
github.com/rivo/uniseg v0.4.7 // indirect
github.com/rogpeppe/go-internal v1.12.0 // indirect
github.com/rogpeppe/go-internal v1.13.1 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/ryancurrah/gomodguard v1.3.1 // indirect
github.com/ryanrolds/sqlclosecheck v0.5.1 // indirect
Expand Down Expand Up @@ -296,6 +297,7 @@ require (
github.com/ultraware/funlen v0.1.0 // indirect
github.com/ultraware/whitespace v0.1.0 // indirect
github.com/uudashr/gocognit v1.1.2 // indirect
github.com/x448/float16 v0.8.4 // indirect
github.com/xen0n/gosmopolitan v1.2.2 // indirect
github.com/xlab/treeprint v1.2.0 // indirect
github.com/yagipy/maintidx v1.0.0 // indirect
Expand All @@ -316,16 +318,16 @@ require (
go.uber.org/automaxprocs v1.5.3 // indirect
go.uber.org/multierr v1.11.0 // indirect
go.uber.org/zap v1.27.0 // indirect
golang.org/x/crypto v0.28.0 // indirect
golang.org/x/crypto v0.29.0 // indirect
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 // indirect
golang.org/x/exp/typeparams v0.0.0-20240314144324-c7f7c6466f7f // indirect
golang.org/x/lint v0.0.0-20210508222113-6edffad5e616 // indirect
golang.org/x/mod v0.21.0 // indirect
golang.org/x/net v0.30.0 // indirect
golang.org/x/sync v0.8.0 // indirect
golang.org/x/sys v0.26.0 // indirect
golang.org/x/term v0.25.0 // indirect
golang.org/x/text v0.19.0 // indirect
golang.org/x/mod v0.22.0 // indirect
golang.org/x/net v0.31.0 // indirect
golang.org/x/sync v0.9.0 // indirect
golang.org/x/sys v0.27.0 // indirect
golang.org/x/term v0.26.0 // indirect
golang.org/x/text v0.20.0 // indirect
golang.org/x/time v0.5.0 // indirect
golang.org/x/xerrors v0.0.0-20240716161551-93cc26a95ae9 // indirect
gomodules.xyz/jsonpatch/v2 v2.4.0 // indirect
Expand All @@ -334,7 +336,7 @@ require (
google.golang.org/genproto/googleapis/api v0.0.0-20240711142825-46eb208f015d // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240711142825-46eb208f015d // indirect
google.golang.org/grpc v1.65.0 // indirect
google.golang.org/protobuf v1.34.2 // indirect
google.golang.org/protobuf v1.35.1 // indirect
gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
Expand Down
Loading
Loading