Skip to content

Commit

Permalink
Merge pull request #408 from fluxcd/fix/datasource-extra-components
Browse files Browse the repository at this point in the history
Fix missing components and components extra configuration
  • Loading branch information
phillebaba authored Mar 10, 2023
2 parents 2349bd0 + 35b0ad1 commit bd3561d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ jobs:
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
with:
go-version: 1.20.x
cache: true
cache-dependency-path: |
**/go.sum
**/go.mod
- name: Install tools
run: make tools
- name: Generate docs
Expand Down Expand Up @@ -55,6 +59,8 @@ jobs:
uses: helm/kind-action@d8ccf8fb623ce1bb360ae2f45f323d9d5c5e9f00 # v1.5.0
with:
version: v0.17.0
- name: Setup Flux CLI
uses: fluxcd/flux2/action@af153ea0cf4fd480c75accacc0c0dc7a2afdad0d # v0.41.0
- name: Apply Terraform
env:
GOOS: linux
Expand All @@ -64,3 +70,5 @@ jobs:
cd examples/install
terraform init
terraform apply -auto-approve -var "components_extra=[\"image-reflector-controller\", \"image-automation-controller\"]"
- name: Health check Flux
run: flux check
2 changes: 2 additions & 0 deletions internal/provider/data_install.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,8 @@ func (s *installDataSource) Read(ctx context.Context, req datasource.ReadRequest
return
}
components = append(components, componentsExtra...)
opt.Components = components
opt.ComponentsExtra = componentsExtra
tolerationKeys := []string{}
diags = data.TolerationKeys.ElementsAs(ctx, &tolerationKeys, false)
resp.Diagnostics.Append(diags...)
Expand Down

0 comments on commit bd3561d

Please sign in to comment.