Skip to content

Commit

Permalink
chore(deps): upgrade compiler dependencies (#2859)
Browse files Browse the repository at this point in the history
Upgrades project dependencies. See details in [workflow run].

[Workflow Run]: https://github.com/cdk8s-team/cdk8s-core/actions/runs/10870825677

------

*Automatically created by projen via the "upgrade-compiler-dependencies-1.x" workflow*
  • Loading branch information
cdk8s-automation committed Sep 15, 2024
1 parent 9bd5d4a commit ae45eea
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 43 deletions.
24 changes: 12 additions & 12 deletions docs/java.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ Returns a string representation of this construct.
##### `addDependency` <a name="addDependency" id="cdk8s.ApiObject.addDependency"></a>

```java
public void addDependency(IConstruct dependencies)
public void addDependency(IConstruct... dependencies)
```

Create a dependency between this ApiObject and other constructs.
Expand All @@ -100,7 +100,7 @@ These can be other ApiObjects, Charts, or custom.

###### `dependencies`<sup>Required</sup> <a name="dependencies" id="cdk8s.ApiObject.addDependency.parameter.dependencies"></a>

- *Type:* software.constructs.IConstruct
- *Type:* software.constructs.IConstruct...

the dependencies to add.

Expand All @@ -109,7 +109,7 @@ the dependencies to add.
##### `addJsonPatch` <a name="addJsonPatch" id="cdk8s.ApiObject.addJsonPatch"></a>

```java
public void addJsonPatch(JsonPatch ops)
public void addJsonPatch(JsonPatch... ops)
```

Applies a set of RFC-6902 JSON-Patch operations to the manifest synthesized for this API object.
Expand All @@ -124,7 +124,7 @@ kubePod.addJsonPatch(JsonPatch.replace("/spec/enableServiceLinks", true));

###### `ops`<sup>Required</sup> <a name="ops" id="cdk8s.ApiObject.addJsonPatch.parameter.ops"></a>

- *Type:* <a href="#cdk8s.JsonPatch">JsonPatch</a>
- *Type:* <a href="#cdk8s.JsonPatch">JsonPatch</a>...

The JSON-Patch operations to apply.

Expand Down Expand Up @@ -594,7 +594,7 @@ Returns a string representation of this construct.
##### `addDependency` <a name="addDependency" id="cdk8s.Chart.addDependency"></a>

```java
public void addDependency(IConstruct dependencies)
public void addDependency(IConstruct... dependencies)
```

Create a dependency between this Chart and other constructs.
Expand All @@ -603,7 +603,7 @@ These can be other ApiObjects, Charts, or custom.

###### `dependencies`<sup>Required</sup> <a name="dependencies" id="cdk8s.Chart.addDependency.parameter.dependencies"></a>

- *Type:* software.constructs.IConstruct
- *Type:* software.constructs.IConstruct...

the dependencies to add.

Expand Down Expand Up @@ -2443,14 +2443,14 @@ The value.
##### `addFinalizers` <a name="addFinalizers" id="cdk8s.ApiObjectMetadataDefinition.addFinalizers"></a>

```java
public void addFinalizers(java.lang.String finalizers)
public void addFinalizers(java.lang.String... finalizers)
```

Add one or more finalizers.

###### `finalizers`<sup>Required</sup> <a name="finalizers" id="cdk8s.ApiObjectMetadataDefinition.addFinalizers.parameter.finalizers"></a>

- *Type:* java.lang.String
- *Type:* java.lang.String...

the finalizers.

Expand Down Expand Up @@ -3296,7 +3296,7 @@ JsonPatch.add("/biscuits/1", Map.of("name", "Ginger Nut"));
```java
import org.cdk8s.JsonPatch;

JsonPatch.apply(java.lang.Object document, JsonPatch ops)
JsonPatch.apply(java.lang.Object document, JsonPatch... ops)
```

Applies a set of JSON-Patch (RFC-6902) operations to `document` and returns the result.
Expand All @@ -3311,7 +3311,7 @@ The document to patch.

###### `ops`<sup>Required</sup> <a name="ops" id="cdk8s.JsonPatch.apply.parameter.ops"></a>

- *Type:* <a href="#cdk8s.JsonPatch">JsonPatch</a>
- *Type:* <a href="#cdk8s.JsonPatch">JsonPatch</a>...

The operations to apply.

Expand Down Expand Up @@ -4193,7 +4193,7 @@ The set of objects.
```java
import org.cdk8s.Yaml;

Yaml.stringify(java.lang.Object docs)
Yaml.stringify(java.lang.Object... docs)
```

Stringify a document (or multiple documents) into YAML.
Expand All @@ -4203,7 +4203,7 @@ undefined.

###### `docs`<sup>Required</sup> <a name="docs" id="cdk8s.Yaml.stringify.parameter.docs"></a>

- *Type:* java.lang.Object
- *Type:* java.lang.Object...

A set of objects to convert to YAML.

Expand Down
24 changes: 12 additions & 12 deletions docs/python.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ Returns a string representation of this construct.

```python
def add_dependency(
dependencies: IConstruct
dependencies: *IConstruct
) -> None
```

Expand All @@ -104,7 +104,7 @@ These can be other ApiObjects, Charts, or custom.

###### `dependencies`<sup>Required</sup> <a name="dependencies" id="cdk8s.ApiObject.addDependency.parameter.dependencies"></a>

- *Type:* constructs.IConstruct
- *Type:* *constructs.IConstruct

the dependencies to add.

Expand All @@ -114,7 +114,7 @@ the dependencies to add.

```python
def add_json_patch(
ops: JsonPatch
ops: *JsonPatch
) -> None
```

Expand All @@ -130,7 +130,7 @@ kube_pod.add_json_patch(JsonPatch.replace("/spec/enableServiceLinks", True))

###### `ops`<sup>Required</sup> <a name="ops" id="cdk8s.ApiObject.addJsonPatch.parameter.ops"></a>

- *Type:* <a href="#cdk8s.JsonPatch">JsonPatch</a>
- *Type:* *<a href="#cdk8s.JsonPatch">JsonPatch</a>

The JSON-Patch operations to apply.

Expand Down Expand Up @@ -609,7 +609,7 @@ Returns a string representation of this construct.

```python
def add_dependency(
dependencies: IConstruct
dependencies: *IConstruct
) -> None
```

Expand All @@ -619,7 +619,7 @@ These can be other ApiObjects, Charts, or custom.

###### `dependencies`<sup>Required</sup> <a name="dependencies" id="cdk8s.Chart.addDependency.parameter.dependencies"></a>

- *Type:* constructs.IConstruct
- *Type:* *constructs.IConstruct

the dependencies to add.

Expand Down Expand Up @@ -2476,15 +2476,15 @@ The value.

```python
def add_finalizers(
finalizers: str
finalizers: *str
) -> None
```

Add one or more finalizers.

###### `finalizers`<sup>Required</sup> <a name="finalizers" id="cdk8s.ApiObjectMetadataDefinition.addFinalizers.parameter.finalizers"></a>

- *Type:* str
- *Type:* *str

the finalizers.

Expand Down Expand Up @@ -3486,7 +3486,7 @@ import cdk8s

cdk8s.JsonPatch.apply(
document: typing.Any,
ops: JsonPatch
ops: *JsonPatch
)
```

Expand All @@ -3502,7 +3502,7 @@ The document to patch.

###### `ops`<sup>Required</sup> <a name="ops" id="cdk8s.JsonPatch.apply.parameter.ops"></a>

- *Type:* <a href="#cdk8s.JsonPatch">JsonPatch</a>
- *Type:* *<a href="#cdk8s.JsonPatch">JsonPatch</a>

The operations to apply.

Expand Down Expand Up @@ -4577,7 +4577,7 @@ The set of objects.
import cdk8s

cdk8s.Yaml.stringify(
docs: typing.Any
docs: *typing.Any
)
```

Expand All @@ -4588,7 +4588,7 @@ undefined.

###### `docs`<sup>Required</sup> <a name="docs" id="cdk8s.Yaml.stringify.parameter.docs"></a>

- *Type:* typing.Any
- *Type:* *typing.Any

A set of objects to convert to YAML.

Expand Down
24 changes: 12 additions & 12 deletions docs/typescript.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Returns a string representation of this construct.
##### `addDependency` <a name="addDependency" id="cdk8s.ApiObject.addDependency"></a>

```typescript
public addDependency(dependencies: IConstruct): void
public addDependency(dependencies: ...IConstruct[]): void
```

Create a dependency between this ApiObject and other constructs.
Expand All @@ -75,7 +75,7 @@ These can be other ApiObjects, Charts, or custom.

###### `dependencies`<sup>Required</sup> <a name="dependencies" id="cdk8s.ApiObject.addDependency.parameter.dependencies"></a>

- *Type:* constructs.IConstruct
- *Type:* ...constructs.IConstruct[]

the dependencies to add.

Expand All @@ -84,7 +84,7 @@ the dependencies to add.
##### `addJsonPatch` <a name="addJsonPatch" id="cdk8s.ApiObject.addJsonPatch"></a>

```typescript
public addJsonPatch(ops: JsonPatch): void
public addJsonPatch(ops: ...JsonPatch[]): void
```

Applies a set of RFC-6902 JSON-Patch operations to the manifest synthesized for this API object.
Expand All @@ -98,7 +98,7 @@ Applies a set of RFC-6902 JSON-Patch operations to the manifest synthesized for

###### `ops`<sup>Required</sup> <a name="ops" id="cdk8s.ApiObject.addJsonPatch.parameter.ops"></a>

- *Type:* <a href="#cdk8s.JsonPatch">JsonPatch</a>
- *Type:* ...<a href="#cdk8s.JsonPatch">JsonPatch</a>[]

The JSON-Patch operations to apply.

Expand Down Expand Up @@ -475,7 +475,7 @@ Returns a string representation of this construct.
##### `addDependency` <a name="addDependency" id="cdk8s.Chart.addDependency"></a>

```typescript
public addDependency(dependencies: IConstruct): void
public addDependency(dependencies: ...IConstruct[]): void
```

Create a dependency between this Chart and other constructs.
Expand All @@ -484,7 +484,7 @@ These can be other ApiObjects, Charts, or custom.

###### `dependencies`<sup>Required</sup> <a name="dependencies" id="cdk8s.Chart.addDependency.parameter.dependencies"></a>

- *Type:* constructs.IConstruct
- *Type:* ...constructs.IConstruct[]

the dependencies to add.

Expand Down Expand Up @@ -2018,14 +2018,14 @@ The value.
##### `addFinalizers` <a name="addFinalizers" id="cdk8s.ApiObjectMetadataDefinition.addFinalizers"></a>

```typescript
public addFinalizers(finalizers: string): void
public addFinalizers(finalizers: ...string[]): void
```

Add one or more finalizers.

###### `finalizers`<sup>Required</sup> <a name="finalizers" id="cdk8s.ApiObjectMetadataDefinition.addFinalizers.parameter.finalizers"></a>

- *Type:* string
- *Type:* ...string[]

the finalizers.

Expand Down Expand Up @@ -2818,7 +2818,7 @@ JsonPatch.add('/biscuits/1', { "name": "Ginger Nut" })
```typescript
import { JsonPatch } from 'cdk8s'

JsonPatch.apply(document: any, ops: JsonPatch)
JsonPatch.apply(document: any, ops: ...JsonPatch[])
```

Applies a set of JSON-Patch (RFC-6902) operations to `document` and returns the result.
Expand All @@ -2833,7 +2833,7 @@ The document to patch.

###### `ops`<sup>Required</sup> <a name="ops" id="cdk8s.JsonPatch.apply.parameter.ops"></a>

- *Type:* <a href="#cdk8s.JsonPatch">JsonPatch</a>
- *Type:* ...<a href="#cdk8s.JsonPatch">JsonPatch</a>[]

The operations to apply.

Expand Down Expand Up @@ -3704,7 +3704,7 @@ The set of objects.
```typescript
import { Yaml } from 'cdk8s'

Yaml.stringify(docs: any)
Yaml.stringify(docs: ...any[])
```

Stringify a document (or multiple documents) into YAML.
Expand All @@ -3714,7 +3714,7 @@ undefined.

###### `docs`<sup>Required</sup> <a name="docs" id="cdk8s.Yaml.stringify.parameter.docs"></a>

- *Type:* any
- *Type:* ...any[]

A set of objects to convert to YAML.

Expand Down
2 changes: 1 addition & 1 deletion package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ export class ApiObjectMetadataDefinition {

constructor(options: ApiObjectMetadataDefinitionOptions) {
this.name = options.name;
this.labels = { ...options.labels } ?? { };
this.annotations = { ...options.annotations } ?? { };
this.labels = { ...(options.labels ?? {}) };
this.annotations = { ...(options.annotations ?? {}) };
this.namespace = options.namespace;
this.finalizers = options.finalizers ? [...options.finalizers] : [];
this.ownerReferences = options.ownerReferences ? [...options.ownerReferences] : [];
Expand Down
13 changes: 9 additions & 4 deletions yarn.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ae45eea

Please sign in to comment.