MCPcopy Create free account
hub / github.com/devfile/devworkspace-operator / deleteMigratedConfigmap

Function deleteMigratedConfigmap

pkg/config/migrate.go:70–78  ·  view source on GitHub ↗
(client crclient.Client)

Source from the content-addressed store, hash-verified

68}
69
70func deleteMigratedConfigmap(client crclient.Client) error {
71 obsoleteConfigmap := &corev1.ConfigMap{
72 ObjectMeta: metav1.ObjectMeta{
73 Name: configmap.ConfigMapReference.Name,
74 Namespace: configmap.ConfigMapReference.Namespace,
75 },
76 }
77 return client.Delete(context.Background(), obsoleteConfigmap)
78}
79
80// convertConfigMapToConfigCRD converts a earlier devworkspace configuration configmap (if present)
81// into a DevWorkspaceOperatorConfig. Values matching the current default config settings are ignored.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected