Skip to content

Commit

Permalink
Unmarshal yaml (run-int-tests) (#1257)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertgraeff authored Nov 4, 2024
1 parent 0c75008 commit ecab442
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/utils/clusters/shoot_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ package clusters

import (
"context"
"encoding/json"
"fmt"

apierrors "k8s.io/apimachinery/pkg/api/errors"
Expand All @@ -15,6 +14,7 @@ import (
"k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/client-go/dynamic"
"k8s.io/client-go/tools/clientcmd"
"sigs.k8s.io/yaml"

"github.com/gardener/landscaper/apis/core/v1alpha1"
"github.com/gardener/landscaper/apis/core/v1alpha1/targettypes"
Expand Down Expand Up @@ -56,7 +56,7 @@ func NewShootClientFromTarget(ctx context.Context, gardenTarget *v1alpha1.Target
}

targetConfig := &targettypes.KubernetesClusterTargetConfig{}
err = json.Unmarshal([]byte(resolvedTarget.Content), targetConfig)
err = yaml.Unmarshal([]byte(resolvedTarget.Content), targetConfig)
if err != nil {
return nil, fmt.Errorf("shoot client: failed to unmarshal target config: %w", err)
}
Expand Down

0 comments on commit ecab442

Please sign in to comment.