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
  • Method Details

    • inKind

      static boolean inKind(String kind, org.openrewrite.Cursor cursor)
    • 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

      static K8S.Resource asResource(org.openrewrite.yaml.tree.Yaml.Mapping m)
    • asMetadata

      static K8S.Metadata asMetadata(org.openrewrite.yaml.tree.Yaml.Mapping m)
    • asAnnotations

      static K8S.Annotations asAnnotations(@Nullable org.openrewrite.yaml.tree.Yaml.Mapping m)
    • asLabels

      static K8S.Labels asLabels(@Nullable org.openrewrite.yaml.tree.Yaml.Mapping m)
    • asResourceLimits

      static K8S.ResourceLimits asResourceLimits(@Nullable org.openrewrite.yaml.tree.Yaml.Scalar s)
    • asService

      @Nullable static @Nullable K8S.Service asService(@Nullable org.openrewrite.yaml.tree.Yaml.Mapping m)
    • inMappingEntry

      static boolean inMappingEntry(String jsonPath, @Nullable @Nullable org.openrewrite.Cursor cursor)
    • inMappingEntry

      static boolean inMappingEntry(org.openrewrite.yaml.JsonPathMatcher jsonPath, @Nullable @Nullable org.openrewrite.Cursor cursor)
    • firstEnclosingEntryMatching

      static Optional<org.openrewrite.Cursor> firstEnclosingEntryMatching(String jsonPath, @Nullable @Nullable org.openrewrite.Cursor cursor)
    • firstEnclosingEntryMatching

      static Optional<org.openrewrite.Cursor> firstEnclosingEntryMatching(org.openrewrite.yaml.JsonPathMatcher jsonPath, @Nullable @Nullable org.openrewrite.Cursor cursor)