Package org.openrewrite.kubernetes.tree
Interface K8S
- All Superinterfaces:
org.openrewrite.marker.Marker
- All Known Implementing Classes:
K8S.Annotations,K8S.Containers,K8S.Ingress,K8S.InitContainers,K8S.Labels,K8S.Metadata,K8S.Pod,K8S.RBAC,K8S.Resource,K8S.ResourceLimits,K8S.Service
public interface K8S
extends org.openrewrite.marker.Marker
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic class -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic K8S.AnnotationsasAnnotations(org.openrewrite.yaml.tree.Yaml.Mapping m) static K8S.LabelsasLabels(org.openrewrite.yaml.tree.Yaml.Mapping m) static K8S.MetadataasMetadata(org.openrewrite.yaml.tree.Yaml.Mapping m) static K8S.ResourceasResource(org.openrewrite.yaml.tree.Yaml.Mapping m) static K8S.ResourceLimitsasResourceLimits(org.openrewrite.yaml.tree.Yaml.Scalar s) static @Nullable K8S.ServiceasService(org.openrewrite.yaml.tree.Yaml.Mapping m) static Optional<org.openrewrite.Cursor>firstEnclosingEntryMatching(String jsonPath, @Nullable org.openrewrite.Cursor cursor) static Optional<org.openrewrite.Cursor>firstEnclosingEntryMatching(org.openrewrite.yaml.JsonPathMatcher jsonPath, @Nullable org.openrewrite.Cursor cursor) static booleaninDaemonSet(org.openrewrite.Cursor cursor) static booleaninDeployment(org.openrewrite.Cursor cursor) static booleanstatic booleaninMappingEntry(String jsonPath, @Nullable org.openrewrite.Cursor cursor) static booleaninMappingEntry(org.openrewrite.yaml.JsonPathMatcher jsonPath, @Nullable org.openrewrite.Cursor cursor) static booleaninPod(org.openrewrite.Cursor cursor) static booleaninService(org.openrewrite.Cursor cursor) static booleaninStatefulSet(org.openrewrite.Cursor cursor) Methods inherited from interface org.openrewrite.marker.Marker
getId, print, withId
-
Method Details
-
inKind
-
inPod
static boolean inPod(org.openrewrite.Cursor cursor) -
inDaemonSet
static boolean inDaemonSet(org.openrewrite.Cursor cursor) -
inStatefulSet
static boolean inStatefulSet(org.openrewrite.Cursor cursor) -
inDeployment
static boolean inDeployment(org.openrewrite.Cursor cursor) -
inService
static boolean inService(org.openrewrite.Cursor cursor) -
asResource
-
asMetadata
-
asAnnotations
-
asLabels
-
asResourceLimits
-
asService
@Nullable static @Nullable K8S.Service asService(@Nullable org.openrewrite.yaml.tree.Yaml.Mapping m) -
inMappingEntry
-
inMappingEntry
static boolean inMappingEntry(org.openrewrite.yaml.JsonPathMatcher jsonPath, @Nullable @Nullable org.openrewrite.Cursor cursor) -
firstEnclosingEntryMatching
-
firstEnclosingEntryMatching
static Optional<org.openrewrite.Cursor> firstEnclosingEntryMatching(org.openrewrite.yaml.JsonPathMatcher jsonPath, @Nullable @Nullable org.openrewrite.Cursor cursor)
-