defenseunicorns / pkg

Common Go modules maintained by Defense Unicorns
Apache License 2.0
5 stars 4 forks source link

feat: add Kubernetes package with wait logic #98

Closed phillebaba closed 3 months ago

phillebaba commented 3 months ago

Description

This change adds a new Kubernetes package meant for related logic. It also adds functions which allows users to easily wait for resources to be properly reconciled.

Related Issue

Relates to #https://github.com/defenseunicorns/zarf/pull/2580 Relates to #https://github.com/defenseunicorns/lula/issues/229

phillebaba commented 3 months ago

I am a bit unsure if having a single struct for just waiting is a good idea, but we can always deprecate it in the future and replace it with something else if we see the need. It is better to enable others to easily get the waiting logic first.