Skip to content

Commit 17cb1fa

Browse files
authored
Define Supported Languages for Overlay Resources (#3107)
docsgen supports defining the supported languages of an overlay now. This will ensure only the supported languages show up in the language choosers in the registry. Relates to pulumi/pulumi#13231
1 parent cf02cf4 commit 17cb1fa

File tree

3 files changed

+46
-0
lines changed

3 files changed

+46
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
## Unreleased
22

3+
### Added
4+
5+
- Define Supported Languages for Overlays (https://github.com/pulumi/pulumi-kubernetes/pull/3107)
6+
37
### Fixed
48

59
- Updated logic to accurately detect if a resource is a Patch variant (https://github.com/pulumi/pulumi-kubernetes/pull/3102)

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

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72586,6 +72586,12 @@
7258672586
"kind"
7258772587
],
7258872588
"isOverlay": true,
72589+
"overlaySupportedLanguages": [
72590+
"csharp",
72591+
"go",
72592+
"python",
72593+
"nodejs"
72594+
],
7258972595
"inputProperties": {
7259072596
"apiVersion": {
7259172597
"type": "string",
@@ -72636,6 +72642,12 @@
7263672642
"kind"
7263772643
],
7263872644
"isOverlay": true,
72645+
"overlaySupportedLanguages": [
72646+
"csharp",
72647+
"go",
72648+
"python",
72649+
"nodejs"
72650+
],
7263972651
"inputProperties": {
7264072652
"apiVersion": {
7264172653
"type": "string",
@@ -86998,6 +87010,12 @@
8699887010
},
8699987011
"type": "object",
8700087012
"isOverlay": true,
87013+
"overlaySupportedLanguages": [
87014+
"csharp",
87015+
"go",
87016+
"python",
87017+
"nodejs"
87018+
],
8700187019
"inputProperties": {
8700287020
"chart": {
8700387021
"type": "string",
@@ -87548,6 +87566,12 @@
8754887566
"directory"
8754987567
],
8755087568
"isOverlay": true,
87569+
"overlaySupportedLanguages": [
87570+
"csharp",
87571+
"go",
87572+
"python",
87573+
"nodejs"
87574+
],
8755187575
"inputProperties": {
8755287576
"directory": {
8755387577
"type": "string",
@@ -99778,6 +99802,12 @@
9977899802
},
9977999803
"type": "object",
9978099804
"isOverlay": true,
99805+
"overlaySupportedLanguages": [
99806+
"csharp",
99807+
"go",
99808+
"python",
99809+
"nodejs"
99810+
],
9978199811
"inputProperties": {
9978299812
"file": {
9978399813
"type": "string",
@@ -99810,6 +99840,12 @@
9981099840
},
9981199841
"type": "object",
9981299842
"isOverlay": true,
99843+
"overlaySupportedLanguages": [
99844+
"csharp",
99845+
"go",
99846+
"python",
99847+
"nodejs"
99848+
],
9981399849
"inputProperties": {
9981499850
"files": {
9981599851
"oneOf": [

provider/pkg/gen/overlays.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ var helmV3ChartResource = pschema.ResourceSpec{
5555
IsComponent: true,
5656
ObjectTypeSpec: pschema.ObjectTypeSpec{
5757
IsOverlay: true,
58+
OverlaySupportedLanguages: []string{"csharp", "go", "python", "nodejs"},
5859
Description: helmV3ChartMD,
5960
Properties: map[string]pschema.PropertySpec{
6061
"resources": {
@@ -1173,6 +1174,7 @@ var kustomizeDirectoryResource = pschema.ResourceSpec{
11731174
IsComponent: true,
11741175
ObjectTypeSpec: pschema.ObjectTypeSpec{
11751176
IsOverlay: true,
1177+
OverlaySupportedLanguages: []string{"csharp", "go", "python", "nodejs"},
11761178
Description: kustomizeDirectoryMD,
11771179
Properties: map[string]pschema.PropertySpec{
11781180
"directory": {
@@ -1286,6 +1288,7 @@ var yamlConfigFileResource = pschema.ResourceSpec{
12861288
IsComponent: true,
12871289
ObjectTypeSpec: pschema.ObjectTypeSpec{
12881290
IsOverlay: true,
1291+
OverlaySupportedLanguages: []string{"csharp", "go", "python", "nodejs"},
12891292
Description: configFileMD,
12901293
Properties: map[string]pschema.PropertySpec{
12911294
"resources": {
@@ -1378,6 +1381,7 @@ var yamlConfigGroupResource = pschema.ResourceSpec{
13781381
IsComponent: true,
13791382
ObjectTypeSpec: pschema.ObjectTypeSpec{
13801383
IsOverlay: true,
1384+
OverlaySupportedLanguages: []string{"csharp", "go", "python", "nodejs"},
13811385
Description: configGroupMD,
13821386
Properties: map[string]pschema.PropertySpec{
13831387
"resources": {
@@ -1520,6 +1524,7 @@ var yamlConfigGroupV2Resource = pschema.ResourceSpec{
15201524
var apiextensionsCustomResource = pschema.ResourceSpec{
15211525
ObjectTypeSpec: pschema.ObjectTypeSpec{
15221526
IsOverlay: true,
1527+
OverlaySupportedLanguages: []string{"csharp", "go", "python", "nodejs"},
15231528
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.",
15241529
Properties: map[string]pschema.PropertySpec{
15251530
"apiVersion": {
@@ -1587,6 +1592,7 @@ var apiextensionsCustomResource = pschema.ResourceSpec{
15871592
var apiextensionsCustomResourcePatch = pschema.ResourceSpec{
15881593
ObjectTypeSpec: pschema.ObjectTypeSpec{
15891594
IsOverlay: true,
1595+
OverlaySupportedLanguages: []string{"csharp", "go", "python", "nodejs"},
15901596
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.",
15911597
Properties: map[string]pschema.PropertySpec{
15921598
"apiVersion": {

0 commit comments

Comments
 (0)