Skip to content

typed scale struct doc states incorrect fields #1729

@aharbis

Description

@aharbis

Current and expected behavior

The documentation shows:

#[kube(scale(
    specReplicasPath = ".spec.replicas",
    statusReplicaPath = ".status.replicas",
    labelSelectorPath = ".spec.labelSelector"
))]

This fails for me, and instead I had to do:

#[kube(scale(
    spec_replicas_path = ".spec.replicas",
    status_replicas_path = ".status.replicas",
    label_selector_path = ".spec.labelSelector"
))]

Possible solution

Update documentation.

Additional context

No response

Environment

OpenShift 4.18

$ oc version
Client Version: 4.14.10
Kustomize Version: v5.0.1
Server Version: 4.18.4
Kubernetes Version: v1.31.6

Configuration and features

No response

Affected crates

No response

Would you like to work on fixing this bug?

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions