Skip to content

Commit

Permalink
fixup! Upgrade cilium-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
littlejo committed Sep 16, 2024
1 parent 29038cb commit d8b7fd8
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions cilium/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,15 +178,7 @@ func (r *CiliumDeployResource) Create(ctx context.Context, req resource.CreateRe
params.HelmReleaseName = helm_release
wait := data.Wait.ValueBool()

helmSet := make([]types.String, 0, len(data.HelmSet.Elements()))
data.HelmSet.ElementsAs(ctx, &helmSet, false)

h := []string{}
for _, e := range helmSet {
h = append(h, e.ValueString())
}

options.Values = h
options.Values = ValueList(ctx, data.HelmSet)

values := data.Values.ValueString()

Expand Down Expand Up @@ -314,15 +306,8 @@ func (r *CiliumDeployResource) Update(ctx context.Context, req resource.UpdateRe
params.HelmResetValues = data.Reset.ValueBool()
params.HelmReuseValues = data.Reuse.ValueBool()
wait := data.Wait.ValueBool()
helmSet := make([]types.String, 0, len(data.HelmSet.Elements()))
data.HelmSet.ElementsAs(ctx, &helmSet, false)

h := []string{}
for _, e := range helmSet {
h = append(h, e.ValueString())
}

options.Values = h
options.Values = ValueList(ctx, data.HelmSet)

values := data.Values.ValueString()

Expand Down

0 comments on commit d8b7fd8

Please sign in to comment.