Skip to content

Cannot edit and push multi-resource Json files #855

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
adietish opened this issue Mar 5, 2025 · 0 comments · May be fixed by #863
Open

Cannot edit and push multi-resource Json files #855

adietish opened this issue Mar 5, 2025 · 0 comments · May be fixed by #863
Assignees
Milestone

Comments

@adietish
Copy link
Collaborator

adietish commented Mar 5, 2025

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 adietish self-assigned this Mar 5, 2025
@adietish adietish added this to the 1.6.0 milestone Mar 5, 2025
@adietish adietish moved this to 📝 In Progress in IDE Cloudaptors Mar 5, 2025
@adietish adietish moved this from 📝 In Progress to 📋 Backlog in IDE Cloudaptors Mar 11, 2025
@adietish adietish changed the title Cannot edit and push a multi-resource Json files Cannot edit and push multi-resource Json files Mar 20, 2025
adietish added a commit to adietish/intellij-kubernetes that referenced this issue Apr 9, 2025
adietish added a commit to adietish/intellij-kubernetes that referenced this issue Apr 9, 2025
adietish added a commit to adietish/intellij-kubernetes that referenced this issue Apr 9, 2025
adietish added a commit to adietish/intellij-kubernetes that referenced this issue Apr 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant