Documentation ¶
Index ¶
- Constants
- func FetchAndConversionResources(versionMeta *VersionConversionMeta) ([]unstructured.Unstructured, error)
- func ResourcesWithGVR(versionMeta *VersionConversionMeta, gvr schema.GroupVersionResource, ...) ([]appsv1alpha1.ConfigConstraint, error)
- func UpdateNewVersionResources(versionMeta *VersionConversionMeta, targetObjects []unstructured.Unstructured) error
- type VersionConversionMeta
Constants ¶
View Source
const ( OldVersion = "08" NewVersion = "09" )
Variables ¶
This section is empty.
Functions ¶
func FetchAndConversionResources ¶
func FetchAndConversionResources(versionMeta *VersionConversionMeta) ([]unstructured.Unstructured, error)
func ResourcesWithGVR ¶
func ResourcesWithGVR(versionMeta *VersionConversionMeta, gvr schema.GroupVersionResource, listOptions metav1.ListOptions) ([]appsv1alpha1.ConfigConstraint, error)
func UpdateNewVersionResources ¶
func UpdateNewVersionResources(versionMeta *VersionConversionMeta, targetObjects []unstructured.Unstructured) error
Types ¶
type VersionConversionMeta ¶
type VersionConversionMeta struct { dynamic.Interface Ctx context.Context FromVersion string ToVersion string }
func NewVersionConversion ¶
func NewVersionConversion(dynamic dynamic.Interface, fromVersion, toVersion string) *VersionConversionMeta
func (VersionConversionMeta) NeedConversion ¶
func (version VersionConversionMeta) NeedConversion() bool
Click to show internal directories.
Click to hide internal directories.