EnvironmentConfig v1beta1 promotion related changes (#833)

This commit is contained in:
Yury Tsarev 2024-11-14 09:26:29 +01:00 committed by GitHub
parent 6861340326
commit 9a8d43222f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 378 additions and 400 deletions

View File

@ -48,7 +48,7 @@ Here an example
{{<hover label="env1" line="2">}}EnvironmentConfig{{</hover>}}. {{<hover label="env1" line="2">}}EnvironmentConfig{{</hover>}}.
```yaml {label="env1"} ```yaml {label="env1"}
apiVersion: apiextensions.crossplane.io/v1alpha1 apiVersion: apiextensions.crossplane.io/v1beta1
kind: EnvironmentConfig kind: EnvironmentConfig
metadata: metadata:
name: example-environment name: example-environment

View File

@ -1112,7 +1112,7 @@ kubectl api-resources | grep crossplane
compositeresourcedefinitions xrd,xrds apiextensions.crossplane.io/v1 false CompositeResourceDefinition compositeresourcedefinitions xrd,xrds apiextensions.crossplane.io/v1 false CompositeResourceDefinition
compositionrevisions comprev apiextensions.crossplane.io/v1 false CompositionRevision compositionrevisions comprev apiextensions.crossplane.io/v1 false CompositionRevision
compositions comp apiextensions.crossplane.io/v1 false Composition compositions comp apiextensions.crossplane.io/v1 false Composition
environmentconfigs envcfg apiextensions.crossplane.io/v1alpha1 false EnvironmentConfig environmentconfigs envcfg apiextensions.crossplane.io/v1beta1 false EnvironmentConfig
usages apiextensions.crossplane.io/v1alpha1 false Usage usages apiextensions.crossplane.io/v1alpha1 false Usage
configurationrevisions pkg.crossplane.io/v1 false ConfigurationRevision configurationrevisions pkg.crossplane.io/v1 false ConfigurationRevision
configurations pkg.crossplane.io/v1 false Configuration configurations pkg.crossplane.io/v1 false Configuration

View File

@ -122,7 +122,7 @@ The contents of the `base` are identical to creating a standalone
[managed resource]({{<ref "../concepts/managed-resources">}}). [managed resource]({{<ref "../concepts/managed-resources">}}).
This example uses This example uses
[Upbound's Provider AWS](https://marketplace.upbound.io/providers/upbound/provider-aws/v0.35.0) [Upbound's Provider AWS](https://marketplace.upbound.io/providers/upbound/provider-family-aws/v1.17.0)
to define a S3 storage `Bucket` and EC2 compute `Instance`. to define a S3 storage `Bucket` and EC2 compute `Instance`.
After defining the `apiVersion` and `kind`, define the `spec.forProvider` fields After defining the `apiVersion` and `kind`, define the `spec.forProvider` fields
@ -391,11 +391,6 @@ Labels: crossplane.io/composite=my-example-claim-jp7rx
Crossplane uses EnvironmentConfigs to create in-memory data stores. Compositions Crossplane uses EnvironmentConfigs to create in-memory data stores. Compositions
can read and write from this data store as part of the patch process. can read and write from this data store as part of the patch process.
{{<hint "important" >}}
EnvironmentConfigs are an alpha feature. Alpha features aren't enabled by
default.
{{< /hint >}}
EnvironmentConfigs can predefine data that Compositions can use or a composite EnvironmentConfigs can predefine data that Compositions can use or a composite
resource can write data to their in-memory environment for other resources to resource can write data to their in-memory environment for other resources to
read. read.
@ -619,7 +614,7 @@ spec:
{{< expand "Reference EnvironmentConfig" >}} {{< expand "Reference EnvironmentConfig" >}}
```yaml {copy-lines="all"} ```yaml {copy-lines="all"}
apiVersion: apiextensions.crossplane.io/v1alpha1 apiVersion: apiextensions.crossplane.io/v1beta1
kind: EnvironmentConfig kind: EnvironmentConfig
metadata: metadata:
name: example-environment name: example-environment
@ -918,8 +913,6 @@ Spec:
<!-- vale Google.Headings = YES --> <!-- vale Google.Headings = YES -->
{{<hint "important" >}} {{<hint "important" >}}
EnvironmentConfigs are an alpha feature. They aren't enabled by default.
For more information about using an EnvironmentConfig, read the For more information about using an EnvironmentConfig, read the
[EnvironmentConfigs documentation]({{<ref "../concepts/environment-configs">}}). [EnvironmentConfigs documentation]({{<ref "../concepts/environment-configs">}}).
{{< /hint >}} {{< /hint >}}
@ -962,8 +955,6 @@ wrote the value to the environment.
<!-- vale Google.Headings = YES --> <!-- vale Google.Headings = YES -->
{{<hint "important" >}} {{<hint "important" >}}
EnvironmentConfigs are an alpha feature. They aren't enabled by default.
For more information about using an EnvironmentConfig, read the For more information about using an EnvironmentConfig, read the
[EnvironmentConfigs documentation]({{<ref "../concepts/environment-configs">}}). [EnvironmentConfigs documentation]({{<ref "../concepts/environment-configs">}}).
{{< /hint >}} {{< /hint >}}
@ -1032,8 +1023,6 @@ Annotations: EnvironmentPatch: value1-value2
<!-- vale Google.Headings = YES --> <!-- vale Google.Headings = YES -->
{{<hint "important" >}} {{<hint "important" >}}
EnvironmentConfigs are an alpha feature. They aren't enabled by default.
For more information about using an EnvironmentConfig, read the For more information about using an EnvironmentConfig, read the
[EnvironmentConfigs documentation]({{<ref "../concepts/environment-configs">}}). [EnvironmentConfigs documentation]({{<ref "../concepts/environment-configs">}}).
{{< /hint >}} {{< /hint >}}

View File

@ -48,7 +48,7 @@ Here an example
{{<hover label="env1" line="2">}}EnvironmentConfig{{</hover>}}. {{<hover label="env1" line="2">}}EnvironmentConfig{{</hover>}}.
```yaml {label="env1"} ```yaml {label="env1"}
apiVersion: apiextensions.crossplane.io/v1alpha1 apiVersion: apiextensions.crossplane.io/v1beta1
kind: EnvironmentConfig kind: EnvironmentConfig
metadata: metadata:
name: example-environment name: example-environment

View File

@ -1112,7 +1112,7 @@ kubectl api-resources | grep crossplane
compositeresourcedefinitions xrd,xrds apiextensions.crossplane.io/v1 false CompositeResourceDefinition compositeresourcedefinitions xrd,xrds apiextensions.crossplane.io/v1 false CompositeResourceDefinition
compositionrevisions comprev apiextensions.crossplane.io/v1 false CompositionRevision compositionrevisions comprev apiextensions.crossplane.io/v1 false CompositionRevision
compositions comp apiextensions.crossplane.io/v1 false Composition compositions comp apiextensions.crossplane.io/v1 false Composition
environmentconfigs envcfg apiextensions.crossplane.io/v1alpha1 false EnvironmentConfig environmentconfigs envcfg apiextensions.crossplane.io/v1beta1 false EnvironmentConfig
usages apiextensions.crossplane.io/v1alpha1 false Usage usages apiextensions.crossplane.io/v1alpha1 false Usage
configurationrevisions pkg.crossplane.io/v1 false ConfigurationRevision configurationrevisions pkg.crossplane.io/v1 false ConfigurationRevision
configurations pkg.crossplane.io/v1 false Configuration configurations pkg.crossplane.io/v1 false Configuration

View File

@ -122,7 +122,7 @@ The contents of the `base` are identical to creating a standalone
[managed resource]({{<ref "../concepts/managed-resources">}}). [managed resource]({{<ref "../concepts/managed-resources">}}).
This example uses This example uses
[Upbound's Provider AWS](https://marketplace.upbound.io/providers/upbound/provider-aws/v0.35.0) [Upbound's Provider AWS](https://marketplace.upbound.io/providers/upbound/provider-family-aws/v1.17.0)
to define a S3 storage `Bucket` and EC2 compute `Instance`. to define a S3 storage `Bucket` and EC2 compute `Instance`.
After defining the `apiVersion` and `kind`, define the `spec.forProvider` fields After defining the `apiVersion` and `kind`, define the `spec.forProvider` fields
@ -391,11 +391,6 @@ Labels: crossplane.io/composite=my-example-claim-jp7rx
Crossplane uses EnvironmentConfigs to create in-memory data stores. Compositions Crossplane uses EnvironmentConfigs to create in-memory data stores. Compositions
can read and write from this data store as part of the patch process. can read and write from this data store as part of the patch process.
{{<hint "important" >}}
EnvironmentConfigs are an alpha feature. Alpha features aren't enabled by
default.
{{< /hint >}}
EnvironmentConfigs can predefine data that Compositions can use or a composite EnvironmentConfigs can predefine data that Compositions can use or a composite
resource can write data to their in-memory environment for other resources to resource can write data to their in-memory environment for other resources to
read. read.
@ -619,7 +614,7 @@ spec:
{{< expand "Reference EnvironmentConfig" >}} {{< expand "Reference EnvironmentConfig" >}}
```yaml {copy-lines="all"} ```yaml {copy-lines="all"}
apiVersion: apiextensions.crossplane.io/v1alpha1 apiVersion: apiextensions.crossplane.io/v1beta1
kind: EnvironmentConfig kind: EnvironmentConfig
metadata: metadata:
name: example-environment name: example-environment
@ -918,8 +913,6 @@ Spec:
<!-- vale Google.Headings = YES --> <!-- vale Google.Headings = YES -->
{{<hint "important" >}} {{<hint "important" >}}
EnvironmentConfigs are an alpha feature. They aren't enabled by default.
For more information about using an EnvironmentConfig, read the For more information about using an EnvironmentConfig, read the
[EnvironmentConfigs documentation]({{<ref "../concepts/environment-configs">}}). [EnvironmentConfigs documentation]({{<ref "../concepts/environment-configs">}}).
{{< /hint >}} {{< /hint >}}
@ -962,8 +955,6 @@ wrote the value to the environment.
<!-- vale Google.Headings = YES --> <!-- vale Google.Headings = YES -->
{{<hint "important" >}} {{<hint "important" >}}
EnvironmentConfigs are an alpha feature. They aren't enabled by default.
For more information about using an EnvironmentConfig, read the For more information about using an EnvironmentConfig, read the
[EnvironmentConfigs documentation]({{<ref "../concepts/environment-configs">}}). [EnvironmentConfigs documentation]({{<ref "../concepts/environment-configs">}}).
{{< /hint >}} {{< /hint >}}
@ -1032,8 +1023,6 @@ Annotations: EnvironmentPatch: value1-value2
<!-- vale Google.Headings = YES --> <!-- vale Google.Headings = YES -->
{{<hint "important" >}} {{<hint "important" >}}
EnvironmentConfigs are an alpha feature. They aren't enabled by default.
For more information about using an EnvironmentConfig, read the For more information about using an EnvironmentConfig, read the
[EnvironmentConfigs documentation]({{<ref "../concepts/environment-configs">}}). [EnvironmentConfigs documentation]({{<ref "../concepts/environment-configs">}}).
{{< /hint >}} {{< /hint >}}