Class MetadataClutter
java.lang.Object
com.redhat.devtools.intellij.common.utils.MetadataClutter
-
Field Summary
FieldsModifier and TypeFieldDescriptionProperties inObjectMetathat are considered disposable clutter. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic io.fabric8.kubernetes.api.model.ObjectMetaremove(io.fabric8.kubernetes.api.model.ObjectMeta metadata) Removes clutter properties from the givenObjectMetacontent.static StringRemoves clutter properties from the given textual content.static StringRemoves clutter properties from the given textual content.
-
Field Details
-
properties
Properties inObjectMetathat are considered disposable clutter.
-
-
Constructor Details
-
MetadataClutter
public MetadataClutter()
-
-
Method Details
-
remove
Removes clutter properties from the given textual content. Does nothing if the content isnullor empty.- Parameters:
resource- where the clutter properties should be removed from- Returns:
- the content without the clutter properties
-
remove
Removes clutter properties from the given textual content. Does nothing if the content isnullor empty.- Parameters:
resource- where the clutter properties should be removed fromminimizeQuotes- if, when converting from json to yaml, quotes should be removed if not strictly needed- Returns:
- the content without the clutter properties
-
remove
public static io.fabric8.kubernetes.api.model.ObjectMeta remove(io.fabric8.kubernetes.api.model.ObjectMeta metadata) Removes clutter properties from the givenObjectMetacontent. Does nothing if the content isnull.- Parameters:
metadata- where the clutter properties should be removed from- Returns:
- the metadata without the clutter properties
-