Skip to content

Commit

Permalink
RC-29658. Agent is now tf instead of rctl
Browse files Browse the repository at this point in the history
  • Loading branch information
Jainam M committed Sep 2, 2023
1 parent d6b95c5 commit f766fa7
Show file tree
Hide file tree
Showing 47 changed files with 180 additions and 222 deletions.
9 changes: 4 additions & 5 deletions rafay/resource_addon.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (
"github.com/RafaySystems/rafay-common/proto/types/hub/infrapb"
"github.com/RafaySystems/rctl/pkg/addon"
"github.com/RafaySystems/rctl/pkg/config"
"github.com/RafaySystems/rctl/pkg/versioninfo"
"github.com/davecgh/go-spew/spew"
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
Expand Down Expand Up @@ -53,7 +52,7 @@ func resourceAddonCreate(ctx context.Context, d *schema.ResourceData, m interfac
return diags
}
auth := config.GetConfig().GetAppAuthProfile()
client, err := typed.NewClientWithUserAgent(auth.URL, auth.Key, versioninfo.GetUserAgent(), options.WithInsecureSkipVerify(auth.SkipServerCertValid))
client, err := typed.NewClientWithUserAgent(auth.URL, auth.Key, getUserAgent(), options.WithInsecureSkipVerify(auth.SkipServerCertValid))
if err != nil {
return diags
}
Expand Down Expand Up @@ -98,7 +97,7 @@ func resourceAddonUpsert(ctx context.Context, d *schema.ResourceData, m interfac
}

auth := config.GetConfig().GetAppAuthProfile()
client, err := typed.NewClientWithUserAgent(auth.URL, auth.Key, versioninfo.GetUserAgent(), options.WithInsecureSkipVerify(auth.SkipServerCertValid))
client, err := typed.NewClientWithUserAgent(auth.URL, auth.Key, getUserAgent(), options.WithInsecureSkipVerify(auth.SkipServerCertValid))
if err != nil {
return diag.FromErr(err)
}
Expand Down Expand Up @@ -129,7 +128,7 @@ func resourceAddonDelete(ctx context.Context, d *schema.ResourceData, m interfac
}

auth := config.GetConfig().GetAppAuthProfile()
client, err := typed.NewClientWithUserAgent(auth.URL, auth.Key, versioninfo.GetUserAgent(), options.WithInsecureSkipVerify(auth.SkipServerCertValid))
client, err := typed.NewClientWithUserAgent(auth.URL, auth.Key, getUserAgent(), options.WithInsecureSkipVerify(auth.SkipServerCertValid))
if err != nil {
return diag.FromErr(err)
}
Expand Down Expand Up @@ -174,7 +173,7 @@ func resourceAddonRead(ctx context.Context, d *schema.ResourceData, m interface{
// log.Println("resourceAddonRead tfAddonState", w1)

auth := config.GetConfig().GetAppAuthProfile()
client, err := typed.NewClientWithUserAgent(auth.URL, auth.Key, versioninfo.GetUserAgent(), options.WithInsecureSkipVerify(auth.SkipServerCertValid))
client, err := typed.NewClientWithUserAgent(auth.URL, auth.Key, getUserAgent(), options.WithInsecureSkipVerify(auth.SkipServerCertValid))
if err != nil {
return diag.FromErr(err)
}
Expand Down
9 changes: 4 additions & 5 deletions rafay/resource_agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import (
"github.com/RafaySystems/rctl/pkg/agent"
"github.com/RafaySystems/rctl/pkg/config"
"github.com/RafaySystems/rctl/pkg/user"
"github.com/RafaySystems/rctl/pkg/versioninfo"
"github.com/davecgh/go-spew/spew"

"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
Expand Down Expand Up @@ -81,7 +80,7 @@ func resourceAgentCreate(ctx context.Context, d *schema.ResourceData, m interfac
}

auth := config.GetConfig().GetAppAuthProfile()
client, err := typed.NewClientWithUserAgent(auth.URL, auth.Key, versioninfo.GetUserAgent(), options.WithInsecureSkipVerify(auth.SkipServerCertValid))
client, err := typed.NewClientWithUserAgent(auth.URL, auth.Key, getUserAgent(), options.WithInsecureSkipVerify(auth.SkipServerCertValid))
if err != nil {
return diags
}
Expand Down Expand Up @@ -144,7 +143,7 @@ func resourceAgentUpsert(ctx context.Context, d *schema.ResourceData, m interfac
}

auth := config.GetConfig().GetAppAuthProfile()
client, err := typed.NewClientWithUserAgent(auth.URL, auth.Key, versioninfo.GetUserAgent(), options.WithInsecureSkipVerify(auth.SkipServerCertValid))
client, err := typed.NewClientWithUserAgent(auth.URL, auth.Key, getUserAgent(), options.WithInsecureSkipVerify(auth.SkipServerCertValid))
if err != nil {
return diag.FromErr(err)
}
Expand Down Expand Up @@ -208,7 +207,7 @@ func resourceAgentRead(ctx context.Context, d *schema.ResourceData, m interface{
}

auth := config.GetConfig().GetAppAuthProfile()
client, err := typed.NewClientWithUserAgent(auth.URL, auth.Key, versioninfo.GetUserAgent(), options.WithInsecureSkipVerify(auth.SkipServerCertValid))
client, err := typed.NewClientWithUserAgent(auth.URL, auth.Key, getUserAgent(), options.WithInsecureSkipVerify(auth.SkipServerCertValid))
if err != nil {
return diag.FromErr(err)
}
Expand Down Expand Up @@ -270,7 +269,7 @@ func resourceAgentDelete(ctx context.Context, d *schema.ResourceData, m interfac
}

auth := config.GetConfig().GetAppAuthProfile()
client, err := typed.NewClientWithUserAgent(auth.URL, auth.Key, versioninfo.GetUserAgent(), options.WithInsecureSkipVerify(auth.SkipServerCertValid))
client, err := typed.NewClientWithUserAgent(auth.URL, auth.Key, getUserAgent(), options.WithInsecureSkipVerify(auth.SkipServerCertValid))
if err != nil {
return diag.FromErr(err)
}
Expand Down
7 changes: 3 additions & 4 deletions rafay/resource_aks_cluster_v3.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import (
"github.com/RafaySystems/rafay-common/proto/types/hub/commonpb"
"github.com/RafaySystems/rafay-common/proto/types/hub/infrapb"
"github.com/RafaySystems/rctl/pkg/config"
"github.com/RafaySystems/rctl/pkg/versioninfo"
"github.com/davecgh/go-spew/spew"
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
schema "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
Expand Down Expand Up @@ -67,7 +66,7 @@ func resourceAKSClusterV3Read(ctx context.Context, d *schema.ResourceData, m int
}

auth := config.GetConfig().GetAppAuthProfile()
client, err := typed.NewClientWithUserAgent(auth.URL, auth.Key, versioninfo.GetUserAgent(), options.WithInsecureSkipVerify(auth.SkipServerCertValid))
client, err := typed.NewClientWithUserAgent(auth.URL, auth.Key, getUserAgent(), options.WithInsecureSkipVerify(auth.SkipServerCertValid))
if err != nil {
return diag.FromErr(err)
}
Expand Down Expand Up @@ -108,7 +107,7 @@ func resourceAKSClusterV3Delete(ctx context.Context, d *schema.ResourceData, m i
}

auth := config.GetConfig().GetAppAuthProfile()
client, err := typed.NewClientWithUserAgent(auth.URL, auth.Key, versioninfo.GetUserAgent(), options.WithInsecureSkipVerify(auth.SkipServerCertValid))
client, err := typed.NewClientWithUserAgent(auth.URL, auth.Key, getUserAgent(), options.WithInsecureSkipVerify(auth.SkipServerCertValid))
if err != nil {
return diag.FromErr(err)
}
Expand Down Expand Up @@ -206,7 +205,7 @@ func resourceAKSClusterV3Upsert(ctx context.Context, d *schema.ResourceData, m i
log.Println(">>>>>> CLUSTER: ", cluster)

auth := config.GetConfig().GetAppAuthProfile()
client, err := typed.NewClientWithUserAgent(auth.URL, auth.Key, versioninfo.GetUserAgent(), options.WithInsecureSkipVerify(auth.SkipServerCertValid))
client, err := typed.NewClientWithUserAgent(auth.URL, auth.Key, getUserAgent(), options.WithInsecureSkipVerify(auth.SkipServerCertValid))
if err != nil {
return diag.FromErr(err)
}
Expand Down
7 changes: 3 additions & 4 deletions rafay/resource_alertconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import (
typed "github.com/RafaySystems/rafay-common/pkg/hub/client/typed"
"github.com/RafaySystems/rafay-common/pkg/hub/terraform/resource"
"github.com/RafaySystems/rafay-common/proto/types/hub/settingspb"
"github.com/RafaySystems/rctl/pkg/versioninfo"

"github.com/hashicorp/terraform-plugin-sdk/v2/diag"

Expand Down Expand Up @@ -51,7 +50,7 @@ func resourceAlertConfigCreate(ctx context.Context, d *schema.ResourceData, m in
return diags
}
auth := config.GetConfig().GetAppAuthProfile()
client, err := typed.NewClientWithUserAgent(auth.URL, auth.Key, versioninfo.GetUserAgent(), options.WithInsecureSkipVerify(auth.SkipServerCertValid))
client, err := typed.NewClientWithUserAgent(auth.URL, auth.Key, getUserAgent(), options.WithInsecureSkipVerify(auth.SkipServerCertValid))
if err != nil {
return diags
}
Expand Down Expand Up @@ -80,7 +79,7 @@ func resourceAlertConfigUpsert(ctx context.Context, d *schema.ResourceData, m in
}

auth := config.GetConfig().GetAppAuthProfile()
client, err := typed.NewClientWithUserAgent(auth.URL, auth.Key, versioninfo.GetUserAgent(), options.WithInsecureSkipVerify(auth.SkipServerCertValid))
client, err := typed.NewClientWithUserAgent(auth.URL, auth.Key, getUserAgent(), options.WithInsecureSkipVerify(auth.SkipServerCertValid))
if err != nil {
return diag.FromErr(err)
}
Expand Down Expand Up @@ -113,7 +112,7 @@ func resourceAlertConfigRead(ctx context.Context, d *schema.ResourceData, m inte
}

auth := config.GetConfig().GetAppAuthProfile()
client, err := typed.NewClientWithUserAgent(auth.URL, auth.Key, versioninfo.GetUserAgent(), options.WithInsecureSkipVerify(auth.SkipServerCertValid))
client, err := typed.NewClientWithUserAgent(auth.URL, auth.Key, getUserAgent(), options.WithInsecureSkipVerify(auth.SkipServerCertValid))
if err != nil {
log.Println("read client err")
return diag.FromErr(err)
Expand Down
9 changes: 4 additions & 5 deletions rafay/resource_blueprint.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import (
"github.com/RafaySystems/rctl/pkg/blueprint"
bp "github.com/RafaySystems/rctl/pkg/blueprint"
"github.com/RafaySystems/rctl/pkg/config"
"github.com/RafaySystems/rctl/pkg/versioninfo"
"github.com/davecgh/go-spew/spew"
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"

Expand Down Expand Up @@ -92,7 +91,7 @@ func resourceBluePrintCreate(ctx context.Context, d *schema.ResourceData, m inte
return diags
}
auth := config.GetConfig().GetAppAuthProfile()
client, err := typed.NewClientWithUserAgent(auth.URL, auth.Key, versioninfo.GetUserAgent(), options.WithInsecureSkipVerify(auth.SkipServerCertValid))
client, err := typed.NewClientWithUserAgent(auth.URL, auth.Key, getUserAgent(), options.WithInsecureSkipVerify(auth.SkipServerCertValid))
if err != nil {
return diags
}
Expand Down Expand Up @@ -137,7 +136,7 @@ func resourceBluePrintUpsert(ctx context.Context, d *schema.ResourceData, m inte
}

auth := config.GetConfig().GetAppAuthProfile()
client, err := typed.NewClientWithUserAgent(auth.URL, auth.Key, versioninfo.GetUserAgent(), options.WithInsecureSkipVerify(auth.SkipServerCertValid))
client, err := typed.NewClientWithUserAgent(auth.URL, auth.Key, getUserAgent(), options.WithInsecureSkipVerify(auth.SkipServerCertValid))
if err != nil {
return diag.FromErr(err)
}
Expand Down Expand Up @@ -190,7 +189,7 @@ func resourceBluePrintRead(ctx context.Context, d *schema.ResourceData, m interf
// log.Println("resourceBluePrintRead tfBlueprintState", w1)

auth := config.GetConfig().GetAppAuthProfile()
client, err := typed.NewClientWithUserAgent(auth.URL, auth.Key, versioninfo.GetUserAgent(), options.WithInsecureSkipVerify(auth.SkipServerCertValid))
client, err := typed.NewClientWithUserAgent(auth.URL, auth.Key, getUserAgent(), options.WithInsecureSkipVerify(auth.SkipServerCertValid))
if err != nil {
return diag.FromErr(err)
}
Expand Down Expand Up @@ -239,7 +238,7 @@ func resourceBluePrintDelete(ctx context.Context, d *schema.ResourceData, m inte
}

auth := config.GetConfig().GetAppAuthProfile()
client, err := typed.NewClientWithUserAgent(auth.URL, auth.Key, versioninfo.GetUserAgent(), options.WithInsecureSkipVerify(auth.SkipServerCertValid))
client, err := typed.NewClientWithUserAgent(auth.URL, auth.Key, getUserAgent(), options.WithInsecureSkipVerify(auth.SkipServerCertValid))
if err != nil {
return diag.FromErr(err)
}
Expand Down
9 changes: 4 additions & 5 deletions rafay/resource_catalog.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (
typed "github.com/RafaySystems/rafay-common/pkg/hub/client/typed"
"github.com/RafaySystems/rafay-common/pkg/hub/terraform/resource"
"github.com/RafaySystems/rafay-common/proto/types/hub/appspb"
"github.com/RafaySystems/rctl/pkg/versioninfo"

"github.com/hashicorp/terraform-plugin-sdk/v2/diag"

Expand Down Expand Up @@ -52,7 +51,7 @@ func resourceCatalogCreate(ctx context.Context, d *schema.ResourceData, m interf
return diags
}
auth := config.GetConfig().GetAppAuthProfile()
client, err := typed.NewClientWithUserAgent(auth.URL, auth.Key, versioninfo.GetUserAgent(), options.WithInsecureSkipVerify(auth.SkipServerCertValid))
client, err := typed.NewClientWithUserAgent(auth.URL, auth.Key, getUserAgent(), options.WithInsecureSkipVerify(auth.SkipServerCertValid))
if err != nil {
return diags
}
Expand Down Expand Up @@ -81,7 +80,7 @@ func resourceCatalogUpsert(ctx context.Context, d *schema.ResourceData, m interf
}

auth := config.GetConfig().GetAppAuthProfile()
client, err := typed.NewClientWithUserAgent(auth.URL, auth.Key, versioninfo.GetUserAgent(), options.WithInsecureSkipVerify(auth.SkipServerCertValid))
client, err := typed.NewClientWithUserAgent(auth.URL, auth.Key, getUserAgent(), options.WithInsecureSkipVerify(auth.SkipServerCertValid))
if err != nil {
return diag.FromErr(err)
}
Expand Down Expand Up @@ -118,7 +117,7 @@ func resourceCatalogRead(ctx context.Context, d *schema.ResourceData, m interfac
// log.Println("resourceWorkloadRead tfWorkloadState", w1)

auth := config.GetConfig().GetAppAuthProfile()
client, err := typed.NewClientWithUserAgent(auth.URL, auth.Key, versioninfo.GetUserAgent(), options.WithInsecureSkipVerify(auth.SkipServerCertValid))
client, err := typed.NewClientWithUserAgent(auth.URL, auth.Key, getUserAgent(), options.WithInsecureSkipVerify(auth.SkipServerCertValid))
if err != nil {
log.Println("read client err")
return diag.FromErr(err)
Expand Down Expand Up @@ -180,7 +179,7 @@ func resourceCatalogDelete(ctx context.Context, d *schema.ResourceData, m interf
}

auth := config.GetConfig().GetAppAuthProfile()
client, err := typed.NewClientWithUserAgent(auth.URL, auth.Key, versioninfo.GetUserAgent(), options.WithInsecureSkipVerify(auth.SkipServerCertValid))
client, err := typed.NewClientWithUserAgent(auth.URL, auth.Key, getUserAgent(), options.WithInsecureSkipVerify(auth.SkipServerCertValid))
if err != nil {
return diag.FromErr(err)
}
Expand Down
9 changes: 4 additions & 5 deletions rafay/resource_chargeback_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import (
"github.com/RafaySystems/rafay-common/pkg/hub/terraform/resource"
"github.com/RafaySystems/rafay-common/proto/types/hub/systempb"
"github.com/RafaySystems/rctl/pkg/config"
"github.com/RafaySystems/rctl/pkg/versioninfo"
"github.com/davecgh/go-spew/spew"

"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
Expand Down Expand Up @@ -53,7 +52,7 @@ func resourceChargebackGroupCreate(ctx context.Context, d *schema.ResourceData,
return diags
}
auth := config.GetConfig().GetAppAuthProfile()
client, err := typed.NewClientWithUserAgent(auth.URL, auth.Key, versioninfo.GetUserAgent(), options.WithInsecureSkipVerify(auth.SkipServerCertValid))
client, err := typed.NewClientWithUserAgent(auth.URL, auth.Key, getUserAgent(), options.WithInsecureSkipVerify(auth.SkipServerCertValid))
if err != nil {
return diags
}
Expand Down Expand Up @@ -97,7 +96,7 @@ func resourceChargebackGroupUpsert(ctx context.Context, d *schema.ResourceData,
}

auth := config.GetConfig().GetAppAuthProfile()
client, err := typed.NewClientWithUserAgent(auth.URL, auth.Key, versioninfo.GetUserAgent(), options.WithInsecureSkipVerify(auth.SkipServerCertValid))
client, err := typed.NewClientWithUserAgent(auth.URL, auth.Key, getUserAgent(), options.WithInsecureSkipVerify(auth.SkipServerCertValid))
if err != nil {
return diag.FromErr(err)
}
Expand Down Expand Up @@ -139,7 +138,7 @@ func resourceChargebackGroupRead(ctx context.Context, d *schema.ResourceData, m
}

auth := config.GetConfig().GetAppAuthProfile()
client, err := typed.NewClientWithUserAgent(auth.URL, auth.Key, versioninfo.GetUserAgent(), options.WithInsecureSkipVerify(auth.SkipServerCertValid))
client, err := typed.NewClientWithUserAgent(auth.URL, auth.Key, getUserAgent(), options.WithInsecureSkipVerify(auth.SkipServerCertValid))
if err != nil {
return diag.FromErr(err)
}
Expand Down Expand Up @@ -174,7 +173,7 @@ func resourceChargebackGroupDelete(ctx context.Context, d *schema.ResourceData,
}

auth := config.GetConfig().GetAppAuthProfile()
client, err := typed.NewClientWithUserAgent(auth.URL, auth.Key, versioninfo.GetUserAgent(), options.WithInsecureSkipVerify(auth.SkipServerCertValid))
client, err := typed.NewClientWithUserAgent(auth.URL, auth.Key, getUserAgent(), options.WithInsecureSkipVerify(auth.SkipServerCertValid))
if err != nil {
return diag.FromErr(err)
}
Expand Down
7 changes: 3 additions & 4 deletions rafay/resource_chargeback_group_report.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import (
"github.com/RafaySystems/rafay-common/pkg/hub/terraform/resource"
"github.com/RafaySystems/rafay-common/proto/types/hub/systempb"
"github.com/RafaySystems/rctl/pkg/config"
"github.com/RafaySystems/rctl/pkg/versioninfo"
"github.com/davecgh/go-spew/spew"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"

Expand Down Expand Up @@ -54,7 +53,7 @@ func resourceChargebackGroupReportCreate(ctx context.Context, d *schema.Resource
return diags
}
auth := config.GetConfig().GetAppAuthProfile()
client, err := typed.NewClientWithUserAgent(auth.URL, auth.Key, versioninfo.GetUserAgent(), options.WithInsecureSkipVerify(auth.SkipServerCertValid))
client, err := typed.NewClientWithUserAgent(auth.URL, auth.Key, getUserAgent(), options.WithInsecureSkipVerify(auth.SkipServerCertValid))
if err != nil {
return diags
}
Expand Down Expand Up @@ -100,7 +99,7 @@ func resourceChargebackGroupReportUpsert(ctx context.Context, d *schema.Resource
}

auth := config.GetConfig().GetAppAuthProfile()
client, err := typed.NewClientWithUserAgent(auth.URL, auth.Key, versioninfo.GetUserAgent(), options.WithInsecureSkipVerify(auth.SkipServerCertValid))
client, err := typed.NewClientWithUserAgent(auth.URL, auth.Key, getUserAgent(), options.WithInsecureSkipVerify(auth.SkipServerCertValid))
if err != nil {
return diag.FromErr(err)
}
Expand Down Expand Up @@ -142,7 +141,7 @@ func resourceChargebackGroupReportRead(ctx context.Context, d *schema.ResourceDa
}

auth := config.GetConfig().GetAppAuthProfile()
client, err := typed.NewClientWithUserAgent(auth.URL, auth.Key, versioninfo.GetUserAgent(), options.WithInsecureSkipVerify(auth.SkipServerCertValid))
client, err := typed.NewClientWithUserAgent(auth.URL, auth.Key, getUserAgent(), options.WithInsecureSkipVerify(auth.SkipServerCertValid))
if err != nil {
return diag.FromErr(err)
}
Expand Down
7 changes: 3 additions & 4 deletions rafay/resource_chargeback_share.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import (
"github.com/RafaySystems/rafay-common/pkg/hub/terraform/resource"
"github.com/RafaySystems/rafay-common/proto/types/hub/systempb"
"github.com/RafaySystems/rctl/pkg/config"
"github.com/RafaySystems/rctl/pkg/versioninfo"
"github.com/davecgh/go-spew/spew"

"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
Expand Down Expand Up @@ -53,7 +52,7 @@ func resourceChargebackShareCreate(ctx context.Context, d *schema.ResourceData,
return diags
}
auth := config.GetConfig().GetAppAuthProfile()
client, err := typed.NewClientWithUserAgent(auth.URL, auth.Key, versioninfo.GetUserAgent(), options.WithInsecureSkipVerify(auth.SkipServerCertValid))
client, err := typed.NewClientWithUserAgent(auth.URL, auth.Key, getUserAgent(), options.WithInsecureSkipVerify(auth.SkipServerCertValid))
if err != nil {
return diags
}
Expand Down Expand Up @@ -98,7 +97,7 @@ func resourceChargebackShareUpsert(ctx context.Context, d *schema.ResourceData,
}

auth := config.GetConfig().GetAppAuthProfile()
client, err := typed.NewClientWithUserAgent(auth.URL, auth.Key, versioninfo.GetUserAgent(), options.WithInsecureSkipVerify(auth.SkipServerCertValid))
client, err := typed.NewClientWithUserAgent(auth.URL, auth.Key, getUserAgent(), options.WithInsecureSkipVerify(auth.SkipServerCertValid))
if err != nil {
return diag.FromErr(err)
}
Expand Down Expand Up @@ -140,7 +139,7 @@ func resourceChargebackShareRead(ctx context.Context, d *schema.ResourceData, m
}

auth := config.GetConfig().GetAppAuthProfile()
client, err := typed.NewClientWithUserAgent(auth.URL, auth.Key, versioninfo.GetUserAgent(), options.WithInsecureSkipVerify(auth.SkipServerCertValid))
client, err := typed.NewClientWithUserAgent(auth.URL, auth.Key, getUserAgent(), options.WithInsecureSkipVerify(auth.SkipServerCertValid))
if err != nil {
return diag.FromErr(err)
}
Expand Down
Loading

0 comments on commit f766fa7

Please sign in to comment.