Documentation ¶
Index ¶
- Constants
- func CleanupExistingResource(ctx context.Context, cli client.Client, platform deploy.Platform, ...) error
- func CreateDefaultDSC(ctx context.Context, cli client.Client) error
- func CreateDefaultDSCI(cli client.Client, _ deploy.Platform, appNamespace, monNamespace string) error
- func HasDeleteConfigMap(ctx context.Context, c client.Client) bool
- func OperatorUninstall(ctx context.Context, cli client.Client) error
- func RemoveKfDefInstances(ctx context.Context, cli client.Client) error
- func RemoveLabel(cli client.Client, objectName string, labelKey string) error
- func UpdateFromLegacyVersion(cli client.Client, platform deploy.Platform, appNS string, ...) error
- type ResourceSpec
Constants ¶
const ( // DeleteConfigMapLabel is the label for configMap used to trigger operator uninstall // TODO: Label should be updated if addon name changes. DeleteConfigMapLabel = "api.openshift.com/addon-managed-odh-delete" )
Variables ¶
This section is empty.
Functions ¶
func CleanupExistingResource ¶ added in v2.8.0
func CleanupExistingResource(ctx context.Context, cli client.Client, platform deploy.Platform, dscApplicationsNamespace, dscMonitoringNamespace string) error
TODO: remove function once we have a generic solution across all components.
func CreateDefaultDSC ¶
CreateDefaultDSC creates a default instance of DSC. Note: When the platform is not Managed, and a DSC instance already exists, the function doesn't re-create/update the resource.
func CreateDefaultDSCI ¶ added in v2.7.0
func CreateDefaultDSCI(cli client.Client, _ deploy.Platform, appNamespace, monNamespace string) error
createDefaultDSCI creates a default instance of DSCI If there exists an instance already, it patches the DSCISpec with default values Note: DSCI CR modifcations are not supported, as it is the initial prereq setting for the components.
func HasDeleteConfigMap ¶
HasDeleteConfigMap returns true if delete configMap is added to the operator namespace by managed-tenants repo. It returns false in all other cases.
func OperatorUninstall ¶
OperatorUninstall deletes all the externally generated resources. This includes monitoring resources and applications installed by KfDef.
func RemoveLabel ¶ added in v2.10.1
Types ¶
type ResourceSpec ¶ added in v2.11.0
type ResourceSpec struct { Gvk schema.GroupVersionKind Namespace string // path to the field, like "metadata", "name" Path []string // set of values for the field to match object, any one matches Values []string }