-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: ytimocin <[email protected]>
- Loading branch information
Showing
7 changed files
with
1,679 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
extension radius | ||
|
||
@description('Specifies the location for resources.') | ||
param location string = 'global' | ||
|
||
resource env 'Applications.Core/environments@2023-10-01-preview' = { | ||
name: 'radius-test-env' | ||
location: location | ||
properties: { | ||
compute: { | ||
kind: 'kubernetes' | ||
resourceId: 'self' | ||
namespace: 'radius-test-env-ns-1' | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
terraform { | ||
required_providers { | ||
radius = { | ||
source = "hashicorp.com/microsoft/radius" | ||
# version = "dev" | ||
} | ||
} | ||
} | ||
|
||
provider "radius" { | ||
api_endpoint = "test" | ||
api_token = "test" | ||
} | ||
|
||
resource "radius_environment" "test" { | ||
name = "env-from-terraform-command" | ||
simulated = false | ||
|
||
compute = { | ||
kind = "kubernetes" | ||
resource_id = "self" | ||
namespace = "default-env-from-terraform-command" | ||
|
||
# identity = { | ||
# kind = "azure.com.workload" | ||
# oidc_issuer = "https://issuer.example.com" | ||
# resource = "resource-id" | ||
# } | ||
} | ||
|
||
providers = { | ||
azure = { | ||
scope = "scope-value" | ||
} | ||
aws = { | ||
scope = "scope-value" | ||
} | ||
} | ||
|
||
recipes = { | ||
example_recipe = { | ||
template_path = "path/to/template" | ||
template_kind = "bicep" | ||
template_version = "1.0.0" | ||
parameters = { | ||
param1 = "value1" | ||
param2 = "value2" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,250 @@ | ||
module github.com/radius-project/radius/terraform-provider | ||
|
||
go 1.23.5 | ||
|
||
toolchain go1.23.6 | ||
|
||
require ( | ||
github.com/hashicorp/terraform-plugin-framework v1.13.0 | ||
github.com/hashicorp/terraform-plugin-framework-validators v0.16.0 | ||
github.com/radius-project/radius v0.43.0 | ||
) | ||
|
||
require ( | ||
dario.cat/mergo v1.0.1 // indirect | ||
github.com/AdaLogics/go-fuzz-headers v0.0.0-20240806141605-e8a1dd7889d6 // indirect | ||
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.17.0 // indirect | ||
github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.8.1 // indirect | ||
github.com/Azure/azure-sdk-for-go/sdk/internal v1.10.0 // indirect | ||
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/authorization/armauthorization/v2 v2.2.0 // indirect | ||
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/msi/armmsi v1.2.0 // indirect | ||
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 // indirect | ||
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armsubscriptions v1.3.0 // indirect | ||
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicebus/armservicebus/v2 v2.0.0-beta.3 // indirect | ||
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage v1.6.0 // indirect | ||
github.com/Azure/go-ansiterm v0.0.0-20250102033503-faa5f7b0171c // indirect | ||
github.com/Azure/secrets-store-csi-driver-provider-azure v1.6.2 // indirect | ||
github.com/AzureAD/microsoft-authentication-library-for-go v1.3.3 // indirect | ||
github.com/BurntSushi/toml v1.4.0 // indirect | ||
github.com/MakeNowJust/heredoc v1.0.0 // indirect | ||
github.com/Masterminds/goutils v1.1.1 // indirect | ||
github.com/Masterminds/semver v1.5.0 // indirect | ||
github.com/Masterminds/semver/v3 v3.3.1 // indirect | ||
github.com/Masterminds/sprig/v3 v3.3.0 // indirect | ||
github.com/Masterminds/squirrel v1.5.4 // indirect | ||
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 // indirect | ||
github.com/atotto/clipboard v0.1.4 // indirect | ||
github.com/aws/aws-sdk-go-v2 v1.36.1 // indirect | ||
github.com/aws/aws-sdk-go-v2/config v1.29.6 // indirect | ||
github.com/aws/aws-sdk-go-v2/credentials v1.17.59 // indirect | ||
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.28 // indirect | ||
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.32 // indirect | ||
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.32 // indirect | ||
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.2 // indirect | ||
github.com/aws/aws-sdk-go-v2/service/ec2 v1.202.4 // indirect | ||
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.2 // indirect | ||
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.13 // indirect | ||
github.com/aws/aws-sdk-go-v2/service/sso v1.24.15 // indirect | ||
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.28.14 // indirect | ||
github.com/aws/aws-sdk-go-v2/service/sts v1.33.14 // indirect | ||
github.com/aws/smithy-go v1.22.2 // indirect | ||
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect | ||
github.com/beorn7/perks v1.0.1 // indirect | ||
github.com/blang/semver/v4 v4.0.0 // indirect | ||
github.com/cespare/xxhash/v2 v2.3.0 // indirect | ||
github.com/chai2010/gettext-go v1.0.3 // indirect | ||
github.com/charmbracelet/bubbles v0.20.0 // indirect | ||
github.com/charmbracelet/bubbletea v1.3.2 // indirect | ||
github.com/charmbracelet/lipgloss v1.0.0 // indirect | ||
github.com/charmbracelet/x/ansi v0.8.0 // indirect | ||
github.com/charmbracelet/x/term v0.2.1 // indirect | ||
github.com/containerd/containerd v1.7.25 // indirect | ||
github.com/containerd/errdefs v1.0.0 // indirect | ||
github.com/containerd/log v0.1.0 // indirect | ||
github.com/containerd/platforms v0.2.1 // indirect | ||
github.com/cyphar/filepath-securejoin v0.4.1 // indirect | ||
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect | ||
github.com/dimchansky/utfbom v1.1.1 // indirect | ||
github.com/distribution/reference v0.6.0 // indirect | ||
github.com/docker/cli v27.5.1+incompatible // indirect | ||
github.com/docker/distribution v2.8.3+incompatible // indirect | ||
github.com/docker/docker v27.5.1+incompatible // indirect | ||
github.com/docker/docker-credential-helpers v0.8.2 // indirect | ||
github.com/docker/go-connections v0.5.0 // indirect | ||
github.com/docker/go-metrics v0.0.1 // indirect | ||
github.com/emicklei/go-restful/v3 v3.12.1 // indirect | ||
github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect | ||
github.com/evanphx/json-patch v5.9.11+incompatible // indirect | ||
github.com/evanphx/json-patch/v5 v5.9.11 // indirect | ||
github.com/exponent-io/jsonpath v0.0.0-20210407135951-1de76d718b3f // indirect | ||
github.com/fatih/color v1.18.0 // indirect | ||
github.com/felixge/httpsnoop v1.0.4 // indirect | ||
github.com/fsnotify/fsnotify v1.8.0 // indirect | ||
github.com/fxamacker/cbor/v2 v2.7.0 // indirect | ||
github.com/gabriel-vasile/mimetype v1.4.8 // indirect | ||
github.com/go-errors/errors v1.5.1 // indirect | ||
github.com/go-gorp/gorp/v3 v3.1.0 // indirect | ||
github.com/go-logr/logr v1.4.2 // indirect | ||
github.com/go-logr/stdr v1.2.2 // indirect | ||
github.com/go-logr/zapr v1.3.0 // indirect | ||
github.com/go-openapi/jsonpointer v0.21.0 // indirect | ||
github.com/go-openapi/jsonreference v0.21.0 // indirect | ||
github.com/go-openapi/swag v0.23.0 // indirect | ||
github.com/go-playground/locales v0.14.1 // indirect | ||
github.com/go-playground/universal-translator v0.18.1 // indirect | ||
github.com/go-playground/validator/v10 v10.24.0 // indirect | ||
github.com/gobwas/glob v0.2.3 // indirect | ||
github.com/gofrs/flock v0.12.1 // indirect | ||
github.com/gogo/protobuf v1.3.2 // indirect | ||
github.com/golang-jwt/jwt/v5 v5.2.1 // indirect | ||
github.com/golang/protobuf v1.5.4 // indirect | ||
github.com/google/btree v1.1.3 // indirect | ||
github.com/google/gnostic-models v0.6.9 // indirect | ||
github.com/google/go-cmp v0.6.0 // indirect | ||
github.com/google/gofuzz v1.2.0 // indirect | ||
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect | ||
github.com/google/uuid v1.6.0 // indirect | ||
github.com/gorilla/mux v1.8.1 // indirect | ||
github.com/gorilla/websocket v1.5.3 // indirect | ||
github.com/gosuri/uilive v0.0.4 // indirect | ||
github.com/gosuri/uitable v0.0.4 // indirect | ||
github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79 // indirect | ||
github.com/hashicorp/errwrap v1.1.0 // 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.3 // indirect | ||
github.com/hashicorp/go-uuid v1.0.3 // indirect | ||
github.com/hashicorp/hcl v1.0.1-vault-7 // indirect | ||
github.com/hashicorp/terraform-plugin-go v0.26.0 // indirect | ||
github.com/hashicorp/terraform-plugin-log v0.9.0 // indirect | ||
github.com/hashicorp/terraform-registry-address v0.2.4 // indirect | ||
github.com/hashicorp/terraform-svchost v0.1.1 // indirect | ||
github.com/hashicorp/yamux v0.1.2 // indirect | ||
github.com/huandu/xstrings v1.5.0 // indirect | ||
github.com/inconshreveable/mousetrap v1.1.0 // indirect | ||
github.com/jackc/pgpassfile v1.0.0 // indirect | ||
github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 // indirect | ||
github.com/jackc/pgx/v5 v5.7.2 // indirect | ||
github.com/jackc/puddle/v2 v2.2.2 // indirect | ||
github.com/jmoiron/sqlx v1.4.0 // indirect | ||
github.com/josharian/intern v1.0.0 // indirect | ||
github.com/json-iterator/go v1.1.12 // indirect | ||
github.com/klauspost/compress v1.17.11 // indirect | ||
github.com/kylelemons/godebug v1.1.0 // indirect | ||
github.com/lann/builder v0.0.0-20180802200727-47ae307949d0 // indirect | ||
github.com/lann/ps v0.0.0-20150810152359-62de8c46ede0 // indirect | ||
github.com/leodido/go-urn v1.4.0 // indirect | ||
github.com/lib/pq v1.10.9 // indirect | ||
github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de // indirect | ||
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect | ||
github.com/magiconair/properties v1.8.9 // indirect | ||
github.com/mailru/easyjson v0.9.0 // indirect | ||
github.com/mattn/go-colorable v0.1.14 // indirect | ||
github.com/mattn/go-isatty v0.0.20 // indirect | ||
github.com/mattn/go-localereader v0.0.1 // indirect | ||
github.com/mattn/go-runewidth v0.0.16 // indirect | ||
github.com/mitchellh/copystructure v1.2.0 // indirect | ||
github.com/mitchellh/go-testing-interface v1.14.1 // indirect | ||
github.com/mitchellh/go-wordwrap v1.0.1 // indirect | ||
github.com/mitchellh/mapstructure v1.5.0 // indirect | ||
github.com/mitchellh/reflectwalk v1.0.2 // indirect | ||
github.com/moby/locker v1.0.1 // indirect | ||
github.com/moby/spdystream v0.5.0 // indirect | ||
github.com/moby/term v0.5.2 // indirect | ||
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect | ||
github.com/modern-go/reflect2 v1.0.2 // indirect | ||
github.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00 // indirect | ||
github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6 // indirect | ||
github.com/muesli/cancelreader v0.2.2 // indirect | ||
github.com/muesli/termenv v0.15.2 // indirect | ||
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect | ||
github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f // indirect | ||
github.com/novln/docker-parser v1.0.0 // indirect | ||
github.com/oklog/run v1.1.0 // indirect | ||
github.com/opencontainers/go-digest v1.0.0 // indirect | ||
github.com/opencontainers/image-spec v1.1.0 // indirect | ||
github.com/openzipkin/zipkin-go v0.4.3 // indirect | ||
github.com/pelletier/go-toml/v2 v2.2.3 // indirect | ||
github.com/peterbourgon/diskv v2.0.1+incompatible // indirect | ||
github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect | ||
github.com/pkg/errors v0.9.1 // indirect | ||
github.com/projectcontour/contour v1.30.2 // indirect | ||
github.com/prometheus/client_golang v1.20.5 // indirect | ||
github.com/prometheus/client_model v0.6.1 // indirect | ||
github.com/prometheus/common v0.62.0 // indirect | ||
github.com/prometheus/procfs v0.15.1 // indirect | ||
github.com/rivo/uniseg v0.4.7 // indirect | ||
github.com/rubenv/sql-migrate v1.7.1 // indirect | ||
github.com/russross/blackfriday/v2 v2.1.0 // indirect | ||
github.com/sagikazarmark/locafero v0.7.0 // indirect | ||
github.com/sagikazarmark/slog-shim v0.1.0 // indirect | ||
github.com/sahilm/fuzzy v0.1.1 // indirect | ||
github.com/shopspring/decimal v1.4.0 // indirect | ||
github.com/sirupsen/logrus v1.9.3 // indirect | ||
github.com/sourcegraph/conc v0.3.0 // indirect | ||
github.com/spf13/afero v1.12.0 // indirect | ||
github.com/spf13/cast v1.7.1 // indirect | ||
github.com/spf13/cobra v1.8.1 // indirect | ||
github.com/spf13/pflag v1.0.6 // indirect | ||
github.com/spf13/viper v1.19.0 // indirect | ||
github.com/stern/stern v1.32.0 // indirect | ||
github.com/subosito/gotenv v1.6.0 // indirect | ||
github.com/vmihailenco/msgpack/v5 v5.4.1 // indirect | ||
github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect | ||
github.com/x448/float16 v0.8.4 // indirect | ||
github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb // indirect | ||
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect | ||
github.com/xeipuuv/gojsonschema v1.2.0 // indirect | ||
github.com/xlab/treeprint v1.2.0 // indirect | ||
go.opentelemetry.io/auto/sdk v1.1.0 // indirect | ||
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.59.0 // indirect | ||
go.opentelemetry.io/contrib/instrumentation/runtime v0.59.0 // indirect | ||
go.opentelemetry.io/otel v1.34.0 // indirect | ||
go.opentelemetry.io/otel/exporters/prometheus v0.56.0 // indirect | ||
go.opentelemetry.io/otel/exporters/zipkin v1.34.0 // indirect | ||
go.opentelemetry.io/otel/metric v1.34.0 // indirect | ||
go.opentelemetry.io/otel/sdk v1.34.0 // indirect | ||
go.opentelemetry.io/otel/sdk/metric v1.34.0 // indirect | ||
go.opentelemetry.io/otel/trace v1.34.0 // indirect | ||
go.uber.org/atomic v1.11.0 // indirect | ||
go.uber.org/mock v0.5.0 // indirect | ||
go.uber.org/multierr v1.11.0 // indirect | ||
go.uber.org/zap v1.27.0 // indirect | ||
golang.org/x/crypto v0.33.0 // indirect | ||
golang.org/x/exp v0.0.0-20250210185358-939b2ce775ac // indirect | ||
golang.org/x/net v0.35.0 // indirect | ||
golang.org/x/oauth2 v0.26.0 // indirect | ||
golang.org/x/sync v0.11.0 // indirect | ||
golang.org/x/sys v0.30.0 // indirect | ||
golang.org/x/term v0.29.0 // indirect | ||
golang.org/x/text v0.22.0 // indirect | ||
golang.org/x/time v0.10.0 // indirect | ||
google.golang.org/genproto/googleapis/rpc v0.0.0-20250207221924-e9438ea467c6 // indirect | ||
google.golang.org/grpc v1.70.0 // indirect | ||
google.golang.org/protobuf v1.36.5 // indirect | ||
gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect | ||
gopkg.in/inf.v0 v0.9.1 // indirect | ||
gopkg.in/ini.v1 v1.67.0 // indirect | ||
gopkg.in/yaml.v3 v3.0.1 // indirect | ||
helm.sh/helm/v3 v3.17.0 // indirect | ||
k8s.io/api v0.32.1 // indirect | ||
k8s.io/apiextensions-apiserver v0.32.1 // indirect | ||
k8s.io/apimachinery v0.32.1 // indirect | ||
k8s.io/apiserver v0.32.1 // indirect | ||
k8s.io/cli-runtime v0.32.1 // indirect | ||
k8s.io/client-go v0.32.1 // indirect | ||
k8s.io/component-base v0.32.1 // indirect | ||
k8s.io/klog/v2 v2.130.1 // indirect | ||
k8s.io/kube-openapi v0.0.0-20241212222426-2c72e554b1e7 // indirect | ||
k8s.io/kubectl v0.32.1 // indirect | ||
k8s.io/utils v0.0.0-20241210054802-24370beab758 // indirect | ||
oras.land/oras-go v1.2.6 // indirect | ||
oras.land/oras-go/v2 v2.5.0 // indirect | ||
sigs.k8s.io/controller-runtime v0.20.1 // indirect | ||
sigs.k8s.io/json v0.0.0-20241014173422-cfa47c3a1cc8 // indirect | ||
sigs.k8s.io/kustomize/api v0.19.0 // indirect | ||
sigs.k8s.io/kustomize/kyaml v0.19.0 // indirect | ||
sigs.k8s.io/secrets-store-csi-driver v1.4.8 // indirect | ||
sigs.k8s.io/structured-merge-diff/v4 v4.5.0 // indirect | ||
sigs.k8s.io/yaml v1.4.0 // indirect | ||
) |
Oops, something went wrong.