Skip to content

Commit da72f26

Browse files
authored
Add java as supported language for CustomResource overlays (#3120)
Java is supported for `CustomResource` and `CustomResourcePatch`. This change adds it to the list of supported languages for the overlays. See #3107 (comment) for context
1 parent c2a4d73 commit da72f26

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
### Fixed
1212

1313
- Updated logic to accurately detect if a resource is a Patch variant. (https://github.com/pulumi/pulumi-kubernetes/pull/3102)
14+
- Added java as supported language for CustomResource overlays. (https://github.com/pulumi/pulumi-kubernetes/pull/3120)
1415

1516
## 4.15.0 (July 9, 2024)
1617

provider/cmd/pulumi-resource-kubernetes/schema.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72598,7 +72598,8 @@
7259872598
"csharp",
7259972599
"go",
7260072600
"python",
72601-
"nodejs"
72601+
"nodejs",
72602+
"java"
7260272603
],
7260372604
"inputProperties": {
7260472605
"apiVersion": {
@@ -72654,7 +72655,8 @@
7265472655
"csharp",
7265572656
"go",
7265672657
"python",
72657-
"nodejs"
72658+
"nodejs",
72659+
"java"
7265872660
],
7265972661
"inputProperties": {
7266072662
"apiVersion": {

provider/pkg/gen/overlays.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1524,7 +1524,7 @@ var yamlConfigGroupV2Resource = pschema.ResourceSpec{
15241524
var apiextensionsCustomResource = pschema.ResourceSpec{
15251525
ObjectTypeSpec: pschema.ObjectTypeSpec{
15261526
IsOverlay: true,
1527-
OverlaySupportedLanguages: []string{"csharp", "go", "python", "nodejs"},
1527+
OverlaySupportedLanguages: []string{"csharp", "go", "python", "nodejs", "java"},
15281528
Description: "CustomResource represents an instance of a CustomResourceDefinition (CRD). For example, the\n CoreOS Prometheus operator exposes a CRD `monitoring.coreos.com/ServiceMonitor`; to\n instantiate this as a Pulumi resource, one could call `new CustomResource`, passing the\n `ServiceMonitor` resource definition as an argument.",
15291529
Properties: map[string]pschema.PropertySpec{
15301530
"apiVersion": {
@@ -1592,7 +1592,7 @@ var apiextensionsCustomResource = pschema.ResourceSpec{
15921592
var apiextensionsCustomResourcePatch = pschema.ResourceSpec{
15931593
ObjectTypeSpec: pschema.ObjectTypeSpec{
15941594
IsOverlay: true,
1595-
OverlaySupportedLanguages: []string{"csharp", "go", "python", "nodejs"},
1595+
OverlaySupportedLanguages: []string{"csharp", "go", "python", "nodejs", "java"},
15961596
Description: "CustomResourcePatch represents an instance of a CustomResourceDefinition (CRD). For example, the\n CoreOS Prometheus operator exposes a CRD `monitoring.coreos.com/ServiceMonitor`; to\n instantiate this as a Pulumi resource, one could call `new CustomResourcePatch`, passing the\n `ServiceMonitor` resource definition as an argument.",
15971597
Properties: map[string]pschema.PropertySpec{
15981598
"apiVersion": {

0 commit comments

Comments
 (0)