Skip to content

Commit

Permalink
correct isStandaloneInstance logic
Browse files Browse the repository at this point in the history
  • Loading branch information
errordeveloper committed Mar 12, 2024
1 parent 6d12d4b commit d0cb25c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/timoni/bundle_apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ type applyInstanceOptions struct {
}

func applyInstance(ctx context.Context, log logr.Logger, builder *engine.ModuleBuilder, buildResult cue.Value, instance *engine.BundleInstance, opts applyInstanceOptions, timeout time.Duration) error {
isStandaloneInstance := instance.Bundle != ""
isStandaloneInstance := instance.Bundle == ""

finalValues, err := builder.GetDefaultValues()
if err != nil {
Expand Down Expand Up @@ -386,7 +386,7 @@ func applyInstance(ctx context.Context, log logr.Logger, builder *engine.ModuleB

im := runtime.NewInstanceManager(instance.Name, instance.Namespace, finalValues, instance.Module)

if isStandaloneInstance {
if !isStandaloneInstance {
if im.Instance.Labels == nil {
im.Instance.Labels = make(map[string]string)
}
Expand Down

0 comments on commit d0cb25c

Please sign in to comment.