Coder Social home page Coder Social logo

Unable to modify manifests about lens HOT 8 CLOSED

lensapp avatar lensapp commented on September 23, 2024
Unable to modify manifests

from lens.

Comments (8)

jvandervelden avatar jvandervelden commented on September 23, 2024 1

Thanks, installed 2.0.9 this morning and it's working now ๐Ÿ‘

from lens.

nevalla avatar nevalla commented on September 23, 2024

Just a side note that you shouldn't be able to edit pod if it's created by deployment, but still you should see different error message.

The editor is using similar mechanism that is used in embedded terminal under the hood. Are you able to execute kubectl commands in embedded terminal?

from lens.

jvandervelden avatar jvandervelden commented on September 23, 2024

Yes I can do kubectl commands in the terminal.

I tried editing the deployment of the pod I was editing with the same result.

apiVersion: apps/v1
kind: Deployment
metadata:
  name: kube-state-metrics
  namespace: lens-metrics
  selfLink: /apis/apps/v1/namespaces/lens-metrics/deployments/kube-state-metrics
  uid: 9ce1283b-e5dc-11e9-bb7d-2e2df2e8421e
  resourceVersion: '49805678'
  generation: 1
  creationTimestamp: '2019-10-03T12:52:09Z'
  annotations:
    deployment.kubernetes.io/revision: '1'
    kubectl.kubernetes.io/last-applied-configuration: >
      {"apiVersion":"apps/v1","kind":"Deployment","metadata":{"annotations":{},"name":"kube-state-metrics","namespace":"lens-metrics"},"spec":{"replicas":1,"selector":{"matchLabels":{"name":"kube-state-metrics"}},"template":{"metadata":{"labels":{"name":"kube-state-metrics"}},"spec":{"containers":[{"image":"registry.pharos.sh/kontenapharos/prometheus-kube-state-metrics:v1.6.0","name":"kube-state-metrics","ports":[{"containerPort":8080,"name":"metrics"}],"readinessProbe":{"httpGet":{"path":"/healthz","port":8080},"initialDelaySeconds":5,"timeoutSeconds":5},"resources":{"limits":{"cpu":"200m","memory":"150Mi"},"requests":{"cpu":"10m","memory":"150Mi"}}}],"nodeSelector":{"kubernetes.io/os":"linux"},"serviceAccountName":"kube-state-metrics"}}}}
spec:
  replicas: 1
  selector:
    matchLabels:
      name: kube-state-metrics
  template:
    metadata:
      creationTimestamp: null
      labels:
        name: kube-state-metrics
    spec:
      containers:
        - name: kube-state-metrics
          image: >-
            registry.pharos.sh/kontenapharos/prometheus-kube-state-metrics:v1.6.0
          ports:
            - name: metrics
              containerPort: 8080
              protocol: TCP
          resources:
            limits:
              cpu: 200m
              memory: 150Mi
            requests:
              cpu: 10m
              memory: 150Mi
          readinessProbe:
            httpGet:
              path: /healthz
              port: 8080
              scheme: HTTP
            initialDelaySeconds: 5
            timeoutSeconds: 5
            periodSeconds: 10
            successThreshold: 1
            failureThreshold: 3
          terminationMessagePath: /dev/termination-log
          terminationMessagePolicy: File
          imagePullPolicy: IfNotPresent
      restartPolicy: Always
      terminationGracePeriodSeconds: 30
      dnsPolicy: ClusterFirst
      nodeSelector:
        kubernetes.io/os: linux
      serviceAccountName: kube-state-metrics
      serviceAccount: kube-state-metrics
      securityContext: {}
      schedulerName: default-scheduler
  strategy:
    type: RollingUpdate
    rollingUpdate:
      maxUnavailable: 25%
      maxSurge: 25%
  revisionHistoryLimit: 10
  progressDeadlineSeconds: 600
status:
  observedGeneration: 1
  replicas: 1
  updatedReplicas: 1
  unavailableReplicas: 1
  conditions:
    - type: Available
      status: 'False'
      lastUpdateTime: '2019-10-03T12:52:09Z'
      lastTransitionTime: '2019-10-03T12:52:09Z'
      reason: MinimumReplicasUnavailable
      message: Deployment does not have minimum availability.
    - type: Progressing
      status: 'False'
      lastUpdateTime: '2019-10-03T13:02:10Z'
      lastTransitionTime: '2019-10-03T13:02:10Z'
      reason: ProgressDeadlineExceeded
      message: ReplicaSet "kube-state-metrics-54558ff88b" has timed out progressing.

from lens.

mrfelek avatar mrfelek commented on September 23, 2024

Same here.
I clicked Create resource and paste

apiVersion: v1
kind: PersistentVolume
metadata:
  name: nfs10
spec:
  capacity:
    storage: 100Gi
  accessModes:
    - ReadWriteOnce
  storageClassName: standard
  persistentVolumeReclaimPolicy: Retain
  nfs:
    server: nas.home.lan
    path: "/mnt/GitLab"

And I get TypeError: e.map is not a function
Same config works via kubectl apply -f pv.yaml

from lens.

nevalla avatar nevalla commented on September 23, 2024

Trying to re-produce this. Please could you tell also Kubernetes version.

from lens.

jvandervelden avatar jvandervelden commented on September 23, 2024

It was happening in the 2 clusters I tried; 1.13.10 and 1.11.3

from lens.

nevalla avatar nevalla commented on September 23, 2024

I was able to re-produce this on Windows. Fix will be included in the next patch release.

from lens.

mrfelek avatar mrfelek commented on September 23, 2024

Works like a charm.
Thank you!

from lens.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.