Skip to content

Remove Optional to Access Results in ManagedDependentResourceContext #1925

Closed
@csviri

Description

@csviri

https://github.com/java-operator-sdk/java-operator-sdk/blob/3280f69dbe85cf3baeb268de6f095c1ab3721498/operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/reconciler/dependent/managed/ManagedDependentResourceContext.java#L55-L57

Those does not make that much sense, since naturally these methods are only called when managed dependent resources are used. And this is not a decision for runtime. It should just throw an exception if these results are accessed but managed dependent resources are not initialized.

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