Skip to content

Commit

Permalink
Add java as supported language for CustomResource overlays (#3120)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
flostadler authored Jul 23, 2024
1 parent c2a4d73 commit da72f26
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
### Fixed

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

## 4.15.0 (July 9, 2024)

Expand Down
6 changes: 4 additions & 2 deletions provider/cmd/pulumi-resource-kubernetes/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -72598,7 +72598,8 @@
"csharp",
"go",
"python",
"nodejs"
"nodejs",
"java"
],
"inputProperties": {
"apiVersion": {
Expand Down Expand Up @@ -72654,7 +72655,8 @@
"csharp",
"go",
"python",
"nodejs"
"nodejs",
"java"
],
"inputProperties": {
"apiVersion": {
Expand Down
4 changes: 2 additions & 2 deletions provider/pkg/gen/overlays.go
Original file line number Diff line number Diff line change
Expand Up @@ -1524,7 +1524,7 @@ var yamlConfigGroupV2Resource = pschema.ResourceSpec{
var apiextensionsCustomResource = pschema.ResourceSpec{
ObjectTypeSpec: pschema.ObjectTypeSpec{
IsOverlay: true,
OverlaySupportedLanguages: []string{"csharp", "go", "python", "nodejs"},
OverlaySupportedLanguages: []string{"csharp", "go", "python", "nodejs", "java"},
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.",
Properties: map[string]pschema.PropertySpec{
"apiVersion": {
Expand Down Expand Up @@ -1592,7 +1592,7 @@ var apiextensionsCustomResource = pschema.ResourceSpec{
var apiextensionsCustomResourcePatch = pschema.ResourceSpec{
ObjectTypeSpec: pschema.ObjectTypeSpec{
IsOverlay: true,
OverlaySupportedLanguages: []string{"csharp", "go", "python", "nodejs"},
OverlaySupportedLanguages: []string{"csharp", "go", "python", "nodejs", "java"},
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.",
Properties: map[string]pschema.PropertySpec{
"apiVersion": {
Expand Down

0 comments on commit da72f26

Please sign in to comment.