Skip to content

Commit

Permalink
Updating the resource reference schemas for environment and secret st…
Browse files Browse the repository at this point in the history
…ore (#1076)

* Updating the resource reference schemas for environment and secret store.

Signed-off-by: jasonviviano <[email protected]>

* Updated links

Signed-off-by: jasonviviano <[email protected]>

* Apply suggestions from code review

Co-authored-by: Aaron Crawfis <[email protected]>
Signed-off-by: jasonviviano <[email protected]>

* Addressed feedback on resource reference schemas for env and secret store

Signed-off-by: jasonviviano <[email protected]>

---------

Signed-off-by: jasonviviano <[email protected]>
Co-authored-by: Aaron Crawfis <[email protected]>
  • Loading branch information
jasonviviano and AaronCrawfis authored Mar 5, 2024
1 parent ca6c1ab commit c9c773c
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ weight: 000
| Key | Required | Description | Example |
|------|:--------:|-------------|---------|
| [compute](#compute) | y | Container runtime configuration. | [See below](#compute)
| [recipeConfig](#recipeconfig) | n | Configuration for Recipes. Defines how each type of Recipe should be configured and run. | [See below](#recipeconfig)
| [recipes](#recipes) | n | Recipes registered to the environment | [See below](#recipes)
| simulated | n | When enabled, a simulated environment will not deploy any output resources or run any Recipes when an application is deployed. This is useful for dry runs or testing. Defaults to `false`. | `true`
| [extensions](#extensions) | n | The environment extension. | [See below](#extensions)

### compute

Expand All @@ -44,6 +46,38 @@ Details on what to run and how to run it are defined in the `container` property
| kind | y | The kind of identity. 'azure.com.workload' is currently only supported. | `'azure.com.workload'` |
| oidcIssuer | n | The [OIDC issuer URL](https://azure.github.io/azure-workload-identity/docs/installation/self-managed-clusters/oidc-issuer.html) for your Kubernetes cluster. | `'{IssuerURL}/.well-known/openid-configuration'` |

### recipeConfig

| Key | Required | Description | Example |
|------|:--------:|-------------|---------|
| terraform | y | Configuration for Terraform Recipes. Controls how Terraform plans and applies templates as part of Recipe deployment. | [See below](#terraform-properties)
| env | n | Environment variables injected during Terraform Recipe execution for the recipes in the environment. | [See below](#env-properties)

#### terraform properties

| Key | Required | Description | Example |
|------|:--------:|-------------|---------|
| authentication | y | Authentication information used to access private Terraform module sources. Supported module sources: Git. | [See below](#authentication-properties)
| providers | n | Configuration for Terraform Recipe Providers. Controls how Terraform interacts with cloud providers, SaaS providers, and other APIs. | For more information refer to the [Terraform documentation](https://developer.hashicorp.com/terraform/language/providers/configuration).

##### authentication properties

| Key | Required | Description | Example |
|------|:--------:|-------------|---------|
| pat | y | Personal Access Token (PAT) configuration used to authenticate to Git platforms. | [See below](#pat-properties)

##### pat properties

| Key | Required | Description | Example |
|------|:--------:|-------------|---------|
| secret | y | The ID of an Applications.Core/SecretStore resource containing the Git platform personal access token (PAT). The secret store must have a secret named 'pat', containing the PAT value. A secret named 'username' is optional, containing the username associated with the pat. By default no username is specified. | For more information refer to the [Terraform documentation](https://developer.hashicorp.com/terraform/language/providers/configuration).

#### env properties

| Key | Required | Description | Example |
|------|:--------:|-------------|---------|
| \<user-defined key-value pairs\> | n | User-defined environment variables. | `'env_var_1'`: `'env_value_1'`

### recipes

| Key | Required | Description | Example |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Note that only Kubernetes Secrets are currently supported with more to come in t

| Key | Required | Description | Example |
|----------|:--------:|-------------|---------|
| application | y | The ID of the application resource this resource belongs to. | `app.id` |
| application | n | The ID of the application resource this resource belongs to. | `app.id` |
| resource | n | Reference to the backing secret store resource, required only if valueFrom specifies referenced secret name. | `namespace/secretName` |
| type | y | The type of secret in your resource. | `'certificate'`
| [data](#data) | y | An object to represent key-value type secrets. | [See below](#data)
Expand Down

0 comments on commit c9c773c

Please sign in to comment.