Skip to content

Use k8s.io/utils/pointer to instantiate pointers throughout the codebase #958

@AObuchow

Description

@AObuchow

Description

Currently, throughout the DWO repo we are initializing variables so that they can be referenced as pointer values when needed, for example here.

Instead, we should make use of k8s.io/utils/pointer to instantiate pointers and reference them in a single statement.
For example, one can get a pointer that points to a boolean with the value true by doing: pointer.BoolPtr(true)

Additional context

Here is where this idea was initially suggested: #953 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions