Skip to content

Commit

Permalink
feat: templatable helm values from cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
rajiteh committed Nov 29, 2022
1 parent 9f67e36 commit abe5228
Show file tree
Hide file tree
Showing 10 changed files with 1,253 additions and 183 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@
*.DS_Store
/fleet
/.vscode
^fleet$
12 changes: 12 additions & 0 deletions charts/fleet-crd/templates/crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ spec:
chart:
nullable: true
type: string
disablePreProcess:
type: boolean
force:
type: boolean
maxHistory:
Expand Down Expand Up @@ -488,6 +490,8 @@ spec:
chart:
nullable: true
type: string
disablePreProcess:
type: boolean
force:
type: boolean
maxHistory:
Expand Down Expand Up @@ -997,6 +1001,8 @@ spec:
chart:
nullable: true
type: string
disablePreProcess:
type: boolean
force:
type: boolean
maxHistory:
Expand Down Expand Up @@ -1144,6 +1150,8 @@ spec:
chart:
nullable: true
type: string
disablePreProcess:
type: boolean
force:
type: boolean
maxHistory:
Expand Down Expand Up @@ -1784,6 +1792,10 @@ spec:
type: string
redeployAgentGeneration:
type: integer
templateValues:
nullable: true
type: object
x-kubernetes-preserve-unknown-fields: true
type: object
status:
properties:
Expand Down
79 changes: 40 additions & 39 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -34,50 +34,55 @@ replace (

require (
github.com/Masterminds/semver/v3 v3.1.1
github.com/cheggaaa/pb v1.0.29
github.com/davecgh/go-spew v1.1.1
github.com/evanphx/json-patch v5.6.0+incompatible
github.com/go-git/go-billy/v5 v5.3.1
github.com/go-git/go-git/v5 v5.4.2
github.com/go-logr/logr v1.2.3
github.com/gobwas/glob v0.2.3
github.com/google/go-containerregistry v0.12.1
github.com/hashicorp/go-getter v1.6.2
github.com/onsi/ginkgo/v2 v2.5.1
github.com/onsi/gomega v1.24.1
github.com/Masterminds/sprig/v3 v3.2.2
github.com/cheggaaa/pb v1.0.27
github.com/evanphx/json-patch v4.12.0+incompatible
github.com/go-git/go-git/v5 v5.2.0
github.com/google/go-containerregistry v0.1.1
github.com/hashicorp/go-getter v1.5.11
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/pkg/errors v0.9.1
github.com/rancher/fleet/pkg/apis v0.0.0
github.com/rancher/gitjob v0.1.30
github.com/rancher/lasso v0.0.0-20220519004610-700f167d8324
github.com/rancher/wrangler v1.0.1-0.20220623232707-cc833dd0d546
github.com/rancher/wrangler-cli v0.0.0-20220624114648-479c5692ba22
github.com/sirupsen/logrus v1.9.0
github.com/spf13/cobra v1.6.1
github.com/stretchr/testify v1.8.1
go.mozilla.org/sops/v3 v3.7.3
golang.org/x/sync v0.1.0
gopkg.in/yaml.v2 v2.4.0
helm.sh/helm/v3 v3.9.0
k8s.io/api v0.25.0
k8s.io/apiextensions-apiserver v0.24.5
k8s.io/apimachinery v0.25.0
github.com/rancher/gitjob v0.1.5
github.com/rancher/lasso v0.0.0-20210616224652-fc3ebd901c08
github.com/rancher/wrangler v1.0.0
github.com/rancher/wrangler-cli v0.0.0-20211112052728-f172e9bf59af
github.com/sirupsen/logrus v1.8.1
github.com/spf13/cobra v1.4.0
github.com/stretchr/testify v1.7.2
go.mozilla.org/sops/v3 v3.6.1
golang.org/x/sync v0.0.0-20220601150217-0de741cfad7f
gopkg.in/yaml.v3 v3.0.1 // indirect
helm.sh/helm/v3 v3.5.1
k8s.io/api v0.24.5
k8s.io/apimachinery v0.24.5
k8s.io/cli-runtime v0.24.5
k8s.io/client-go v12.0.0+incompatible
k8s.io/klog/v2 v2.80.1
k8s.io/kube-openapi v0.0.0-20220621154418-c39d0f63fac8
k8s.io/kubernetes v1.24.5
sigs.k8s.io/cli-utils v0.33.0
sigs.k8s.io/kustomize/api v0.12.1
sigs.k8s.io/kustomize/kyaml v0.13.9
k8s.io/client-go v11.0.1-0.20190816222228-6d55c1b1f1ca+incompatible
k8s.io/kubernetes v1.21.3
sigs.k8s.io/cli-utils v0.27.0
sigs.k8s.io/kustomize/api v0.11.4
sigs.k8s.io/kustomize/kyaml v0.13.6
sigs.k8s.io/yaml v1.3.0
)

require (
github.com/davecgh/go-spew v1.1.1
github.com/go-git/go-billy/v5 v5.0.0
github.com/go-logr/logr v1.2.3
github.com/gobwas/glob v0.2.3
github.com/onsi/ginkgo/v2 v2.1.3
github.com/onsi/gomega v1.17.0
gopkg.in/yaml.v2 v2.4.0
k8s.io/apiextensions-apiserver v0.24.0
k8s.io/klog/v2 v2.70.1
k8s.io/kube-openapi v0.0.0-20220328201542-3ee0da9b0b42
)

require (
cloud.google.com/go v0.102.1 // indirect
cloud.google.com/go/compute v1.10.0 // indirect
cloud.google.com/go/iam v0.3.0 // indirect
cloud.google.com/go/storage v1.23.0 // indirect
filippo.io/age v1.0.0 // indirect
github.com/Azure/azure-sdk-for-go v66.0.0+incompatible // indirect
github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 // indirect
github.com/Azure/go-autorest v14.2.0+incompatible // indirect
Expand All @@ -93,11 +98,8 @@ require (
github.com/BurntSushi/toml v1.1.0 // indirect
github.com/MakeNowJust/heredoc v1.0.0 // indirect
github.com/Masterminds/goutils v1.1.1 // indirect
github.com/Masterminds/sprig/v3 v3.2.2 // indirect
github.com/Masterminds/squirrel v1.5.3 // indirect
github.com/Microsoft/go-winio v0.6.0 // indirect
github.com/ProtonMail/go-crypto v0.0.0-20220623141421-5afb4c282135 // indirect
github.com/acomagu/bufpipe v1.0.3 // indirect
github.com/armon/go-metrics v0.4.0 // indirect
github.com/armon/go-radix v1.0.0 // indirect
github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d // indirect
Expand All @@ -118,7 +120,7 @@ require (
github.com/docker/go-connections v0.4.0 // indirect
github.com/docker/go-metrics v0.0.1 // indirect
github.com/docker/go-units v0.5.0 // indirect
github.com/emicklei/go-restful/v3 v3.9.0 // indirect
github.com/emicklei/go-restful v2.9.5+incompatible // indirect
github.com/emirpasic/gods v1.18.1 // indirect
github.com/exponent-io/jsonpath v0.0.0-20210407135951-1de76d718b3f // indirect
github.com/fatih/color v1.13.0 // indirect
Expand Down Expand Up @@ -153,7 +155,6 @@ require (
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
github.com/hashicorp/go-hclog v1.2.1 // indirect
github.com/hashicorp/go-immutable-radix v1.3.1 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/hashicorp/go-plugin v1.4.4 // indirect
github.com/hashicorp/go-retryablehttp v0.7.1 // indirect
github.com/hashicorp/go-rootcerts v1.0.2 // indirect
Expand Down Expand Up @@ -202,6 +203,7 @@ require (
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00 // indirect
github.com/morikuni/aec v1.0.0 // indirect
github.com/mozilla-services/yaml v0.0.0-20191106225358-5c216288813c // indirect
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
github.com/oklog/run v1.1.0 // indirect
github.com/opencontainers/go-digest v1.0.0 // indirect
Expand Down Expand Up @@ -251,7 +253,6 @@ require (
gopkg.in/square/go-jose.v2 v2.6.0 // indirect
gopkg.in/urfave/cli.v1 v1.20.0 // indirect
gopkg.in/warnings.v0 v0.1.2 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
k8s.io/apiserver v0.24.5 // indirect
k8s.io/code-generator v0.24.5 // indirect
k8s.io/component-base v0.24.5 // indirect
Expand Down

0 comments on commit abe5228

Please sign in to comment.