Skip to content

DataProtection restore silently falls back to the first pod port #10615

Description

@weicao

When a restore post-ready Job specifies BackupTarget.ContainerPort and that named port is missing, restoreJobBuilder falls back to the first pod port. This can connect the restore action to an unrelated endpoint instead of surfacing the invalid target configuration.

Expected behavior: propagate the named-port lookup error and do not build the restore Job. A connection credential PortKey remains authoritative when explicitly configured.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions