Skip to content
This repository has been archived by the owner on Oct 27, 2022. It is now read-only.

Commit

Permalink
It compiles
Browse files Browse the repository at this point in the history
  • Loading branch information
rakesh-garimella committed Jan 28, 2020
1 parent 0cc8f3c commit 1a28eca
Show file tree
Hide file tree
Showing 8 changed files with 883 additions and 356 deletions.
4 changes: 2 additions & 2 deletions client/client.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package client

import (
gardener_apis "github.com/gardener/gardener/pkg/client/garden/clientset/versioned/typed/garden/v1beta1"
gardener_apis "github.com/gardener/gardener/pkg/client/core/clientset/versioned/typed/core/v1beta1"
"k8s.io/client-go/tools/clientcmd"
)

type Client struct {
GardenerClientSet *gardener_apis.GardenV1beta1Client
GardenerClientSet *gardener_apis.CoreV1beta1Client
}

// Client configures and returns a fully initialized GardenerClient
Expand Down
6 changes: 3 additions & 3 deletions expand/expand_metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package expand
import (
"time"

v1beta1 "github.com/gardener/gardener/pkg/apis/garden/v1beta1"
corev1beta1 "github.com/gardener/gardener/pkg/apis/core/v1beta1"
"github.com/hashicorp/terraform/helper/schema"
v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down Expand Up @@ -62,10 +62,10 @@ func expandObjectReference(l []interface{}) *v1.ObjectReference {
}
return obj
}
func expandDuration(v string) *v1beta1.GardenerDuration {
func expandDuration(v string) *corev1beta1.GardenerDuration {
d, err := time.ParseDuration(v)
if err != nil {
return &v1beta1.GardenerDuration{
return &corev1beta1.GardenerDuration{
Duration: d,
}
}
Expand Down

0 comments on commit 1a28eca

Please sign in to comment.