intellij-kubernetes icon indicating copy to clipboard operation
intellij-kubernetes copied to clipboard

Cannot edit and push multi-resource Json files

Open adietish opened this issue 7 months ago • 0 comments

Steps:

  1. EXEC: create a json file with the following content (generated by quarkus):
[
  {
    "apiVersion" : "apps/v1",
    "kind" : "Deployment",
    "metadata" : {
      "annotations" : {
        "app.quarkus.io/commit-id" : "874731470682e3f213506357d2f9887bab63be83",
        "app.quarkus.io/build-timestamp" : "2023-04-25 - 09:17:12 +0000"
      },
      "labels" : {
        "app.kubernetes.io/version" : "1.0.0-SNAPSHOT",
        "app.kubernetes.io/name" : "code-with-quarkus"
      },
      "name" : "code-with-quarkus"
    },
    "spec" : {
      "replicas" : 1,
      "selector" : {
        "matchLabels" : {
          "app.kubernetes.io/version" : "1.0.0-SNAPSHOT",
          "app.kubernetes.io/name" : "code-with-quarkus"
        }
      },
      "template" : {
        "metadata" : {
          "annotations" : {
            "app.quarkus.io/commit-id" : "874731470682e3f213506357d2f9887bab63be83",
            "app.quarkus.io/build-timestamp" : "2023-04-25 - 09:17:12 +0000"
          },
          "labels" : {
            "app.kubernetes.io/version" : "1.0.0-SNAPSHOT",
            "app.kubernetes.io/name" : "code-with-quarkus"
          }
        },
        "spec" : {
          "containers" : [ {
            "env" : [ {
              "name" : "KUBERNETES_NAMESPACE",
              "valueFrom" : {
                "fieldRef" : {
                  "fieldPath" : "metadata.namespace"
                }
              }
            } ],
            "image" : "minikube/andredietisheim/code-with-quarkus:1.0.0-SNAPSHOT",
            "imagePullPolicy" : "Always",
            "name" : "code-with-quarkus",
            "ports" : [ {
              "containerPort" : 8080,
              "name" : "http",
              "protocol" : "TCP"
            } ]
          } ]
        }
      }
    }
  },{
    "apiVersion" : "v1",
    "kind" : "Service",
    "metadata" : {
      "annotations" : {
        "app.quarkus.io/commit-id" : "874731470682e3f213506357d2f9887bab63be83",
        "app.quarkus.io/build-timestamp" : "2023-04-25 - 09:17:12 +0000"
      },
      "labels" : {
        "app.kubernetes.io/name" : "code-with-quarkus",
        "app.kubernetes.io/version" : "1.0.0-SNAPSHOT"
      },
      "name" : "code-with-quarkus"
    },
    "spec" : {
      "ports" : [ {
        "name" : "http",
        "port" : 80,
        "protocol" : "TCP",
        "targetPort" : 8080
      } ],
      "selector" : {
        "app.kubernetes.io/name" : "code-with-quarkus",
        "app.kubernetes.io/version" : "1.0.0-SNAPSHOT"
      },
      "type" : "ClusterIP"
    }
  }
]
  1. EXEC: try to push it to the cluster

Result: You cannot. The editor does not have the toolbar with push, pull etc.

adietish avatar Mar 05 '25 16:03 adietish