Discover Packages
github.com/kube-bind/kube-bind
pkg
committer
package
Version:
v0.3.0
Opens a new window with list of versions in this module.
Published: Oct 29, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
NewCommitter returns a function that can patch instances of R based on spec or status changes.
ClusterScoped wraps a generic patcher to make it look like a namespaced patcher, but
it ignores the namespace argument (which is empty string in cluster-scoped code).
Patcher is just the Patch API with a generic to keep use sites type safe
type Resource[Sp any , St any ] struct {
metav1 .ObjectMeta `json:"metadata,omitempty"`
Spec Sp `json:"spec"`
Status St `json:"status,omitempty"`
}
Resource is a generic wrapper around resources so we can generate patches
Source Files
¶
Click to show internal directories.
Click to hide internal directories.