diff --git a/go.mod b/go.mod index a0b2e88d..ead9ebe0 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/fluxcd/terraform-provider-flux go 1.16 require ( - github.com/fluxcd/flux2 v0.20.1 + github.com/fluxcd/flux2 v0.21.1 github.com/hashicorp/terraform-plugin-docs v0.5.0 github.com/hashicorp/terraform-plugin-sdk/v2 v2.8.0 github.com/stretchr/testify v1.7.0 diff --git a/go.sum b/go.sum index ac183872..552d3c22 100644 --- a/go.sum +++ b/go.sum @@ -240,11 +240,11 @@ github.com/fatih/camelcase v1.0.0/go.mod h1:yN2Sb0lFhZJUdVvtELVWefmrXpuZESvPmqwo github.com/fatih/color v1.7.0 h1:DkWD4oS2D8LGGgTQ6IvwJJXSL5Vp2ffcQg58nFV38Ys= github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= github.com/felixge/httpsnoop v1.0.1/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= -github.com/fluxcd/flux2 v0.20.1 h1:GCpdPnikG9L5BoNm71MNHI/evZdE+U8GnX/4vKlbIRE= -github.com/fluxcd/flux2 v0.20.1/go.mod h1:id1uIRnf/kZBPsM94qeksgay5NS0x9SrAvpTMbkJzcs= +github.com/fluxcd/flux2 v0.21.1 h1:KOFIqtVF2vM2dHk9bJ9UwDaBePem/ONhZquE8v+jPas= +github.com/fluxcd/flux2 v0.21.1/go.mod h1:GiA2nAz9GuRccKInCclHLd6QSPs4X8r5Z6SteTAt4no= github.com/fluxcd/go-git-providers v0.1.1/go.mod h1:nRgNpHZmZhrsyNSma1JcAhjUG9xrqMGJcIUr9K7M7vk= github.com/fluxcd/helm-controller/api v0.12.1/go.mod h1:zWmzV0s2SU4rEIGLPTt+dsaMs40OsNQgSgOATgJmxB0= -github.com/fluxcd/image-automation-controller/api v0.16.0/go.mod h1:tEQCFKGgxii7zfXti2MxixwFbxhEXnVJqLGM2x9zlGw= +github.com/fluxcd/image-automation-controller/api v0.16.1/go.mod h1:wn6XjTpUnrQ2bakHhgJNAUj53snw50J0/+36pY4zXSE= github.com/fluxcd/image-reflector-controller/api v0.13.0/go.mod h1:lgQHGFz29OHmDU5Jwg689C/M+P/f9ujt6NS0zCLT0BQ= github.com/fluxcd/kustomize-controller/api v0.16.0 h1:L/LRxS6oroGZe1AdElP3k1mnNIKGCpi0ntgHwJzdNYY= github.com/fluxcd/kustomize-controller/api v0.16.0/go.mod h1:OhnZuXBeDl4NqbDZgpYKRg8nmsmeUIddH3vX8wxym9A= @@ -261,9 +261,8 @@ github.com/fluxcd/pkg/ssh v0.0.5/go.mod h1:7jXPdXZpc0ttMNz2kD9QuMi3RNn/e0DOFbj0T github.com/fluxcd/pkg/untar v0.0.5 h1:UGI3Ch1UIEIaqQvMicmImL1s9npQa64DJ/ozqHKB7gk= github.com/fluxcd/pkg/untar v0.0.5/go.mod h1:O6V9+rtl8c1mHBafgqFlJN6zkF1HS5SSYn7RpQJ/nfw= github.com/fluxcd/pkg/version v0.0.1/go.mod h1:WAF4FEEA9xyhngF8TDxg3UPu5fA1qhEYV8Pmi2Il01Q= -github.com/fluxcd/source-controller/api v0.17.0/go.mod h1:guUCCapjzE2kocwFreQTM/IGvtAglIJc4L97mokairo= -github.com/fluxcd/source-controller/api v0.17.1 h1:bsYMc/6U2sYXLfxcZtDavsqUYGDHFycqVEAEGW3NiPs= -github.com/fluxcd/source-controller/api v0.17.1/go.mod h1:guUCCapjzE2kocwFreQTM/IGvtAglIJc4L97mokairo= +github.com/fluxcd/source-controller/api v0.17.2 h1:noePJGsevuvxWols6ErbowujuAHGWb/ZO8irtRHcVAc= +github.com/fluxcd/source-controller/api v0.17.2/go.mod h1:guUCCapjzE2kocwFreQTM/IGvtAglIJc4L97mokairo= github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc= github.com/form3tech-oss/jwt-go v3.2.2+incompatible/go.mod h1:pbq4aXjuKjdthFRnoDwaVPLA+WlJuPGy+QneDUgJi2k= github.com/form3tech-oss/jwt-go v3.2.3+incompatible/go.mod h1:pbq4aXjuKjdthFRnoDwaVPLA+WlJuPGy+QneDUgJi2k= diff --git a/pkg/provider/data_sync_test.go b/pkg/provider/data_sync_test.go index 93092cd5..88c9dd43 100644 --- a/pkg/provider/data_sync_test.go +++ b/pkg/provider/data_sync_test.go @@ -125,7 +125,8 @@ const ( url = "ftp://git@example.com" } ` - testAccDataSyncBasicExpectedContent = `--- + testAccDataSyncBasicExpectedContent = `# This manifest was generated by flux bootstrap. DO NOT EDIT. +--- apiVersion: source.toolkit.fluxcd.io/v1beta1 kind: GitRepository metadata: @@ -152,7 +153,8 @@ spec: kind: GitRepository name: flux-system ` - testAccDataSyncIntervalExpectedContent = `--- + testAccDataSyncIntervalExpectedContent = `# This manifest was generated by flux bootstrap. DO NOT EDIT. +--- apiVersion: source.toolkit.fluxcd.io/v1beta1 kind: GitRepository metadata: @@ -192,7 +194,8 @@ func testAccDataSyncWithArg(attr string, value string) string { } func testAccDataSyncContentWithGitRefArg(attr, value string) string { - return fmt.Sprintf(`--- + return fmt.Sprintf(`# This manifest was generated by flux bootstrap. DO NOT EDIT. +--- apiVersion: source.toolkit.fluxcd.io/v1beta1 kind: GitRepository metadata: