From fb005323f5adaa3e8458ea266cf0f740ae0b23cd Mon Sep 17 00:00:00 2001 From: Pulumi Bot <30351955+pulumi-bot@users.noreply.github.com> Date: Fri, 20 Sep 2024 12:48:15 +0100 Subject: [PATCH] Upgrade pulumi-terraform-bridge to v3.91.0 (#563) This PR was generated via `$ upgrade-provider pulumi/pulumi-rancher2 --kind=bridge --pr-reviewers=iwahbe`. --- - Updating Java Gen version from 0.16.0 to 0.16.1. - Upgrading pulumi-terraform-bridge from v3.90.0 to v3.91.0. --- .pulumi-java-gen.version | 2 +- examples/go.mod | 7 +-- examples/go.sum | 14 ++--- provider/go.mod | 29 +++++----- provider/go.sum | 56 +++++++++---------- sdk/go.mod | 4 +- sdk/go.sum | 8 +-- sdk/go/rancher2/getApp.go | 18 ++++-- sdk/go/rancher2/getCatalog.go | 18 ++++-- sdk/go/rancher2/getCatalogV2.go | 18 ++++-- sdk/go/rancher2/getCertificate.go | 18 ++++-- sdk/go/rancher2/getCloudCredential.go | 18 ++++-- sdk/go/rancher2/getCluster.go | 18 ++++-- sdk/go/rancher2/getClusterDriver.go | 18 ++++-- .../rancher2/getClusterRoleTemplateBinding.go | 18 ++++-- sdk/go/rancher2/getClusterTemplate.go | 18 ++++-- sdk/go/rancher2/getClusterV2.go | 18 ++++-- sdk/go/rancher2/getConfigMapV2.go | 18 ++++-- sdk/go/rancher2/getEtcdBackup.go | 18 ++++-- sdk/go/rancher2/getGlobalDnsProvider.go | 18 ++++-- sdk/go/rancher2/getGlobalRole.go | 18 ++++-- sdk/go/rancher2/getGlobalRoleBinding.go | 18 ++++-- sdk/go/rancher2/getMultiClusterApp.go | 18 ++++-- sdk/go/rancher2/getNamespace.go | 18 ++++-- sdk/go/rancher2/getNodeDriver.go | 18 ++++-- sdk/go/rancher2/getNodePool.go | 18 ++++-- sdk/go/rancher2/getNodeTemplate.go | 18 ++++-- ...dSecurityAdmissionConfigurationTemplate.go | 18 ++++-- sdk/go/rancher2/getPrincipal.go | 18 ++++-- sdk/go/rancher2/getProject.go | 18 ++++-- .../rancher2/getProjectRoleTemplateBinding.go | 18 ++++-- sdk/go/rancher2/getRegistry.go | 18 ++++-- sdk/go/rancher2/getRoleTemplate.go | 18 ++++-- sdk/go/rancher2/getSecret.go | 18 ++++-- sdk/go/rancher2/getSecretV2.go | 18 ++++-- sdk/go/rancher2/getSetting.go | 18 ++++-- sdk/go/rancher2/getStorageClassV2.go | 18 ++++-- sdk/go/rancher2/getUser.go | 18 ++++-- sdk/java/build.gradle | 2 +- sdk/nodejs/getApp.ts | 9 ++- sdk/nodejs/getCatalog.ts | 7 ++- sdk/nodejs/getCatalogV2.ts | 11 +++- sdk/nodejs/getCertificate.ts | 8 ++- sdk/nodejs/getCloudCredential.ts | 6 +- sdk/nodejs/getCluster.ts | 7 ++- sdk/nodejs/getClusterDriver.ts | 7 ++- sdk/nodejs/getClusterRoleTemplateBinding.ts | 8 ++- sdk/nodejs/getClusterTemplate.ts | 9 ++- sdk/nodejs/getClusterV2.ts | 7 ++- sdk/nodejs/getConfigMapV2.ts | 8 ++- sdk/nodejs/getEtcdBackup.ts | 7 ++- sdk/nodejs/getGlobalDnsProvider.ts | 6 +- sdk/nodejs/getGlobalRole.ts | 7 ++- sdk/nodejs/getGlobalRoleBinding.ts | 7 ++- sdk/nodejs/getMultiClusterApp.ts | 6 +- sdk/nodejs/getNamespace.ts | 7 ++- sdk/nodejs/getNodeDriver.ts | 7 ++- sdk/nodejs/getNodePool.ts | 8 ++- sdk/nodejs/getNodeTemplate.ts | 7 ++- ...dSecurityAdmissionConfigurationTemplate.ts | 8 ++- sdk/nodejs/getPrincipal.ts | 7 ++- sdk/nodejs/getProject.ts | 7 ++- sdk/nodejs/getProjectRoleTemplateBinding.ts | 8 ++- sdk/nodejs/getRegistry.ts | 8 ++- sdk/nodejs/getRoleTemplate.ts | 8 ++- sdk/nodejs/getSecret.ts | 8 ++- sdk/nodejs/getSecretV2.ts | 8 ++- sdk/nodejs/getSetting.ts | 6 +- sdk/nodejs/getStorageClassV2.ts | 7 ++- sdk/nodejs/getUser.ts | 9 ++- 70 files changed, 599 insertions(+), 314 deletions(-) diff --git a/.pulumi-java-gen.version b/.pulumi-java-gen.version index d183d4ace..92e0c7438 100644 --- a/.pulumi-java-gen.version +++ b/.pulumi-java-gen.version @@ -1 +1 @@ -0.16.0 \ No newline at end of file +0.16.1 \ No newline at end of file diff --git a/examples/go.mod b/examples/go.mod index 075375ce4..174efd82b 100644 --- a/examples/go.mod +++ b/examples/go.mod @@ -2,7 +2,7 @@ module github.com/pulumi/pulumi-rancher2/examples/v6 go 1.21 -require github.com/pulumi/pulumi/pkg/v3 v3.130.0 +require github.com/pulumi/pulumi/pkg/v3 v3.133.0 require ( cloud.google.com/go v0.112.1 // indirect @@ -122,8 +122,8 @@ require ( github.com/pkg/term v1.1.0 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 // indirect - github.com/pulumi/esc v0.9.1 // indirect - github.com/pulumi/pulumi/sdk/v3 v3.130.0 // indirect + github.com/pulumi/esc v0.10.0 // indirect + github.com/pulumi/pulumi/sdk/v3 v3.133.0 // indirect github.com/rivo/uniseg v0.4.4 // indirect github.com/rogpeppe/go-internal v1.12.0 // indirect github.com/ryanuber/go-glob v1.0.0 // indirect @@ -137,7 +137,6 @@ require ( github.com/spf13/pflag v1.0.5 // indirect github.com/stretchr/testify v1.9.0 // indirect github.com/texttheater/golang-levenshtein v1.0.1 // indirect - github.com/tweekmonster/luser v0.0.0-20161003172636-3fa38070dbd7 // indirect github.com/uber/jaeger-client-go v2.30.0+incompatible // indirect github.com/uber/jaeger-lib v2.4.1+incompatible // indirect github.com/xanzy/ssh-agent v0.3.3 // indirect diff --git a/examples/go.sum b/examples/go.sum index 1fc06cde5..3cbb21d73 100644 --- a/examples/go.sum +++ b/examples/go.sum @@ -340,12 +340,12 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 h1:vkHw5I/plNdTr435cARxCW6q9gc0S/Yxz7Mkd38pOb0= github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231/go.mod h1:murToZ2N9hNJzewjHBgfFdXhZKjY3z5cYC1VXk+lbFE= -github.com/pulumi/esc v0.9.1 h1:HH5eEv8sgyxSpY5a8yePyqFXzA8cvBvapfH8457+mIs= -github.com/pulumi/esc v0.9.1/go.mod h1:oEJ6bOsjYlQUpjf70GiX+CXn3VBmpwFDxUTlmtUN84c= -github.com/pulumi/pulumi/pkg/v3 v3.130.0 h1:lS51XeCnhg72LXkMiw2FP1cGP+Y85wYD3quWhCPD5+M= -github.com/pulumi/pulumi/pkg/v3 v3.130.0/go.mod h1:jhZ1Ug5Rl1qivexgEWvmwSWYIT/jRnKSFhLwwv6PrZ0= -github.com/pulumi/pulumi/sdk/v3 v3.130.0 h1:gGJNd+akPqhZ+vrsZmAjSNJn6kGJkitjjkwrmIQMmn8= -github.com/pulumi/pulumi/sdk/v3 v3.130.0/go.mod h1:p1U24en3zt51agx+WlNboSOV8eLlPWYAkxMzVEXKbnY= +github.com/pulumi/esc v0.10.0 h1:jzBKzkLVW0mePeanDRfqSQoCJ5yrkux0jIwAkUxpRKE= +github.com/pulumi/esc v0.10.0/go.mod h1:2Bfa+FWj/xl8CKqRTWbWgDX0SOD4opdQgvYSURTGK2c= +github.com/pulumi/pulumi/pkg/v3 v3.133.0 h1:j1rd7ToLZIQc5H0427ISOXSbOIIemZ6B0MXtRhQ38Yg= +github.com/pulumi/pulumi/pkg/v3 v3.133.0/go.mod h1:JtMAnrsFIccO138WcMfPdhO0PioDukKihnZC0xTRLwo= +github.com/pulumi/pulumi/sdk/v3 v3.133.0 h1:o+7dbJZY9BVgAjOF5GYIWgjp/zpKAgWZwD4pPjUMXKQ= +github.com/pulumi/pulumi/sdk/v3 v3.133.0/go.mod h1:J5kQEX8v87aeUhk6NdQXnjCo1DbiOnOiL3Sf2DuDda8= github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.4.4 h1:8TfxU8dW6PdqD27gjM8MVNuicgxIjxpm4K7x4jp8sis= @@ -390,8 +390,6 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/texttheater/golang-levenshtein v1.0.1 h1:+cRNoVrfiwufQPhoMzB6N0Yf/Mqajr6t1lOv8GyGE2U= github.com/texttheater/golang-levenshtein v1.0.1/go.mod h1:PYAKrbF5sAiq9wd+H82hs7gNaen0CplQ9uvm6+enD/8= -github.com/tweekmonster/luser v0.0.0-20161003172636-3fa38070dbd7 h1:X9dsIWPuuEJlPX//UmRKophhOKCGXc46RVIGuttks68= -github.com/tweekmonster/luser v0.0.0-20161003172636-3fa38070dbd7/go.mod h1:UxoP3EypF8JfGEjAII8jx1q8rQyDnX8qdTCs/UQBVIE= github.com/uber/jaeger-client-go v2.30.0+incompatible h1:D6wyKGCecFaSRUpo8lCVbaOOb6ThwMmTEbhRwtKR97o= github.com/uber/jaeger-client-go v2.30.0+incompatible/go.mod h1:WVhlPFC8FDjOFMMWRy2pZqQJSXxYSwNYOkTr/Z6d3Kk= github.com/uber/jaeger-lib v2.4.1+incompatible h1:td4jdvLcExb4cBISKIpHuGoVXh+dVKhn2Um6rjCsSsg= diff --git a/provider/go.mod b/provider/go.mod index d05240efc..40a25a4f1 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -66,8 +66,8 @@ replace ( require ( github.com/hashicorp/terraform-plugin-sdk v1.17.2 - github.com/pulumi/pulumi-terraform-bridge/v3 v3.90.0 - github.com/pulumi/pulumi/sdk/v3 v3.130.0 + github.com/pulumi/pulumi-terraform-bridge/v3 v3.91.0 + github.com/pulumi/pulumi/sdk/v3 v3.133.0 github.com/rancher/terraform-provider-rancher2 v1.25.1-0.20240802230704-a41ef9c1cefd ) @@ -121,7 +121,7 @@ require ( github.com/blang/semver v3.5.1+incompatible // indirect github.com/blang/semver/v4 v4.0.0 // indirect github.com/cenkalti/backoff/v3 v3.2.2 // indirect - github.com/cespare/xxhash/v2 v2.2.0 // indirect + github.com/cespare/xxhash/v2 v2.3.0 // indirect github.com/charmbracelet/bubbles v0.16.1 // indirect github.com/charmbracelet/bubbletea v0.25.0 // indirect github.com/charmbracelet/lipgloss v0.7.1 // indirect @@ -152,7 +152,7 @@ require ( github.com/gofrs/uuid v4.4.0+incompatible // indirect github.com/gogo/protobuf v1.3.2 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect - github.com/golang/glog v1.2.0 // indirect + github.com/golang/glog v1.2.1 // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect github.com/golang/protobuf v1.5.4 // indirect github.com/google/gnostic-models v0.6.8 // indirect @@ -177,7 +177,7 @@ require ( github.com/hashicorp/go-getter v1.7.5 // indirect github.com/hashicorp/go-hclog v1.6.3 // indirect github.com/hashicorp/go-multierror v1.1.1 // indirect - github.com/hashicorp/go-plugin v1.6.0 // indirect + github.com/hashicorp/go-plugin v1.6.1 // indirect github.com/hashicorp/go-retryablehttp v0.7.7 // indirect github.com/hashicorp/go-rootcerts v1.0.2 // indirect github.com/hashicorp/go-safetemp v1.0.0 // indirect @@ -193,7 +193,7 @@ require ( github.com/hashicorp/terraform-config-inspect v0.0.0-20191212124732-c6ae6269b9d7 // indirect github.com/hashicorp/terraform-exec v0.20.0 // indirect github.com/hashicorp/terraform-json v0.21.0 // indirect - github.com/hashicorp/terraform-plugin-go v0.23.0 // indirect + github.com/hashicorp/terraform-plugin-go v0.24.0 // indirect github.com/hashicorp/terraform-plugin-log v0.9.0 // indirect github.com/hashicorp/terraform-plugin-test/v2 v2.2.1 // indirect github.com/hashicorp/terraform-svchost v0.1.1 // indirect @@ -253,12 +253,12 @@ require ( github.com/prometheus/common v0.45.0 // indirect github.com/prometheus/procfs v0.12.0 // indirect github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 // indirect - github.com/pulumi/esc v0.9.1 // indirect + github.com/pulumi/esc v0.10.0 // indirect github.com/pulumi/inflector v0.1.1 // indirect - github.com/pulumi/pulumi-java/pkg v0.14.0 // indirect + github.com/pulumi/pulumi-java/pkg v0.16.1 // indirect github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.8 // indirect - github.com/pulumi/pulumi-yaml v1.9.2 // indirect - github.com/pulumi/pulumi/pkg/v3 v3.130.0 // indirect + github.com/pulumi/pulumi-yaml v1.10.0 // indirect + github.com/pulumi/pulumi/pkg/v3 v3.133.0 // indirect github.com/pulumi/schema-tools v0.1.2 // indirect github.com/pulumi/terraform-diff-reader v0.0.2 // indirect github.com/rancher/aks-operator v1.9.0-rc.9 // indirect @@ -293,7 +293,6 @@ require ( github.com/stretchr/testify v1.9.0 // indirect github.com/teekennedy/goldmark-markdown v0.3.0 // indirect github.com/texttheater/golang-levenshtein v1.0.1 // indirect - github.com/tweekmonster/luser v0.0.0-20161003172636-3fa38070dbd7 // indirect github.com/uber/jaeger-client-go v2.30.0+incompatible // indirect github.com/uber/jaeger-lib v2.4.1+incompatible // indirect github.com/ulikunitz/xz v0.5.11 // indirect @@ -329,10 +328,10 @@ require ( golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect google.golang.org/api v0.169.0 // indirect google.golang.org/genproto v0.0.0-20240311173647-c811ad7063a7 // indirect - google.golang.org/genproto/googleapis/api v0.0.0-20240311173647-c811ad7063a7 // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20240311173647-c811ad7063a7 // indirect - google.golang.org/grpc v1.63.2 // indirect - google.golang.org/protobuf v1.34.0 // indirect + google.golang.org/genproto/googleapis/api v0.0.0-20240604185151-ef581f913117 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20240604185151-ef581f913117 // indirect + google.golang.org/grpc v1.66.2 // indirect + google.golang.org/protobuf v1.34.2 // indirect gopkg.in/inf.v0 v0.9.1 // indirect gopkg.in/warnings.v0 v0.1.2 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect diff --git a/provider/go.sum b/provider/go.sum index bd2ff3772..12946bd7f 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -1303,8 +1303,9 @@ github.com/census-instrumentation/opencensus-proto v0.3.0/go.mod h1:f6KPmirojxKA github.com/census-instrumentation/opencensus-proto v0.4.1/go.mod h1:4T9NM4+4Vw91VeyqjLS6ao50K5bOcLKN6Q42XnYaRYw= github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= -github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44= github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs= +github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= github.com/charmbracelet/bubbles v0.16.1 h1:6uzpAAaT9ZqKssntbvZMlksWHruQLNxg49H5WdeuYSY= github.com/charmbracelet/bubbles v0.16.1/go.mod h1:2QCp9LFlEsBQMvIYERr7Ww2H2bA7xen1idUDIzm/+Xc= github.com/charmbracelet/bubbletea v0.25.0 h1:bAfwk7jRz7FKFl9RzlIULPkStffg5k6pNt5dywy4TcM= @@ -1474,8 +1475,8 @@ github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfU github.com/golang/glog v1.0.0/go.mod h1:EWib/APOK0SL3dFbYqvxE3UYd8E6s1ouQ7iEp/0LWV4= github.com/golang/glog v1.1.0/go.mod h1:pfYeQZ3JWZoXTV5sFc986z3HTpwQs9At6P4ImfuP3NQ= github.com/golang/glog v1.1.2/go.mod h1:zR+okUeTbrL6EL3xHUDxZuEtGv04p5shwip1+mL/rLQ= -github.com/golang/glog v1.2.0 h1:uCdmnmatrKCgMBlM4rMuJZWOkPDqdbZPnrMXDY4gI68= -github.com/golang/glog v1.2.0/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= +github.com/golang/glog v1.2.1 h1:OptwRhECazUx5ix5TTWC3EZhsZEHWcYWY4FQHTIubm4= +github.com/golang/glog v1.2.1/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= @@ -1658,8 +1659,9 @@ github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+l github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM= github.com/hashicorp/go-plugin v1.0.1/go.mod h1:++UyYGoz3o5w9ZzAdZxtQKrWWP+iqPBn3cQptSMzBuY= github.com/hashicorp/go-plugin v1.3.0/go.mod h1:F9eH4LrE/ZsRdbwhfjs9k9HoDUwAHnYtXdgmf1AVNs0= -github.com/hashicorp/go-plugin v1.6.0 h1:wgd4KxHJTVGGqWBq4QPB1i5BZNEx9BR8+OFmHDmTk8A= github.com/hashicorp/go-plugin v1.6.0/go.mod h1:lBS5MtSSBZk0SHc66KACcjjlU6WzEVP/8pwz68aMkCI= +github.com/hashicorp/go-plugin v1.6.1 h1:P7MR2UP6gNKGPp+y7EZw2kOiq4IR9WiqLvp0XOsVdwI= +github.com/hashicorp/go-plugin v1.6.1/go.mod h1:XPHFku2tFo3o3QKFgSYo+cghcUhw1NA1hZyMK0PWAw0= github.com/hashicorp/go-retryablehttp v0.7.7 h1:C8hUCYzor8PIfXHa4UrZkU4VvK8o9ISHxT2Q8+VepXU= github.com/hashicorp/go-retryablehttp v0.7.7/go.mod h1:pkQpWZeYWskR+D1tR2O5OcBFOxfA7DoAO6xtkuQnHTk= github.com/hashicorp/go-rootcerts v1.0.2 h1:jzhAVGtqPKbwpyCPELlgNWhE1znq+qwJtW5Oi2viEzc= @@ -1706,8 +1708,8 @@ github.com/hashicorp/terraform-json v0.13.0/go.mod h1:y5OdLBCT+rxbwnpxZs9kGL7R9E github.com/hashicorp/terraform-json v0.21.0 h1:9NQxbLNqPbEMze+S6+YluEdXgJmhQykRyRNd+zTI05U= github.com/hashicorp/terraform-json v0.21.0/go.mod h1:qdeBs11ovMzo5puhrRibdD6d2Dq6TyE/28JiU4tIQxk= github.com/hashicorp/terraform-plugin-go v0.22.0/go.mod h1:mPULV91VKss7sik6KFEcEu7HuTogMLLO/EvWCuFkRVE= -github.com/hashicorp/terraform-plugin-go v0.23.0 h1:AALVuU1gD1kPb48aPQUjug9Ir/125t+AAurhqphJ2Co= -github.com/hashicorp/terraform-plugin-go v0.23.0/go.mod h1:1E3Cr9h2vMlahWMbsSEcNrOCxovCZhOOIXjFHbjc/lQ= +github.com/hashicorp/terraform-plugin-go v0.24.0 h1:2WpHhginCdVhFIrWHxDEg6RBn3YaWzR2o6qUeIEat2U= +github.com/hashicorp/terraform-plugin-go v0.24.0/go.mod h1:tUQ53lAsOyYSckFGEefGC5C8BAaO0ENqzFd3bQeuYQg= github.com/hashicorp/terraform-plugin-log v0.9.0 h1:i7hOA+vdAItN1/7UrfBqBwvYPQ9TFvymaRGZED3FCV0= github.com/hashicorp/terraform-plugin-log v0.9.0/go.mod h1:rKL8egZQ/eXSyDqzLUuwUYLVdlYeamldAHSxjUFADow= github.com/hashicorp/terraform-plugin-sdk v1.7.0/go.mod h1:OjgQmey5VxnPej/buEhe+YqKm0KNvV3QqU4hkqHqPCY= @@ -1990,24 +1992,24 @@ github.com/prometheus/procfs v0.12.0 h1:jluTpSng7V9hY0O2R9DzzJHYb2xULk9VTR1V1R/k github.com/prometheus/procfs v0.12.0/go.mod h1:pcuDEFsWDnvcgNzo4EEweacyhjeA9Zk3cnaOZAZEfOo= github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 h1:vkHw5I/plNdTr435cARxCW6q9gc0S/Yxz7Mkd38pOb0= github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231/go.mod h1:murToZ2N9hNJzewjHBgfFdXhZKjY3z5cYC1VXk+lbFE= -github.com/pulumi/esc v0.9.1 h1:HH5eEv8sgyxSpY5a8yePyqFXzA8cvBvapfH8457+mIs= -github.com/pulumi/esc v0.9.1/go.mod h1:oEJ6bOsjYlQUpjf70GiX+CXn3VBmpwFDxUTlmtUN84c= +github.com/pulumi/esc v0.10.0 h1:jzBKzkLVW0mePeanDRfqSQoCJ5yrkux0jIwAkUxpRKE= +github.com/pulumi/esc v0.10.0/go.mod h1:2Bfa+FWj/xl8CKqRTWbWgDX0SOD4opdQgvYSURTGK2c= github.com/pulumi/inflector v0.1.1 h1:dvlxlWtXwOJTUUtcYDvwnl6Mpg33prhK+7mzeF+SobA= github.com/pulumi/inflector v0.1.1/go.mod h1:HUFCjcPTz96YtTuUlwG3i3EZG4WlniBvR9bd+iJxCUY= github.com/pulumi/providertest v0.0.14 h1:5QlAPAAs82jkQraHsJvq1xgVfC7xtW8sFJwv2pHgxQ8= github.com/pulumi/providertest v0.0.14/go.mod h1:GcsqEGgSngwaNOD+kICJPIUQlnA911fGBU8HDlJvVL0= -github.com/pulumi/pulumi-java/pkg v0.14.0 h1:CKL7lLF81Fq6VRhA5TNFsSMnHraTNCUzIhqCzYX8Wzk= -github.com/pulumi/pulumi-java/pkg v0.14.0/go.mod h1:VybuJMWJtJc9ZNbt1kcYH4TbpocMx9mEi7YWL2Co99c= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.90.0 h1:e7xfYAiXCE8LCwfKvbGeNAjdPmKwPM3kavEXECt3wvs= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.90.0/go.mod h1:dIVp4qG+GsUwmpz40L7Z+PZnzHf3cQq1CAFwhz++ris= +github.com/pulumi/pulumi-java/pkg v0.16.1 h1:orHnDWFbpOERwaBLry9f+6nqPX7x0MsrIkaa5QDGAns= +github.com/pulumi/pulumi-java/pkg v0.16.1/go.mod h1:QH0DihZkWYle9XFc+LJ76m4hUo+fA3RdyaM90pqOaSM= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.91.0 h1:E4YTsAI8oAF8cDj5XR1cbHUfINCc1IJxElriOZBdsxE= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.91.0/go.mod h1:DvueDDtOIbf7W1Or4oH0o7F990ozp/ROmlm/vgLoe+g= github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.8 h1:mav2tSitA9BPJPLLahKgepHyYsMzwaTm4cvp0dcTMYw= github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.8/go.mod h1:qUYk2c9i/yqMGNj9/bQyXpS39BxNDSXYjVN1njnq0zY= -github.com/pulumi/pulumi-yaml v1.9.2 h1:BCUuRPA1USmFXrExiHRU8yJ+OiphLYnroPxKRgGCJrs= -github.com/pulumi/pulumi-yaml v1.9.2/go.mod h1:sIh/Oa/NLRGTojevh8D2/cPDPvo2j9iXegVDQIKKfw4= -github.com/pulumi/pulumi/pkg/v3 v3.130.0 h1:lS51XeCnhg72LXkMiw2FP1cGP+Y85wYD3quWhCPD5+M= -github.com/pulumi/pulumi/pkg/v3 v3.130.0/go.mod h1:jhZ1Ug5Rl1qivexgEWvmwSWYIT/jRnKSFhLwwv6PrZ0= -github.com/pulumi/pulumi/sdk/v3 v3.130.0 h1:gGJNd+akPqhZ+vrsZmAjSNJn6kGJkitjjkwrmIQMmn8= -github.com/pulumi/pulumi/sdk/v3 v3.130.0/go.mod h1:p1U24en3zt51agx+WlNboSOV8eLlPWYAkxMzVEXKbnY= +github.com/pulumi/pulumi-yaml v1.10.0 h1:djbgMJCxJBmYMr4kOpAXH5iauxGohYjEuTLfxD3NUUI= +github.com/pulumi/pulumi-yaml v1.10.0/go.mod h1://lTvwHpgJ+WBKeMGiLrd/jinc4dl3eWV5LZ3G8iCfE= +github.com/pulumi/pulumi/pkg/v3 v3.133.0 h1:j1rd7ToLZIQc5H0427ISOXSbOIIemZ6B0MXtRhQ38Yg= +github.com/pulumi/pulumi/pkg/v3 v3.133.0/go.mod h1:JtMAnrsFIccO138WcMfPdhO0PioDukKihnZC0xTRLwo= +github.com/pulumi/pulumi/sdk/v3 v3.133.0 h1:o+7dbJZY9BVgAjOF5GYIWgjp/zpKAgWZwD4pPjUMXKQ= +github.com/pulumi/pulumi/sdk/v3 v3.133.0/go.mod h1:J5kQEX8v87aeUhk6NdQXnjCo1DbiOnOiL3Sf2DuDda8= github.com/pulumi/schema-tools v0.1.2 h1:Fd9xvUjgck4NA+7/jSk7InqCUT4Kj940+EcnbQKpfZo= github.com/pulumi/schema-tools v0.1.2/go.mod h1:62lgj52Tzq11eqWTIaKd+EVyYAu5dEcDJxMhTjvMO/k= github.com/pulumi/terraform-diff-reader v0.0.2 h1:kTE4nEXU3/SYXESvAIem+wyHMI3abqkI3OhJ0G04LLI= @@ -2126,8 +2128,6 @@ github.com/teekennedy/goldmark-markdown v0.3.0 h1:ik9/biVGCwGWFg8dQ3KVm2pQ/wiiG0 github.com/teekennedy/goldmark-markdown v0.3.0/go.mod h1:kMhDz8La77A9UHvJGsxejd0QUflN9sS+QXCqnhmxmNo= github.com/texttheater/golang-levenshtein v1.0.1 h1:+cRNoVrfiwufQPhoMzB6N0Yf/Mqajr6t1lOv8GyGE2U= github.com/texttheater/golang-levenshtein v1.0.1/go.mod h1:PYAKrbF5sAiq9wd+H82hs7gNaen0CplQ9uvm6+enD/8= -github.com/tweekmonster/luser v0.0.0-20161003172636-3fa38070dbd7 h1:X9dsIWPuuEJlPX//UmRKophhOKCGXc46RVIGuttks68= -github.com/tweekmonster/luser v0.0.0-20161003172636-3fa38070dbd7/go.mod h1:UxoP3EypF8JfGEjAII8jx1q8rQyDnX8qdTCs/UQBVIE= github.com/uber/jaeger-client-go v2.30.0+incompatible h1:D6wyKGCecFaSRUpo8lCVbaOOb6ThwMmTEbhRwtKR97o= github.com/uber/jaeger-client-go v2.30.0+incompatible/go.mod h1:WVhlPFC8FDjOFMMWRy2pZqQJSXxYSwNYOkTr/Z6d3Kk= github.com/uber/jaeger-lib v2.4.1+incompatible h1:td4jdvLcExb4cBISKIpHuGoVXh+dVKhn2Um6rjCsSsg= @@ -2965,8 +2965,8 @@ google.golang.org/genproto/googleapis/api v0.0.0-20231012201019-e917dd12ba7a/go. google.golang.org/genproto/googleapis/api v0.0.0-20231016165738-49dd2c1f3d0b/go.mod h1:IBQ646DjkDkvUIsVq/cc03FUFQ9wbZu7yE396YcL870= google.golang.org/genproto/googleapis/api v0.0.0-20231030173426-d783a09b4405/go.mod h1:oT32Z4o8Zv2xPQTg0pbVaPr0MPOH6f14RgXt7zfIpwg= google.golang.org/genproto/googleapis/api v0.0.0-20231106174013-bbf56f31fb17/go.mod h1:0xJLfVdJqpAPl8tDg1ujOCGzx6LFLttXT5NhllGOXY4= -google.golang.org/genproto/googleapis/api v0.0.0-20240311173647-c811ad7063a7 h1:oqta3O3AnlWbmIE3bFnWbu4bRxZjfbWCp0cKSuZh01E= -google.golang.org/genproto/googleapis/api v0.0.0-20240311173647-c811ad7063a7/go.mod h1:VQW3tUculP/D4B+xVCo+VgSq8As6wA9ZjHl//pmk+6s= +google.golang.org/genproto/googleapis/api v0.0.0-20240604185151-ef581f913117 h1:+rdxYoE3E5htTEWIe15GlN6IfvbURM//Jt0mmkmm6ZU= +google.golang.org/genproto/googleapis/api v0.0.0-20240604185151-ef581f913117/go.mod h1:OimBR/bc1wPO9iV4NC2bpyjy3VnAwZh5EBPQdtaE5oo= google.golang.org/genproto/googleapis/bytestream v0.0.0-20230530153820-e85fd2cbaebc/go.mod h1:ylj+BE99M198VPbBh6A8d9n3w8fChvyLK3wwBOjXBFA= google.golang.org/genproto/googleapis/bytestream v0.0.0-20230807174057-1744710a1577/go.mod h1:NjCQG/D8JandXxM57PZbAJL1DCNL6EypA0vPPwfsc7c= google.golang.org/genproto/googleapis/bytestream v0.0.0-20231030173426-d783a09b4405/go.mod h1:GRUCuLdzVqZte8+Dl/D4N25yLzcGqqWaYkeVOwulFqw= @@ -2987,8 +2987,8 @@ google.golang.org/genproto/googleapis/rpc v0.0.0-20231012201019-e917dd12ba7a/go. google.golang.org/genproto/googleapis/rpc v0.0.0-20231016165738-49dd2c1f3d0b/go.mod h1:swOH3j0KzcDDgGUWr+SNpyTen5YrXjS3eyPzFYKc6lc= google.golang.org/genproto/googleapis/rpc v0.0.0-20231030173426-d783a09b4405/go.mod h1:67X1fPuzjcrkymZzZV1vvkFeTn2Rvc6lYF9MYFGCcwE= google.golang.org/genproto/googleapis/rpc v0.0.0-20231106174013-bbf56f31fb17/go.mod h1:oQ5rr10WTTMvP4A36n8JpR1OrO1BEiV4f78CneXZxkA= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240311173647-c811ad7063a7 h1:8EeVk1VKMD+GD/neyEHGmz7pFblqPjHoi+PGQIlLx2s= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240311173647-c811ad7063a7/go.mod h1:WtryC6hu0hhx87FDGxWCDptyssuo68sk10vYjF+T9fY= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240604185151-ef581f913117 h1:1GBuWVLM/KMVUv1t1En5Gs+gFZCNd360GGb4sSxtrhU= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240604185151-ef581f913117/go.mod h1:EfXuqaE1J41VCDicxHzUDm+8rk+7ZdXzHV0IhO/I6s0= google.golang.org/grpc v1.8.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw= google.golang.org/grpc v1.14.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= @@ -3041,8 +3041,8 @@ google.golang.org/grpc v1.58.2/go.mod h1:tgX3ZQDlNJGU96V6yHh1T/JeoBQ2TXdr43YbYSs google.golang.org/grpc v1.58.3/go.mod h1:tgX3ZQDlNJGU96V6yHh1T/JeoBQ2TXdr43YbYSsCJk0= google.golang.org/grpc v1.59.0/go.mod h1:aUPDwccQo6OTjy7Hct4AfBPD1GptF4fyUjIkQ9YtF98= google.golang.org/grpc v1.61.1/go.mod h1:VUbo7IFqmF1QtCAstipjG0GIoq49KvMe9+h1jFLBNJs= -google.golang.org/grpc v1.63.2 h1:MUeiw1B2maTVZthpU5xvASfTh3LDbxHd6IJ6QQVU+xM= -google.golang.org/grpc v1.63.2/go.mod h1:WAX/8DgncnokcFUldAxq7GeB5DXHDbMF+lLvDomNkRA= +google.golang.org/grpc v1.66.2 h1:3QdXkuq3Bkh7w+ywLdLvM56cmGvQHUMZpiCzt6Rqaoo= +google.golang.org/grpc v1.66.2/go.mod h1:s3/l6xSSCURdVfAnL+TqCNMyTDAGN6+lZeVxnZR128Y= google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= @@ -3064,8 +3064,8 @@ google.golang.org/protobuf v1.29.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqw google.golang.org/protobuf v1.30.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= google.golang.org/protobuf v1.31.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= google.golang.org/protobuf v1.32.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= -google.golang.org/protobuf v1.34.0 h1:Qo/qEd2RZPCf2nKuorzksSknv0d3ERwp1vFG38gSmH4= -google.golang.org/protobuf v1.34.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= +google.golang.org/protobuf v1.34.2 h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg= +google.golang.org/protobuf v1.34.2/go.mod h1:qYOHts0dSfpeUzUFpOMr/WGzszTmLH+DiWniOlNbLDw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= diff --git a/sdk/go.mod b/sdk/go.mod index 0a2b58b9a..717b54ea3 100644 --- a/sdk/go.mod +++ b/sdk/go.mod @@ -4,8 +4,7 @@ go 1.21 require ( github.com/blang/semver v3.5.1+incompatible - github.com/pulumi/pulumi-rancher2/sdk/v6 v6.2.1 - github.com/pulumi/pulumi/sdk/v3 v3.130.0 + github.com/pulumi/pulumi/sdk/v3 v3.133.0 ) require ( @@ -69,7 +68,6 @@ require ( github.com/spf13/cobra v1.7.0 // indirect github.com/spf13/pflag v1.0.5 // indirect github.com/texttheater/golang-levenshtein v1.0.1 // indirect - github.com/tweekmonster/luser v0.0.0-20161003172636-3fa38070dbd7 // indirect github.com/uber/jaeger-client-go v2.30.0+incompatible // indirect github.com/uber/jaeger-lib v2.4.1+incompatible // indirect github.com/xanzy/ssh-agent v0.3.3 // indirect diff --git a/sdk/go.sum b/sdk/go.sum index ae3596306..15266336e 100644 --- a/sdk/go.sum +++ b/sdk/go.sum @@ -150,10 +150,8 @@ github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 h1:vkHw5I/plNdTr435 github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231/go.mod h1:murToZ2N9hNJzewjHBgfFdXhZKjY3z5cYC1VXk+lbFE= github.com/pulumi/esc v0.9.1 h1:HH5eEv8sgyxSpY5a8yePyqFXzA8cvBvapfH8457+mIs= github.com/pulumi/esc v0.9.1/go.mod h1:oEJ6bOsjYlQUpjf70GiX+CXn3VBmpwFDxUTlmtUN84c= -github.com/pulumi/pulumi-rancher2/sdk/v6 v6.2.1 h1:MLPfT6l1AInoNI9G0OW1NcPWZvOt03TuXNahh901mLU= -github.com/pulumi/pulumi-rancher2/sdk/v6 v6.2.1/go.mod h1:PpuYOlrXkhpGQUDX7yVz1Bhr9Ip3yM4RAo8kGsuvxBc= -github.com/pulumi/pulumi/sdk/v3 v3.130.0 h1:gGJNd+akPqhZ+vrsZmAjSNJn6kGJkitjjkwrmIQMmn8= -github.com/pulumi/pulumi/sdk/v3 v3.130.0/go.mod h1:p1U24en3zt51agx+WlNboSOV8eLlPWYAkxMzVEXKbnY= +github.com/pulumi/pulumi/sdk/v3 v3.133.0 h1:o+7dbJZY9BVgAjOF5GYIWgjp/zpKAgWZwD4pPjUMXKQ= +github.com/pulumi/pulumi/sdk/v3 v3.133.0/go.mod h1:J5kQEX8v87aeUhk6NdQXnjCo1DbiOnOiL3Sf2DuDda8= github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.4.4 h1:8TfxU8dW6PdqD27gjM8MVNuicgxIjxpm4K7x4jp8sis= @@ -187,8 +185,6 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/texttheater/golang-levenshtein v1.0.1 h1:+cRNoVrfiwufQPhoMzB6N0Yf/Mqajr6t1lOv8GyGE2U= github.com/texttheater/golang-levenshtein v1.0.1/go.mod h1:PYAKrbF5sAiq9wd+H82hs7gNaen0CplQ9uvm6+enD/8= -github.com/tweekmonster/luser v0.0.0-20161003172636-3fa38070dbd7 h1:X9dsIWPuuEJlPX//UmRKophhOKCGXc46RVIGuttks68= -github.com/tweekmonster/luser v0.0.0-20161003172636-3fa38070dbd7/go.mod h1:UxoP3EypF8JfGEjAII8jx1q8rQyDnX8qdTCs/UQBVIE= github.com/uber/jaeger-client-go v2.30.0+incompatible h1:D6wyKGCecFaSRUpo8lCVbaOOb6ThwMmTEbhRwtKR97o= github.com/uber/jaeger-client-go v2.30.0+incompatible/go.mod h1:WVhlPFC8FDjOFMMWRy2pZqQJSXxYSwNYOkTr/Z6d3Kk= github.com/uber/jaeger-lib v2.4.1+incompatible h1:td4jdvLcExb4cBISKIpHuGoVXh+dVKhn2Um6rjCsSsg= diff --git a/sdk/go/rancher2/getApp.go b/sdk/go/rancher2/getApp.go index 8bb4f5510..9bc9772ea 100644 --- a/sdk/go/rancher2/getApp.go +++ b/sdk/go/rancher2/getApp.go @@ -93,14 +93,20 @@ type LookupAppResult struct { func LookupAppOutput(ctx *pulumi.Context, args LookupAppOutputArgs, opts ...pulumi.InvokeOption) LookupAppResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupAppResult, error) { + ApplyT(func(v interface{}) (LookupAppResultOutput, error) { args := v.(LookupAppArgs) - r, err := LookupApp(ctx, &args, opts...) - var s LookupAppResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupAppResult + secret, err := ctx.InvokePackageRaw("rancher2:index/getApp:getApp", args, &rv, "", opts...) + if err != nil { + return LookupAppResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupAppResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupAppResultOutput), nil + } + return output, nil }).(LookupAppResultOutput) } diff --git a/sdk/go/rancher2/getCatalog.go b/sdk/go/rancher2/getCatalog.go index 6ab9df5fa..ab6f64b17 100644 --- a/sdk/go/rancher2/getCatalog.go +++ b/sdk/go/rancher2/getCatalog.go @@ -88,14 +88,20 @@ type LookupCatalogResult struct { func LookupCatalogOutput(ctx *pulumi.Context, args LookupCatalogOutputArgs, opts ...pulumi.InvokeOption) LookupCatalogResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupCatalogResult, error) { + ApplyT(func(v interface{}) (LookupCatalogResultOutput, error) { args := v.(LookupCatalogArgs) - r, err := LookupCatalog(ctx, &args, opts...) - var s LookupCatalogResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupCatalogResult + secret, err := ctx.InvokePackageRaw("rancher2:index/getCatalog:getCatalog", args, &rv, "", opts...) + if err != nil { + return LookupCatalogResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupCatalogResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupCatalogResultOutput), nil + } + return output, nil }).(LookupCatalogResultOutput) } diff --git a/sdk/go/rancher2/getCatalogV2.go b/sdk/go/rancher2/getCatalogV2.go index cffd530a4..a0159431e 100644 --- a/sdk/go/rancher2/getCatalogV2.go +++ b/sdk/go/rancher2/getCatalogV2.go @@ -74,14 +74,20 @@ type LookupCatalogV2Result struct { func LookupCatalogV2Output(ctx *pulumi.Context, args LookupCatalogV2OutputArgs, opts ...pulumi.InvokeOption) LookupCatalogV2ResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupCatalogV2Result, error) { + ApplyT(func(v interface{}) (LookupCatalogV2ResultOutput, error) { args := v.(LookupCatalogV2Args) - r, err := LookupCatalogV2(ctx, &args, opts...) - var s LookupCatalogV2Result - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupCatalogV2Result + secret, err := ctx.InvokePackageRaw("rancher2:index/getCatalogV2:getCatalogV2", args, &rv, "", opts...) + if err != nil { + return LookupCatalogV2ResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupCatalogV2ResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupCatalogV2ResultOutput), nil + } + return output, nil }).(LookupCatalogV2ResultOutput) } diff --git a/sdk/go/rancher2/getCertificate.go b/sdk/go/rancher2/getCertificate.go index 6bfcda35d..f65aff233 100644 --- a/sdk/go/rancher2/getCertificate.go +++ b/sdk/go/rancher2/getCertificate.go @@ -110,14 +110,20 @@ type LookupCertificateResult struct { func LookupCertificateOutput(ctx *pulumi.Context, args LookupCertificateOutputArgs, opts ...pulumi.InvokeOption) LookupCertificateResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupCertificateResult, error) { + ApplyT(func(v interface{}) (LookupCertificateResultOutput, error) { args := v.(LookupCertificateArgs) - r, err := LookupCertificate(ctx, &args, opts...) - var s LookupCertificateResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupCertificateResult + secret, err := ctx.InvokePackageRaw("rancher2:index/getCertificate:getCertificate", args, &rv, "", opts...) + if err != nil { + return LookupCertificateResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupCertificateResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupCertificateResultOutput), nil + } + return output, nil }).(LookupCertificateResultOutput) } diff --git a/sdk/go/rancher2/getCloudCredential.go b/sdk/go/rancher2/getCloudCredential.go index b60f6f0ed..b6fc1e9ca 100644 --- a/sdk/go/rancher2/getCloudCredential.go +++ b/sdk/go/rancher2/getCloudCredential.go @@ -67,14 +67,20 @@ type LookupCloudCredentialResult struct { func LookupCloudCredentialOutput(ctx *pulumi.Context, args LookupCloudCredentialOutputArgs, opts ...pulumi.InvokeOption) LookupCloudCredentialResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupCloudCredentialResult, error) { + ApplyT(func(v interface{}) (LookupCloudCredentialResultOutput, error) { args := v.(LookupCloudCredentialArgs) - r, err := LookupCloudCredential(ctx, &args, opts...) - var s LookupCloudCredentialResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupCloudCredentialResult + secret, err := ctx.InvokePackageRaw("rancher2:index/getCloudCredential:getCloudCredential", args, &rv, "", opts...) + if err != nil { + return LookupCloudCredentialResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupCloudCredentialResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupCloudCredentialResultOutput), nil + } + return output, nil }).(LookupCloudCredentialResultOutput) } diff --git a/sdk/go/rancher2/getCluster.go b/sdk/go/rancher2/getCluster.go index bf52ba76e..076f5dd1e 100644 --- a/sdk/go/rancher2/getCluster.go +++ b/sdk/go/rancher2/getCluster.go @@ -119,14 +119,20 @@ type LookupClusterResult struct { func LookupClusterOutput(ctx *pulumi.Context, args LookupClusterOutputArgs, opts ...pulumi.InvokeOption) LookupClusterResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupClusterResult, error) { + ApplyT(func(v interface{}) (LookupClusterResultOutput, error) { args := v.(LookupClusterArgs) - r, err := LookupCluster(ctx, &args, opts...) - var s LookupClusterResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupClusterResult + secret, err := ctx.InvokePackageRaw("rancher2:index/getCluster:getCluster", args, &rv, "", opts...) + if err != nil { + return LookupClusterResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupClusterResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupClusterResultOutput), nil + } + return output, nil }).(LookupClusterResultOutput) } diff --git a/sdk/go/rancher2/getClusterDriver.go b/sdk/go/rancher2/getClusterDriver.go index 2afaf13ec..4bdd586b1 100644 --- a/sdk/go/rancher2/getClusterDriver.go +++ b/sdk/go/rancher2/getClusterDriver.go @@ -82,14 +82,20 @@ type LookupClusterDriverResult struct { func LookupClusterDriverOutput(ctx *pulumi.Context, args LookupClusterDriverOutputArgs, opts ...pulumi.InvokeOption) LookupClusterDriverResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupClusterDriverResult, error) { + ApplyT(func(v interface{}) (LookupClusterDriverResultOutput, error) { args := v.(LookupClusterDriverArgs) - r, err := LookupClusterDriver(ctx, &args, opts...) - var s LookupClusterDriverResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupClusterDriverResult + secret, err := ctx.InvokePackageRaw("rancher2:index/getClusterDriver:getClusterDriver", args, &rv, "", opts...) + if err != nil { + return LookupClusterDriverResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupClusterDriverResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupClusterDriverResultOutput), nil + } + return output, nil }).(LookupClusterDriverResultOutput) } diff --git a/sdk/go/rancher2/getClusterRoleTemplateBinding.go b/sdk/go/rancher2/getClusterRoleTemplateBinding.go index 0fdc64047..902872e68 100644 --- a/sdk/go/rancher2/getClusterRoleTemplateBinding.go +++ b/sdk/go/rancher2/getClusterRoleTemplateBinding.go @@ -82,14 +82,20 @@ type LookupClusterRoleTemplateBindingResult struct { func LookupClusterRoleTemplateBindingOutput(ctx *pulumi.Context, args LookupClusterRoleTemplateBindingOutputArgs, opts ...pulumi.InvokeOption) LookupClusterRoleTemplateBindingResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupClusterRoleTemplateBindingResult, error) { + ApplyT(func(v interface{}) (LookupClusterRoleTemplateBindingResultOutput, error) { args := v.(LookupClusterRoleTemplateBindingArgs) - r, err := LookupClusterRoleTemplateBinding(ctx, &args, opts...) - var s LookupClusterRoleTemplateBindingResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupClusterRoleTemplateBindingResult + secret, err := ctx.InvokePackageRaw("rancher2:index/getClusterRoleTemplateBinding:getClusterRoleTemplateBinding", args, &rv, "", opts...) + if err != nil { + return LookupClusterRoleTemplateBindingResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupClusterRoleTemplateBindingResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupClusterRoleTemplateBindingResultOutput), nil + } + return output, nil }).(LookupClusterRoleTemplateBindingResultOutput) } diff --git a/sdk/go/rancher2/getClusterTemplate.go b/sdk/go/rancher2/getClusterTemplate.go index 3a2e42ffc..8139bafad 100644 --- a/sdk/go/rancher2/getClusterTemplate.go +++ b/sdk/go/rancher2/getClusterTemplate.go @@ -81,14 +81,20 @@ type LookupClusterTemplateResult struct { func LookupClusterTemplateOutput(ctx *pulumi.Context, args LookupClusterTemplateOutputArgs, opts ...pulumi.InvokeOption) LookupClusterTemplateResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupClusterTemplateResult, error) { + ApplyT(func(v interface{}) (LookupClusterTemplateResultOutput, error) { args := v.(LookupClusterTemplateArgs) - r, err := LookupClusterTemplate(ctx, &args, opts...) - var s LookupClusterTemplateResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupClusterTemplateResult + secret, err := ctx.InvokePackageRaw("rancher2:index/getClusterTemplate:getClusterTemplate", args, &rv, "", opts...) + if err != nil { + return LookupClusterTemplateResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupClusterTemplateResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupClusterTemplateResultOutput), nil + } + return output, nil }).(LookupClusterTemplateResultOutput) } diff --git a/sdk/go/rancher2/getClusterV2.go b/sdk/go/rancher2/getClusterV2.go index 7efca53ab..9a0a3aeae 100644 --- a/sdk/go/rancher2/getClusterV2.go +++ b/sdk/go/rancher2/getClusterV2.go @@ -91,14 +91,20 @@ type LookupClusterV2Result struct { func LookupClusterV2Output(ctx *pulumi.Context, args LookupClusterV2OutputArgs, opts ...pulumi.InvokeOption) LookupClusterV2ResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupClusterV2Result, error) { + ApplyT(func(v interface{}) (LookupClusterV2ResultOutput, error) { args := v.(LookupClusterV2Args) - r, err := LookupClusterV2(ctx, &args, opts...) - var s LookupClusterV2Result - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupClusterV2Result + secret, err := ctx.InvokePackageRaw("rancher2:index/getClusterV2:getClusterV2", args, &rv, "", opts...) + if err != nil { + return LookupClusterV2ResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupClusterV2ResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupClusterV2ResultOutput), nil + } + return output, nil }).(LookupClusterV2ResultOutput) } diff --git a/sdk/go/rancher2/getConfigMapV2.go b/sdk/go/rancher2/getConfigMapV2.go index 5198b1817..3e8c206ef 100644 --- a/sdk/go/rancher2/getConfigMapV2.go +++ b/sdk/go/rancher2/getConfigMapV2.go @@ -53,14 +53,20 @@ type LookupConfigMapV2Result struct { func LookupConfigMapV2Output(ctx *pulumi.Context, args LookupConfigMapV2OutputArgs, opts ...pulumi.InvokeOption) LookupConfigMapV2ResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupConfigMapV2Result, error) { + ApplyT(func(v interface{}) (LookupConfigMapV2ResultOutput, error) { args := v.(LookupConfigMapV2Args) - r, err := LookupConfigMapV2(ctx, &args, opts...) - var s LookupConfigMapV2Result - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupConfigMapV2Result + secret, err := ctx.InvokePackageRaw("rancher2:index/getConfigMapV2:getConfigMapV2", args, &rv, "", opts...) + if err != nil { + return LookupConfigMapV2ResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupConfigMapV2ResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupConfigMapV2ResultOutput), nil + } + return output, nil }).(LookupConfigMapV2ResultOutput) } diff --git a/sdk/go/rancher2/getEtcdBackup.go b/sdk/go/rancher2/getEtcdBackup.go index 22db87784..4cd006457 100644 --- a/sdk/go/rancher2/getEtcdBackup.go +++ b/sdk/go/rancher2/getEtcdBackup.go @@ -79,14 +79,20 @@ type LookupEtcdBackupResult struct { func LookupEtcdBackupOutput(ctx *pulumi.Context, args LookupEtcdBackupOutputArgs, opts ...pulumi.InvokeOption) LookupEtcdBackupResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupEtcdBackupResult, error) { + ApplyT(func(v interface{}) (LookupEtcdBackupResultOutput, error) { args := v.(LookupEtcdBackupArgs) - r, err := LookupEtcdBackup(ctx, &args, opts...) - var s LookupEtcdBackupResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupEtcdBackupResult + secret, err := ctx.InvokePackageRaw("rancher2:index/getEtcdBackup:getEtcdBackup", args, &rv, "", opts...) + if err != nil { + return LookupEtcdBackupResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupEtcdBackupResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupEtcdBackupResultOutput), nil + } + return output, nil }).(LookupEtcdBackupResultOutput) } diff --git a/sdk/go/rancher2/getGlobalDnsProvider.go b/sdk/go/rancher2/getGlobalDnsProvider.go index 53e7fd724..928e17735 100644 --- a/sdk/go/rancher2/getGlobalDnsProvider.go +++ b/sdk/go/rancher2/getGlobalDnsProvider.go @@ -73,14 +73,20 @@ type LookupGlobalDnsProviderResult struct { func LookupGlobalDnsProviderOutput(ctx *pulumi.Context, args LookupGlobalDnsProviderOutputArgs, opts ...pulumi.InvokeOption) LookupGlobalDnsProviderResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupGlobalDnsProviderResult, error) { + ApplyT(func(v interface{}) (LookupGlobalDnsProviderResultOutput, error) { args := v.(LookupGlobalDnsProviderArgs) - r, err := LookupGlobalDnsProvider(ctx, &args, opts...) - var s LookupGlobalDnsProviderResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupGlobalDnsProviderResult + secret, err := ctx.InvokePackageRaw("rancher2:index/getGlobalDnsProvider:getGlobalDnsProvider", args, &rv, "", opts...) + if err != nil { + return LookupGlobalDnsProviderResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupGlobalDnsProviderResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupGlobalDnsProviderResultOutput), nil + } + return output, nil }).(LookupGlobalDnsProviderResultOutput) } diff --git a/sdk/go/rancher2/getGlobalRole.go b/sdk/go/rancher2/getGlobalRole.go index 7fb8a88bb..499641702 100644 --- a/sdk/go/rancher2/getGlobalRole.go +++ b/sdk/go/rancher2/getGlobalRole.go @@ -79,14 +79,20 @@ type LookupGlobalRoleResult struct { func LookupGlobalRoleOutput(ctx *pulumi.Context, args LookupGlobalRoleOutputArgs, opts ...pulumi.InvokeOption) LookupGlobalRoleResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupGlobalRoleResult, error) { + ApplyT(func(v interface{}) (LookupGlobalRoleResultOutput, error) { args := v.(LookupGlobalRoleArgs) - r, err := LookupGlobalRole(ctx, &args, opts...) - var s LookupGlobalRoleResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupGlobalRoleResult + secret, err := ctx.InvokePackageRaw("rancher2:index/getGlobalRole:getGlobalRole", args, &rv, "", opts...) + if err != nil { + return LookupGlobalRoleResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupGlobalRoleResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupGlobalRoleResultOutput), nil + } + return output, nil }).(LookupGlobalRoleResultOutput) } diff --git a/sdk/go/rancher2/getGlobalRoleBinding.go b/sdk/go/rancher2/getGlobalRoleBinding.go index e64f5eae1..487cfed30 100644 --- a/sdk/go/rancher2/getGlobalRoleBinding.go +++ b/sdk/go/rancher2/getGlobalRoleBinding.go @@ -75,14 +75,20 @@ type LookupGlobalRoleBindingResult struct { func LookupGlobalRoleBindingOutput(ctx *pulumi.Context, args LookupGlobalRoleBindingOutputArgs, opts ...pulumi.InvokeOption) LookupGlobalRoleBindingResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupGlobalRoleBindingResult, error) { + ApplyT(func(v interface{}) (LookupGlobalRoleBindingResultOutput, error) { args := v.(LookupGlobalRoleBindingArgs) - r, err := LookupGlobalRoleBinding(ctx, &args, opts...) - var s LookupGlobalRoleBindingResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupGlobalRoleBindingResult + secret, err := ctx.InvokePackageRaw("rancher2:index/getGlobalRoleBinding:getGlobalRoleBinding", args, &rv, "", opts...) + if err != nil { + return LookupGlobalRoleBindingResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupGlobalRoleBindingResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupGlobalRoleBindingResultOutput), nil + } + return output, nil }).(LookupGlobalRoleBindingResultOutput) } diff --git a/sdk/go/rancher2/getMultiClusterApp.go b/sdk/go/rancher2/getMultiClusterApp.go index ff5a32c45..763ecfdf8 100644 --- a/sdk/go/rancher2/getMultiClusterApp.go +++ b/sdk/go/rancher2/getMultiClusterApp.go @@ -89,14 +89,20 @@ type LookupMultiClusterAppResult struct { func LookupMultiClusterAppOutput(ctx *pulumi.Context, args LookupMultiClusterAppOutputArgs, opts ...pulumi.InvokeOption) LookupMultiClusterAppResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupMultiClusterAppResult, error) { + ApplyT(func(v interface{}) (LookupMultiClusterAppResultOutput, error) { args := v.(LookupMultiClusterAppArgs) - r, err := LookupMultiClusterApp(ctx, &args, opts...) - var s LookupMultiClusterAppResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupMultiClusterAppResult + secret, err := ctx.InvokePackageRaw("rancher2:index/getMultiClusterApp:getMultiClusterApp", args, &rv, "", opts...) + if err != nil { + return LookupMultiClusterAppResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupMultiClusterAppResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupMultiClusterAppResultOutput), nil + } + return output, nil }).(LookupMultiClusterAppResultOutput) } diff --git a/sdk/go/rancher2/getNamespace.go b/sdk/go/rancher2/getNamespace.go index 360729b11..4314b36b3 100644 --- a/sdk/go/rancher2/getNamespace.go +++ b/sdk/go/rancher2/getNamespace.go @@ -77,14 +77,20 @@ type LookupNamespaceResult struct { func LookupNamespaceOutput(ctx *pulumi.Context, args LookupNamespaceOutputArgs, opts ...pulumi.InvokeOption) LookupNamespaceResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupNamespaceResult, error) { + ApplyT(func(v interface{}) (LookupNamespaceResultOutput, error) { args := v.(LookupNamespaceArgs) - r, err := LookupNamespace(ctx, &args, opts...) - var s LookupNamespaceResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupNamespaceResult + secret, err := ctx.InvokePackageRaw("rancher2:index/getNamespace:getNamespace", args, &rv, "", opts...) + if err != nil { + return LookupNamespaceResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupNamespaceResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupNamespaceResultOutput), nil + } + return output, nil }).(LookupNamespaceResultOutput) } diff --git a/sdk/go/rancher2/getNodeDriver.go b/sdk/go/rancher2/getNodeDriver.go index 0513299a1..e9b5bc7a3 100644 --- a/sdk/go/rancher2/getNodeDriver.go +++ b/sdk/go/rancher2/getNodeDriver.go @@ -84,14 +84,20 @@ type LookupNodeDriverResult struct { func LookupNodeDriverOutput(ctx *pulumi.Context, args LookupNodeDriverOutputArgs, opts ...pulumi.InvokeOption) LookupNodeDriverResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupNodeDriverResult, error) { + ApplyT(func(v interface{}) (LookupNodeDriverResultOutput, error) { args := v.(LookupNodeDriverArgs) - r, err := LookupNodeDriver(ctx, &args, opts...) - var s LookupNodeDriverResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupNodeDriverResult + secret, err := ctx.InvokePackageRaw("rancher2:index/getNodeDriver:getNodeDriver", args, &rv, "", opts...) + if err != nil { + return LookupNodeDriverResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupNodeDriverResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupNodeDriverResultOutput), nil + } + return output, nil }).(LookupNodeDriverResultOutput) } diff --git a/sdk/go/rancher2/getNodePool.go b/sdk/go/rancher2/getNodePool.go index fd2a15c74..ab5dc787e 100644 --- a/sdk/go/rancher2/getNodePool.go +++ b/sdk/go/rancher2/getNodePool.go @@ -88,14 +88,20 @@ type LookupNodePoolResult struct { func LookupNodePoolOutput(ctx *pulumi.Context, args LookupNodePoolOutputArgs, opts ...pulumi.InvokeOption) LookupNodePoolResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupNodePoolResult, error) { + ApplyT(func(v interface{}) (LookupNodePoolResultOutput, error) { args := v.(LookupNodePoolArgs) - r, err := LookupNodePool(ctx, &args, opts...) - var s LookupNodePoolResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupNodePoolResult + secret, err := ctx.InvokePackageRaw("rancher2:index/getNodePool:getNodePool", args, &rv, "", opts...) + if err != nil { + return LookupNodePoolResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupNodePoolResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupNodePoolResultOutput), nil + } + return output, nil }).(LookupNodePoolResultOutput) } diff --git a/sdk/go/rancher2/getNodeTemplate.go b/sdk/go/rancher2/getNodeTemplate.go index e69374b59..94fb897b3 100644 --- a/sdk/go/rancher2/getNodeTemplate.go +++ b/sdk/go/rancher2/getNodeTemplate.go @@ -93,14 +93,20 @@ type LookupNodeTemplateResult struct { func LookupNodeTemplateOutput(ctx *pulumi.Context, args LookupNodeTemplateOutputArgs, opts ...pulumi.InvokeOption) LookupNodeTemplateResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupNodeTemplateResult, error) { + ApplyT(func(v interface{}) (LookupNodeTemplateResultOutput, error) { args := v.(LookupNodeTemplateArgs) - r, err := LookupNodeTemplate(ctx, &args, opts...) - var s LookupNodeTemplateResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupNodeTemplateResult + secret, err := ctx.InvokePackageRaw("rancher2:index/getNodeTemplate:getNodeTemplate", args, &rv, "", opts...) + if err != nil { + return LookupNodeTemplateResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupNodeTemplateResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupNodeTemplateResultOutput), nil + } + return output, nil }).(LookupNodeTemplateResultOutput) } diff --git a/sdk/go/rancher2/getPodSecurityAdmissionConfigurationTemplate.go b/sdk/go/rancher2/getPodSecurityAdmissionConfigurationTemplate.go index b992fe1bf..45c8e5a48 100644 --- a/sdk/go/rancher2/getPodSecurityAdmissionConfigurationTemplate.go +++ b/sdk/go/rancher2/getPodSecurityAdmissionConfigurationTemplate.go @@ -42,14 +42,20 @@ type LookupPodSecurityAdmissionConfigurationTemplateResult struct { func LookupPodSecurityAdmissionConfigurationTemplateOutput(ctx *pulumi.Context, args LookupPodSecurityAdmissionConfigurationTemplateOutputArgs, opts ...pulumi.InvokeOption) LookupPodSecurityAdmissionConfigurationTemplateResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupPodSecurityAdmissionConfigurationTemplateResult, error) { + ApplyT(func(v interface{}) (LookupPodSecurityAdmissionConfigurationTemplateResultOutput, error) { args := v.(LookupPodSecurityAdmissionConfigurationTemplateArgs) - r, err := LookupPodSecurityAdmissionConfigurationTemplate(ctx, &args, opts...) - var s LookupPodSecurityAdmissionConfigurationTemplateResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupPodSecurityAdmissionConfigurationTemplateResult + secret, err := ctx.InvokePackageRaw("rancher2:index/getPodSecurityAdmissionConfigurationTemplate:getPodSecurityAdmissionConfigurationTemplate", args, &rv, "", opts...) + if err != nil { + return LookupPodSecurityAdmissionConfigurationTemplateResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupPodSecurityAdmissionConfigurationTemplateResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupPodSecurityAdmissionConfigurationTemplateResultOutput), nil + } + return output, nil }).(LookupPodSecurityAdmissionConfigurationTemplateResultOutput) } diff --git a/sdk/go/rancher2/getPrincipal.go b/sdk/go/rancher2/getPrincipal.go index 0c10ba923..0ef4988ba 100644 --- a/sdk/go/rancher2/getPrincipal.go +++ b/sdk/go/rancher2/getPrincipal.go @@ -66,14 +66,20 @@ type GetPrincipalResult struct { func GetPrincipalOutput(ctx *pulumi.Context, args GetPrincipalOutputArgs, opts ...pulumi.InvokeOption) GetPrincipalResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (GetPrincipalResult, error) { + ApplyT(func(v interface{}) (GetPrincipalResultOutput, error) { args := v.(GetPrincipalArgs) - r, err := GetPrincipal(ctx, &args, opts...) - var s GetPrincipalResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv GetPrincipalResult + secret, err := ctx.InvokePackageRaw("rancher2:index/getPrincipal:getPrincipal", args, &rv, "", opts...) + if err != nil { + return GetPrincipalResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(GetPrincipalResultOutput) + if secret { + return pulumi.ToSecret(output).(GetPrincipalResultOutput), nil + } + return output, nil }).(GetPrincipalResultOutput) } diff --git a/sdk/go/rancher2/getProject.go b/sdk/go/rancher2/getProject.go index 8c3e57015..666475daf 100644 --- a/sdk/go/rancher2/getProject.go +++ b/sdk/go/rancher2/getProject.go @@ -52,14 +52,20 @@ type LookupProjectResult struct { func LookupProjectOutput(ctx *pulumi.Context, args LookupProjectOutputArgs, opts ...pulumi.InvokeOption) LookupProjectResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupProjectResult, error) { + ApplyT(func(v interface{}) (LookupProjectResultOutput, error) { args := v.(LookupProjectArgs) - r, err := LookupProject(ctx, &args, opts...) - var s LookupProjectResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupProjectResult + secret, err := ctx.InvokePackageRaw("rancher2:index/getProject:getProject", args, &rv, "", opts...) + if err != nil { + return LookupProjectResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupProjectResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupProjectResultOutput), nil + } + return output, nil }).(LookupProjectResultOutput) } diff --git a/sdk/go/rancher2/getProjectRoleTemplateBinding.go b/sdk/go/rancher2/getProjectRoleTemplateBinding.go index 6c59ce3bd..1e7e583ff 100644 --- a/sdk/go/rancher2/getProjectRoleTemplateBinding.go +++ b/sdk/go/rancher2/getProjectRoleTemplateBinding.go @@ -82,14 +82,20 @@ type LookupProjectRoleTemplateBindingResult struct { func LookupProjectRoleTemplateBindingOutput(ctx *pulumi.Context, args LookupProjectRoleTemplateBindingOutputArgs, opts ...pulumi.InvokeOption) LookupProjectRoleTemplateBindingResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupProjectRoleTemplateBindingResult, error) { + ApplyT(func(v interface{}) (LookupProjectRoleTemplateBindingResultOutput, error) { args := v.(LookupProjectRoleTemplateBindingArgs) - r, err := LookupProjectRoleTemplateBinding(ctx, &args, opts...) - var s LookupProjectRoleTemplateBindingResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupProjectRoleTemplateBindingResult + secret, err := ctx.InvokePackageRaw("rancher2:index/getProjectRoleTemplateBinding:getProjectRoleTemplateBinding", args, &rv, "", opts...) + if err != nil { + return LookupProjectRoleTemplateBindingResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupProjectRoleTemplateBindingResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupProjectRoleTemplateBindingResultOutput), nil + } + return output, nil }).(LookupProjectRoleTemplateBindingResultOutput) } diff --git a/sdk/go/rancher2/getRegistry.go b/sdk/go/rancher2/getRegistry.go index efcee249e..e238d7506 100644 --- a/sdk/go/rancher2/getRegistry.go +++ b/sdk/go/rancher2/getRegistry.go @@ -110,14 +110,20 @@ type LookupRegistryResult struct { func LookupRegistryOutput(ctx *pulumi.Context, args LookupRegistryOutputArgs, opts ...pulumi.InvokeOption) LookupRegistryResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupRegistryResult, error) { + ApplyT(func(v interface{}) (LookupRegistryResultOutput, error) { args := v.(LookupRegistryArgs) - r, err := LookupRegistry(ctx, &args, opts...) - var s LookupRegistryResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupRegistryResult + secret, err := ctx.InvokePackageRaw("rancher2:index/getRegistry:getRegistry", args, &rv, "", opts...) + if err != nil { + return LookupRegistryResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupRegistryResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupRegistryResultOutput), nil + } + return output, nil }).(LookupRegistryResultOutput) } diff --git a/sdk/go/rancher2/getRoleTemplate.go b/sdk/go/rancher2/getRoleTemplate.go index 7053fd2eb..f8734077d 100644 --- a/sdk/go/rancher2/getRoleTemplate.go +++ b/sdk/go/rancher2/getRoleTemplate.go @@ -92,14 +92,20 @@ type LookupRoleTemplateResult struct { func LookupRoleTemplateOutput(ctx *pulumi.Context, args LookupRoleTemplateOutputArgs, opts ...pulumi.InvokeOption) LookupRoleTemplateResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupRoleTemplateResult, error) { + ApplyT(func(v interface{}) (LookupRoleTemplateResultOutput, error) { args := v.(LookupRoleTemplateArgs) - r, err := LookupRoleTemplate(ctx, &args, opts...) - var s LookupRoleTemplateResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupRoleTemplateResult + secret, err := ctx.InvokePackageRaw("rancher2:index/getRoleTemplate:getRoleTemplate", args, &rv, "", opts...) + if err != nil { + return LookupRoleTemplateResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupRoleTemplateResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupRoleTemplateResultOutput), nil + } + return output, nil }).(LookupRoleTemplateResultOutput) } diff --git a/sdk/go/rancher2/getSecret.go b/sdk/go/rancher2/getSecret.go index f04ac11c3..85af27ec7 100644 --- a/sdk/go/rancher2/getSecret.go +++ b/sdk/go/rancher2/getSecret.go @@ -110,14 +110,20 @@ type LookupSecretResult struct { func LookupSecretOutput(ctx *pulumi.Context, args LookupSecretOutputArgs, opts ...pulumi.InvokeOption) LookupSecretResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupSecretResult, error) { + ApplyT(func(v interface{}) (LookupSecretResultOutput, error) { args := v.(LookupSecretArgs) - r, err := LookupSecret(ctx, &args, opts...) - var s LookupSecretResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupSecretResult + secret, err := ctx.InvokePackageRaw("rancher2:index/getSecret:getSecret", args, &rv, "", opts...) + if err != nil { + return LookupSecretResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupSecretResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupSecretResultOutput), nil + } + return output, nil }).(LookupSecretResultOutput) } diff --git a/sdk/go/rancher2/getSecretV2.go b/sdk/go/rancher2/getSecretV2.go index 846f937ef..354e8f69c 100644 --- a/sdk/go/rancher2/getSecretV2.go +++ b/sdk/go/rancher2/getSecretV2.go @@ -55,14 +55,20 @@ type LookupSecretV2Result struct { func LookupSecretV2Output(ctx *pulumi.Context, args LookupSecretV2OutputArgs, opts ...pulumi.InvokeOption) LookupSecretV2ResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupSecretV2Result, error) { + ApplyT(func(v interface{}) (LookupSecretV2ResultOutput, error) { args := v.(LookupSecretV2Args) - r, err := LookupSecretV2(ctx, &args, opts...) - var s LookupSecretV2Result - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupSecretV2Result + secret, err := ctx.InvokePackageRaw("rancher2:index/getSecretV2:getSecretV2", args, &rv, "", opts...) + if err != nil { + return LookupSecretV2ResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupSecretV2ResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupSecretV2ResultOutput), nil + } + return output, nil }).(LookupSecretV2ResultOutput) } diff --git a/sdk/go/rancher2/getSetting.go b/sdk/go/rancher2/getSetting.go index b90c6b41b..98893f8d8 100644 --- a/sdk/go/rancher2/getSetting.go +++ b/sdk/go/rancher2/getSetting.go @@ -65,14 +65,20 @@ type LookupSettingResult struct { func LookupSettingOutput(ctx *pulumi.Context, args LookupSettingOutputArgs, opts ...pulumi.InvokeOption) LookupSettingResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupSettingResult, error) { + ApplyT(func(v interface{}) (LookupSettingResultOutput, error) { args := v.(LookupSettingArgs) - r, err := LookupSetting(ctx, &args, opts...) - var s LookupSettingResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupSettingResult + secret, err := ctx.InvokePackageRaw("rancher2:index/getSetting:getSetting", args, &rv, "", opts...) + if err != nil { + return LookupSettingResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupSettingResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupSettingResultOutput), nil + } + return output, nil }).(LookupSettingResultOutput) } diff --git a/sdk/go/rancher2/getStorageClassV2.go b/sdk/go/rancher2/getStorageClassV2.go index c96b1a227..d9906d017 100644 --- a/sdk/go/rancher2/getStorageClassV2.go +++ b/sdk/go/rancher2/getStorageClassV2.go @@ -58,14 +58,20 @@ type LookupStorageClassV2Result struct { func LookupStorageClassV2Output(ctx *pulumi.Context, args LookupStorageClassV2OutputArgs, opts ...pulumi.InvokeOption) LookupStorageClassV2ResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupStorageClassV2Result, error) { + ApplyT(func(v interface{}) (LookupStorageClassV2ResultOutput, error) { args := v.(LookupStorageClassV2Args) - r, err := LookupStorageClassV2(ctx, &args, opts...) - var s LookupStorageClassV2Result - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupStorageClassV2Result + secret, err := ctx.InvokePackageRaw("rancher2:index/getStorageClassV2:getStorageClassV2", args, &rv, "", opts...) + if err != nil { + return LookupStorageClassV2ResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupStorageClassV2ResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupStorageClassV2ResultOutput), nil + } + return output, nil }).(LookupStorageClassV2ResultOutput) } diff --git a/sdk/go/rancher2/getUser.go b/sdk/go/rancher2/getUser.go index 99556a317..e6778bc3b 100644 --- a/sdk/go/rancher2/getUser.go +++ b/sdk/go/rancher2/getUser.go @@ -78,14 +78,20 @@ type LookupUserResult struct { func LookupUserOutput(ctx *pulumi.Context, args LookupUserOutputArgs, opts ...pulumi.InvokeOption) LookupUserResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupUserResult, error) { + ApplyT(func(v interface{}) (LookupUserResultOutput, error) { args := v.(LookupUserArgs) - r, err := LookupUser(ctx, &args, opts...) - var s LookupUserResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupUserResult + secret, err := ctx.InvokePackageRaw("rancher2:index/getUser:getUser", args, &rv, "", opts...) + if err != nil { + return LookupUserResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupUserResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupUserResultOutput), nil + } + return output, nil }).(LookupUserResultOutput) } diff --git a/sdk/java/build.gradle b/sdk/java/build.gradle index 903d4148a..2be55461f 100644 --- a/sdk/java/build.gradle +++ b/sdk/java/build.gradle @@ -44,7 +44,7 @@ repositories { dependencies { implementation("com.google.code.findbugs:jsr305:3.0.2") implementation("com.google.code.gson:gson:2.8.9") - implementation("com.pulumi:pulumi:0.16.0") + implementation("com.pulumi:pulumi:0.16.1") } task sourcesJar(type: Jar) { diff --git a/sdk/nodejs/getApp.ts b/sdk/nodejs/getApp.ts index 6ddc929c8..29d9cda8c 100644 --- a/sdk/nodejs/getApp.ts +++ b/sdk/nodejs/getApp.ts @@ -21,7 +21,6 @@ import * as utilities from "./utilities"; * ``` */ export function getApp(args: GetAppArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("rancher2:index/getApp:getApp", { "annotations": args.annotations, @@ -122,7 +121,13 @@ export interface GetAppResult { * ``` */ export function getAppOutput(args: GetAppOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getApp(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("rancher2:index/getApp:getApp", { + "annotations": args.annotations, + "name": args.name, + "projectId": args.projectId, + "targetNamespace": args.targetNamespace, + }, opts); } /** diff --git a/sdk/nodejs/getCatalog.ts b/sdk/nodejs/getCatalog.ts index fa2481f93..fd9da4594 100644 --- a/sdk/nodejs/getCatalog.ts +++ b/sdk/nodejs/getCatalog.ts @@ -19,7 +19,6 @@ import * as utilities from "./utilities"; * ``` */ export function getCatalog(args: GetCatalogArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("rancher2:index/getCatalog:getCatalog", { "name": args.name, @@ -111,7 +110,11 @@ export interface GetCatalogResult { * ``` */ export function getCatalogOutput(args: GetCatalogOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getCatalog(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("rancher2:index/getCatalog:getCatalog", { + "name": args.name, + "scope": args.scope, + }, opts); } /** diff --git a/sdk/nodejs/getCatalogV2.ts b/sdk/nodejs/getCatalogV2.ts index 750032a94..8f8b7371d 100644 --- a/sdk/nodejs/getCatalogV2.ts +++ b/sdk/nodejs/getCatalogV2.ts @@ -8,7 +8,6 @@ import * as utilities from "./utilities"; * Use this data source to retrieve information about a Rancher2 catalog v2. Catalog v2 resource is available at Rancher v2.5.x and above. */ export function getCatalogV2(args: GetCatalogV2Args, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("rancher2:index/getCatalogV2:getCatalogV2", { "clusterId": args.clusterId, @@ -109,7 +108,15 @@ export interface GetCatalogV2Result { * Use this data source to retrieve information about a Rancher2 catalog v2. Catalog v2 resource is available at Rancher v2.5.x and above. */ export function getCatalogV2Output(args: GetCatalogV2OutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getCatalogV2(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("rancher2:index/getCatalogV2:getCatalogV2", { + "clusterId": args.clusterId, + "exponentialBackoffMaxRetries": args.exponentialBackoffMaxRetries, + "exponentialBackoffMaxWait": args.exponentialBackoffMaxWait, + "exponentialBackoffMinWait": args.exponentialBackoffMinWait, + "insecurePlainHttp": args.insecurePlainHttp, + "name": args.name, + }, opts); } /** diff --git a/sdk/nodejs/getCertificate.ts b/sdk/nodejs/getCertificate.ts index 8b645982b..70ad9e39e 100644 --- a/sdk/nodejs/getCertificate.ts +++ b/sdk/nodejs/getCertificate.ts @@ -37,7 +37,6 @@ import * as utilities from "./utilities"; * ``` */ export function getCertificate(args: GetCertificateArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("rancher2:index/getCertificate:getCertificate", { "name": args.name, @@ -125,7 +124,12 @@ export interface GetCertificateResult { * ``` */ export function getCertificateOutput(args: GetCertificateOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getCertificate(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("rancher2:index/getCertificate:getCertificate", { + "name": args.name, + "namespaceId": args.namespaceId, + "projectId": args.projectId, + }, opts); } /** diff --git a/sdk/nodejs/getCloudCredential.ts b/sdk/nodejs/getCloudCredential.ts index 5920d3309..9bbb22a37 100644 --- a/sdk/nodejs/getCloudCredential.ts +++ b/sdk/nodejs/getCloudCredential.ts @@ -19,7 +19,6 @@ import * as utilities from "./utilities"; * ``` */ export function getCloudCredential(args: GetCloudCredentialArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("rancher2:index/getCloudCredential:getCloudCredential", { "name": args.name, @@ -69,7 +68,10 @@ export interface GetCloudCredentialResult { * ``` */ export function getCloudCredentialOutput(args: GetCloudCredentialOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getCloudCredential(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("rancher2:index/getCloudCredential:getCloudCredential", { + "name": args.name, + }, opts); } /** diff --git a/sdk/nodejs/getCluster.ts b/sdk/nodejs/getCluster.ts index 9ac9b17a2..24cf92f25 100644 --- a/sdk/nodejs/getCluster.ts +++ b/sdk/nodejs/getCluster.ts @@ -21,7 +21,6 @@ import * as utilities from "./utilities"; * ``` */ export function getCluster(args: GetClusterArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("rancher2:index/getCluster:getCluster", { "defaultPodSecurityAdmissionConfigurationTemplateName": args.defaultPodSecurityAdmissionConfigurationTemplateName, @@ -174,7 +173,11 @@ export interface GetClusterResult { * ``` */ export function getClusterOutput(args: GetClusterOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getCluster(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("rancher2:index/getCluster:getCluster", { + "defaultPodSecurityAdmissionConfigurationTemplateName": args.defaultPodSecurityAdmissionConfigurationTemplateName, + "name": args.name, + }, opts); } /** diff --git a/sdk/nodejs/getClusterDriver.ts b/sdk/nodejs/getClusterDriver.ts index d38b1d63c..6d7194d33 100644 --- a/sdk/nodejs/getClusterDriver.ts +++ b/sdk/nodejs/getClusterDriver.ts @@ -19,7 +19,6 @@ import * as utilities from "./utilities"; * ``` */ export function getClusterDriver(args: GetClusterDriverArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("rancher2:index/getClusterDriver:getClusterDriver", { "name": args.name, @@ -99,7 +98,11 @@ export interface GetClusterDriverResult { * ``` */ export function getClusterDriverOutput(args: GetClusterDriverOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getClusterDriver(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("rancher2:index/getClusterDriver:getClusterDriver", { + "name": args.name, + "url": args.url, + }, opts); } /** diff --git a/sdk/nodejs/getClusterRoleTemplateBinding.ts b/sdk/nodejs/getClusterRoleTemplateBinding.ts index a24f89429..207d765ef 100644 --- a/sdk/nodejs/getClusterRoleTemplateBinding.ts +++ b/sdk/nodejs/getClusterRoleTemplateBinding.ts @@ -20,7 +20,6 @@ import * as utilities from "./utilities"; * ``` */ export function getClusterRoleTemplateBinding(args: GetClusterRoleTemplateBindingArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("rancher2:index/getClusterRoleTemplateBinding:getClusterRoleTemplateBinding", { "clusterId": args.clusterId, @@ -99,7 +98,12 @@ export interface GetClusterRoleTemplateBindingResult { * ``` */ export function getClusterRoleTemplateBindingOutput(args: GetClusterRoleTemplateBindingOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getClusterRoleTemplateBinding(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("rancher2:index/getClusterRoleTemplateBinding:getClusterRoleTemplateBinding", { + "clusterId": args.clusterId, + "name": args.name, + "roleTemplateId": args.roleTemplateId, + }, opts); } /** diff --git a/sdk/nodejs/getClusterTemplate.ts b/sdk/nodejs/getClusterTemplate.ts index cdcc52dea..726d26baa 100644 --- a/sdk/nodejs/getClusterTemplate.ts +++ b/sdk/nodejs/getClusterTemplate.ts @@ -23,7 +23,6 @@ import * as utilities from "./utilities"; * ``` */ export function getClusterTemplate(args: GetClusterTemplateArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("rancher2:index/getClusterTemplate:getClusterTemplate", { "annotations": args.annotations, @@ -100,7 +99,13 @@ export interface GetClusterTemplateResult { * ``` */ export function getClusterTemplateOutput(args: GetClusterTemplateOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getClusterTemplate(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("rancher2:index/getClusterTemplate:getClusterTemplate", { + "annotations": args.annotations, + "description": args.description, + "labels": args.labels, + "name": args.name, + }, opts); } /** diff --git a/sdk/nodejs/getClusterV2.ts b/sdk/nodejs/getClusterV2.ts index 008df8225..4d7b474c1 100644 --- a/sdk/nodejs/getClusterV2.ts +++ b/sdk/nodejs/getClusterV2.ts @@ -22,7 +22,6 @@ import * as utilities from "./utilities"; * ``` */ export function getClusterV2(args: GetClusterV2Args, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("rancher2:index/getClusterV2:getClusterV2", { "fleetNamespace": args.fleetNamespace, @@ -117,7 +116,11 @@ export interface GetClusterV2Result { * ``` */ export function getClusterV2Output(args: GetClusterV2OutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getClusterV2(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("rancher2:index/getClusterV2:getClusterV2", { + "fleetNamespace": args.fleetNamespace, + "name": args.name, + }, opts); } /** diff --git a/sdk/nodejs/getConfigMapV2.ts b/sdk/nodejs/getConfigMapV2.ts index f88b07ac2..58011fd88 100644 --- a/sdk/nodejs/getConfigMapV2.ts +++ b/sdk/nodejs/getConfigMapV2.ts @@ -8,7 +8,6 @@ import * as utilities from "./utilities"; * Use this data source to retrieve information about a Rancher2 configMap v2. ConfigMap v2 resource is available at Rancher v2.5.x and above. */ export function getConfigMapV2(args: GetConfigMapV2Args, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("rancher2:index/getConfigMapV2:getConfigMapV2", { "clusterId": args.clusterId, @@ -71,7 +70,12 @@ export interface GetConfigMapV2Result { * Use this data source to retrieve information about a Rancher2 configMap v2. ConfigMap v2 resource is available at Rancher v2.5.x and above. */ export function getConfigMapV2Output(args: GetConfigMapV2OutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getConfigMapV2(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("rancher2:index/getConfigMapV2:getConfigMapV2", { + "clusterId": args.clusterId, + "name": args.name, + "namespace": args.namespace, + }, opts); } /** diff --git a/sdk/nodejs/getEtcdBackup.ts b/sdk/nodejs/getEtcdBackup.ts index 62ab9f26e..5a37f044b 100644 --- a/sdk/nodejs/getEtcdBackup.ts +++ b/sdk/nodejs/getEtcdBackup.ts @@ -22,7 +22,6 @@ import * as utilities from "./utilities"; * ``` */ export function getEtcdBackup(args: GetEtcdBackupArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("rancher2:index/getEtcdBackup:getEtcdBackup", { "clusterId": args.clusterId, @@ -95,7 +94,11 @@ export interface GetEtcdBackupResult { * ``` */ export function getEtcdBackupOutput(args: GetEtcdBackupOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getEtcdBackup(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("rancher2:index/getEtcdBackup:getEtcdBackup", { + "clusterId": args.clusterId, + "name": args.name, + }, opts); } /** diff --git a/sdk/nodejs/getGlobalDnsProvider.ts b/sdk/nodejs/getGlobalDnsProvider.ts index 1f80a0c0a..92db552bb 100644 --- a/sdk/nodejs/getGlobalDnsProvider.ts +++ b/sdk/nodejs/getGlobalDnsProvider.ts @@ -21,7 +21,6 @@ import * as utilities from "./utilities"; * ``` */ export function getGlobalDnsProvider(args: GetGlobalDnsProviderArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("rancher2:index/getGlobalDnsProvider:getGlobalDnsProvider", { "name": args.name, @@ -79,7 +78,10 @@ export interface GetGlobalDnsProviderResult { * ``` */ export function getGlobalDnsProviderOutput(args: GetGlobalDnsProviderOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getGlobalDnsProvider(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("rancher2:index/getGlobalDnsProvider:getGlobalDnsProvider", { + "name": args.name, + }, opts); } /** diff --git a/sdk/nodejs/getGlobalRole.ts b/sdk/nodejs/getGlobalRole.ts index e2e8ce920..529d1a191 100644 --- a/sdk/nodejs/getGlobalRole.ts +++ b/sdk/nodejs/getGlobalRole.ts @@ -21,7 +21,6 @@ import * as utilities from "./utilities"; * ``` */ export function getGlobalRole(args: GetGlobalRoleArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("rancher2:index/getGlobalRole:getGlobalRole", { "inheritedClusterRoles": args.inheritedClusterRoles, @@ -96,7 +95,11 @@ export interface GetGlobalRoleResult { * ``` */ export function getGlobalRoleOutput(args: GetGlobalRoleOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getGlobalRole(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("rancher2:index/getGlobalRole:getGlobalRole", { + "inheritedClusterRoles": args.inheritedClusterRoles, + "name": args.name, + }, opts); } /** diff --git a/sdk/nodejs/getGlobalRoleBinding.ts b/sdk/nodejs/getGlobalRoleBinding.ts index 5e6dbf430..c4ed8b33a 100644 --- a/sdk/nodejs/getGlobalRoleBinding.ts +++ b/sdk/nodejs/getGlobalRoleBinding.ts @@ -20,7 +20,6 @@ import * as utilities from "./utilities"; * ``` */ export function getGlobalRoleBinding(args: GetGlobalRoleBindingArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("rancher2:index/getGlobalRoleBinding:getGlobalRoleBinding", { "globalRoleId": args.globalRoleId, @@ -85,7 +84,11 @@ export interface GetGlobalRoleBindingResult { * ``` */ export function getGlobalRoleBindingOutput(args: GetGlobalRoleBindingOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getGlobalRoleBinding(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("rancher2:index/getGlobalRoleBinding:getGlobalRoleBinding", { + "globalRoleId": args.globalRoleId, + "name": args.name, + }, opts); } /** diff --git a/sdk/nodejs/getMultiClusterApp.ts b/sdk/nodejs/getMultiClusterApp.ts index f53e848f9..58b045b17 100644 --- a/sdk/nodejs/getMultiClusterApp.ts +++ b/sdk/nodejs/getMultiClusterApp.ts @@ -21,7 +21,6 @@ import * as utilities from "./utilities"; * ``` */ export function getMultiClusterApp(args: GetMultiClusterAppArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("rancher2:index/getMultiClusterApp:getMultiClusterApp", { "name": args.name, @@ -115,7 +114,10 @@ export interface GetMultiClusterAppResult { * ``` */ export function getMultiClusterAppOutput(args: GetMultiClusterAppOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getMultiClusterApp(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("rancher2:index/getMultiClusterApp:getMultiClusterApp", { + "name": args.name, + }, opts); } /** diff --git a/sdk/nodejs/getNamespace.ts b/sdk/nodejs/getNamespace.ts index 4a9ce8bfd..c1e969539 100644 --- a/sdk/nodejs/getNamespace.ts +++ b/sdk/nodejs/getNamespace.ts @@ -22,7 +22,6 @@ import * as utilities from "./utilities"; * ``` */ export function getNamespace(args: GetNamespaceArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("rancher2:index/getNamespace:getNamespace", { "name": args.name, @@ -91,7 +90,11 @@ export interface GetNamespaceResult { * ``` */ export function getNamespaceOutput(args: GetNamespaceOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getNamespace(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("rancher2:index/getNamespace:getNamespace", { + "name": args.name, + "projectId": args.projectId, + }, opts); } /** diff --git a/sdk/nodejs/getNodeDriver.ts b/sdk/nodejs/getNodeDriver.ts index 8a425e259..6c0862789 100644 --- a/sdk/nodejs/getNodeDriver.ts +++ b/sdk/nodejs/getNodeDriver.ts @@ -19,7 +19,6 @@ import * as utilities from "./utilities"; * ``` */ export function getNodeDriver(args: GetNodeDriverArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("rancher2:index/getNodeDriver:getNodeDriver", { "name": args.name, @@ -103,7 +102,11 @@ export interface GetNodeDriverResult { * ``` */ export function getNodeDriverOutput(args: GetNodeDriverOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getNodeDriver(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("rancher2:index/getNodeDriver:getNodeDriver", { + "name": args.name, + "url": args.url, + }, opts); } /** diff --git a/sdk/nodejs/getNodePool.ts b/sdk/nodejs/getNodePool.ts index 9362cc99a..606e07b06 100644 --- a/sdk/nodejs/getNodePool.ts +++ b/sdk/nodejs/getNodePool.ts @@ -22,7 +22,6 @@ import * as utilities from "./utilities"; * ``` */ export function getNodePool(args: GetNodePoolArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("rancher2:index/getNodePool:getNodePool", { "clusterId": args.clusterId, @@ -113,7 +112,12 @@ export interface GetNodePoolResult { * ``` */ export function getNodePoolOutput(args: GetNodePoolOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getNodePool(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("rancher2:index/getNodePool:getNodePool", { + "clusterId": args.clusterId, + "name": args.name, + "nodeTemplateId": args.nodeTemplateId, + }, opts); } /** diff --git a/sdk/nodejs/getNodeTemplate.ts b/sdk/nodejs/getNodeTemplate.ts index 0f928115d..fb492f2cf 100644 --- a/sdk/nodejs/getNodeTemplate.ts +++ b/sdk/nodejs/getNodeTemplate.ts @@ -21,7 +21,6 @@ import * as utilities from "./utilities"; * ``` */ export function getNodeTemplate(args: GetNodeTemplateArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("rancher2:index/getNodeTemplate:getNodeTemplate", { "name": args.name, @@ -124,7 +123,11 @@ export interface GetNodeTemplateResult { * ``` */ export function getNodeTemplateOutput(args: GetNodeTemplateOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getNodeTemplate(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("rancher2:index/getNodeTemplate:getNodeTemplate", { + "name": args.name, + "useInternalIpAddress": args.useInternalIpAddress, + }, opts); } /** diff --git a/sdk/nodejs/getPodSecurityAdmissionConfigurationTemplate.ts b/sdk/nodejs/getPodSecurityAdmissionConfigurationTemplate.ts index 7aa801be1..12956c02d 100644 --- a/sdk/nodejs/getPodSecurityAdmissionConfigurationTemplate.ts +++ b/sdk/nodejs/getPodSecurityAdmissionConfigurationTemplate.ts @@ -7,7 +7,6 @@ import * as outputs from "./types/output"; import * as utilities from "./utilities"; export function getPodSecurityAdmissionConfigurationTemplate(args: GetPodSecurityAdmissionConfigurationTemplateArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("rancher2:index/getPodSecurityAdmissionConfigurationTemplate:getPodSecurityAdmissionConfigurationTemplate", { "annotations": args.annotations, @@ -41,7 +40,12 @@ export interface GetPodSecurityAdmissionConfigurationTemplateResult { readonly name: string; } export function getPodSecurityAdmissionConfigurationTemplateOutput(args: GetPodSecurityAdmissionConfigurationTemplateOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getPodSecurityAdmissionConfigurationTemplate(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("rancher2:index/getPodSecurityAdmissionConfigurationTemplate:getPodSecurityAdmissionConfigurationTemplate", { + "annotations": args.annotations, + "labels": args.labels, + "name": args.name, + }, opts); } /** diff --git a/sdk/nodejs/getPrincipal.ts b/sdk/nodejs/getPrincipal.ts index 3b7f01b9c..f0f31c472 100644 --- a/sdk/nodejs/getPrincipal.ts +++ b/sdk/nodejs/getPrincipal.ts @@ -19,7 +19,6 @@ import * as utilities from "./utilities"; * ``` */ export function getPrincipal(args: GetPrincipalArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("rancher2:index/getPrincipal:getPrincipal", { "name": args.name, @@ -67,7 +66,11 @@ export interface GetPrincipalResult { * ``` */ export function getPrincipalOutput(args: GetPrincipalOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getPrincipal(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("rancher2:index/getPrincipal:getPrincipal", { + "name": args.name, + "type": args.type, + }, opts); } /** diff --git a/sdk/nodejs/getProject.ts b/sdk/nodejs/getProject.ts index 40eefff8f..a429383b6 100644 --- a/sdk/nodejs/getProject.ts +++ b/sdk/nodejs/getProject.ts @@ -10,7 +10,6 @@ import * as utilities from "./utilities"; * ## Example Usage */ export function getProject(args: GetProjectArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("rancher2:index/getProject:getProject", { "clusterId": args.clusterId, @@ -71,7 +70,11 @@ export interface GetProjectResult { * ## Example Usage */ export function getProjectOutput(args: GetProjectOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getProject(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("rancher2:index/getProject:getProject", { + "clusterId": args.clusterId, + "name": args.name, + }, opts); } /** diff --git a/sdk/nodejs/getProjectRoleTemplateBinding.ts b/sdk/nodejs/getProjectRoleTemplateBinding.ts index abcf41730..7947916fd 100644 --- a/sdk/nodejs/getProjectRoleTemplateBinding.ts +++ b/sdk/nodejs/getProjectRoleTemplateBinding.ts @@ -20,7 +20,6 @@ import * as utilities from "./utilities"; * ``` */ export function getProjectRoleTemplateBinding(args: GetProjectRoleTemplateBindingArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("rancher2:index/getProjectRoleTemplateBinding:getProjectRoleTemplateBinding", { "name": args.name, @@ -99,7 +98,12 @@ export interface GetProjectRoleTemplateBindingResult { * ``` */ export function getProjectRoleTemplateBindingOutput(args: GetProjectRoleTemplateBindingOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getProjectRoleTemplateBinding(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("rancher2:index/getProjectRoleTemplateBinding:getProjectRoleTemplateBinding", { + "name": args.name, + "projectId": args.projectId, + "roleTemplateId": args.roleTemplateId, + }, opts); } /** diff --git a/sdk/nodejs/getRegistry.ts b/sdk/nodejs/getRegistry.ts index 74a53c449..4c6dc6c0e 100644 --- a/sdk/nodejs/getRegistry.ts +++ b/sdk/nodejs/getRegistry.ts @@ -39,7 +39,6 @@ import * as utilities from "./utilities"; * ``` */ export function getRegistry(args: GetRegistryArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("rancher2:index/getRegistry:getRegistry", { "name": args.name, @@ -127,7 +126,12 @@ export interface GetRegistryResult { * ``` */ export function getRegistryOutput(args: GetRegistryOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getRegistry(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("rancher2:index/getRegistry:getRegistry", { + "name": args.name, + "namespaceId": args.namespaceId, + "projectId": args.projectId, + }, opts); } /** diff --git a/sdk/nodejs/getRoleTemplate.ts b/sdk/nodejs/getRoleTemplate.ts index 198a54946..cd95e6a74 100644 --- a/sdk/nodejs/getRoleTemplate.ts +++ b/sdk/nodejs/getRoleTemplate.ts @@ -21,7 +21,6 @@ import * as utilities from "./utilities"; * ``` */ export function getRoleTemplate(args: GetRoleTemplateArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("rancher2:index/getRoleTemplate:getRoleTemplate", { "context": args.context, @@ -122,7 +121,12 @@ export interface GetRoleTemplateResult { * ``` */ export function getRoleTemplateOutput(args: GetRoleTemplateOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getRoleTemplate(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("rancher2:index/getRoleTemplate:getRoleTemplate", { + "context": args.context, + "externalRules": args.externalRules, + "name": args.name, + }, opts); } /** diff --git a/sdk/nodejs/getSecret.ts b/sdk/nodejs/getSecret.ts index 1e1f5be81..39fe02a90 100644 --- a/sdk/nodejs/getSecret.ts +++ b/sdk/nodejs/getSecret.ts @@ -37,7 +37,6 @@ import * as utilities from "./utilities"; * ``` */ export function getSecret(args: GetSecretArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("rancher2:index/getSecret:getSecret", { "name": args.name, @@ -125,7 +124,12 @@ export interface GetSecretResult { * ``` */ export function getSecretOutput(args: GetSecretOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getSecret(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("rancher2:index/getSecret:getSecret", { + "name": args.name, + "namespaceId": args.namespaceId, + "projectId": args.projectId, + }, opts); } /** diff --git a/sdk/nodejs/getSecretV2.ts b/sdk/nodejs/getSecretV2.ts index 3b316771e..4ffe3a597 100644 --- a/sdk/nodejs/getSecretV2.ts +++ b/sdk/nodejs/getSecretV2.ts @@ -8,7 +8,6 @@ import * as utilities from "./utilities"; * Use this data source to retrieve information about a Rancher2 secret v2. Secret v2 resource is available at Rancher v2.5.x and above. */ export function getSecretV2(args: GetSecretV2Args, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("rancher2:index/getSecretV2:getSecretV2", { "clusterId": args.clusterId, @@ -75,7 +74,12 @@ export interface GetSecretV2Result { * Use this data source to retrieve information about a Rancher2 secret v2. Secret v2 resource is available at Rancher v2.5.x and above. */ export function getSecretV2Output(args: GetSecretV2OutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getSecretV2(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("rancher2:index/getSecretV2:getSecretV2", { + "clusterId": args.clusterId, + "name": args.name, + "namespace": args.namespace, + }, opts); } /** diff --git a/sdk/nodejs/getSetting.ts b/sdk/nodejs/getSetting.ts index cd1db3d57..07a4625b6 100644 --- a/sdk/nodejs/getSetting.ts +++ b/sdk/nodejs/getSetting.ts @@ -19,7 +19,6 @@ import * as utilities from "./utilities"; * ``` */ export function getSetting(args: GetSettingArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("rancher2:index/getSetting:getSetting", { "name": args.name, @@ -65,7 +64,10 @@ export interface GetSettingResult { * ``` */ export function getSettingOutput(args: GetSettingOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getSetting(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("rancher2:index/getSetting:getSetting", { + "name": args.name, + }, opts); } /** diff --git a/sdk/nodejs/getStorageClassV2.ts b/sdk/nodejs/getStorageClassV2.ts index b4cf6256b..35fe04dbe 100644 --- a/sdk/nodejs/getStorageClassV2.ts +++ b/sdk/nodejs/getStorageClassV2.ts @@ -8,7 +8,6 @@ import * as utilities from "./utilities"; * Use this data source to retrieve information about a Rancher2 Storage Class v2. Storage Class v2 resource is available at Rancher v2.5.x and above. */ export function getStorageClassV2(args: GetStorageClassV2Args, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("rancher2:index/getStorageClassV2:getStorageClassV2", { "clusterId": args.clusterId, @@ -81,7 +80,11 @@ export interface GetStorageClassV2Result { * Use this data source to retrieve information about a Rancher2 Storage Class v2. Storage Class v2 resource is available at Rancher v2.5.x and above. */ export function getStorageClassV2Output(args: GetStorageClassV2OutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getStorageClassV2(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("rancher2:index/getStorageClassV2:getStorageClassV2", { + "clusterId": args.clusterId, + "name": args.name, + }, opts); } /** diff --git a/sdk/nodejs/getUser.ts b/sdk/nodejs/getUser.ts index 7d9a7216b..8dfd7f8bd 100644 --- a/sdk/nodejs/getUser.ts +++ b/sdk/nodejs/getUser.ts @@ -20,7 +20,6 @@ import * as utilities from "./utilities"; */ export function getUser(args?: GetUserArgs, opts?: pulumi.InvokeOptions): Promise { args = args || {}; - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("rancher2:index/getUser:getUser", { "isExternal": args.isExternal, @@ -93,7 +92,13 @@ export interface GetUserResult { * ``` */ export function getUserOutput(args?: GetUserOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getUser(a, opts)) + args = args || {}; + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("rancher2:index/getUser:getUser", { + "isExternal": args.isExternal, + "name": args.name, + "username": args.username, + }, opts); } /**