Interface K8S

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

@Deprecated public interface K8S
Deprecated.
Likely better served by Traits.
  • Method Details

    • inKind

      static boolean inKind(String kind, org.openrewrite.Cursor cursor)
      Deprecated.
    • inPod

      static boolean inPod(org.openrewrite.Cursor cursor)
      Deprecated.
    • inDaemonSet

      static boolean inDaemonSet(org.openrewrite.Cursor cursor)
      Deprecated.
    • inStatefulSet

      static boolean inStatefulSet(org.openrewrite.Cursor cursor)
      Deprecated.
    • inDeployment

      static boolean inDeployment(org.openrewrite.Cursor cursor)
      Deprecated.
    • inService

      static boolean inService(org.openrewrite.Cursor cursor)
      Deprecated.
    • asResource

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

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

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

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

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

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

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

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

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

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