Skip to content

"kubecfg update pods" returns an error #1712

Description

@darkgaro

I am trying to update an existing pod with :
/opt/bin/kubecfg -c framework-dev.json update pods/app-instance-dev

but as soon as I run the above command I get an error :
F1010 01:49:29.804442 21400 kubecfg.go:395] Got request error: unimplemented!

Original pod:

{
  "id": "app-instance-dev",
  "kind": "Pod",
  "apiVersion": "v1beta1",
  "desiredState": {
    "manifest": {
      "version": "v1beta1",
      "id": "app-instance-dev",
      "containers": [{
        "name": "framework",
        "image": "registry.domain/dev-framework",
        "ports": [{
          "containerPort": 80,
          "hostPort": 80
        }],
        "volumeMounts": [{"name": "data", "mountPath":"/data"}],
        "imagePullPolicy": "PullIfNotPresent",
      }],
      "volumes": [{
        "name": "data",
        "source": {"emptyDir": {}}
         }]
    }
  },
  "labels": {
    "name": "app-instance"
  }
}

new pod :

{
  "id": "app-instance-dev",
  "kind": "Pod",
  "apiVersion": "v1beta1",
  "desiredState": {
    "manifest": {
      "version": "v1beta1",
      "id": "app-instance-dev",
      "containers": [{
        "name": "framework",
        "image": "registry.domain/dev-framework:v0.1.1",
        "ports": [{
          "containerPort": 80,
          "hostPort": 80
        }],
        "volumeMounts": [{"name": "data", "mountPath":"/data"}],
        "imagePullPolicy": "PullIfNotPresent",
      }],
      "volumes": [{
        "name": "data",
        "source": {"emptyDir": {}}
         }]
    }
  },
  "labels": {
    "name": "app-instance"
  }
}

Only difference is that new pod is retrieving a new image tag.

Does that mean that this functionality is not implemented yet ? if so is there then no way to update a POD ??? that seems a pretty essential functionality. Maybe I am missing something here ?

Thanks

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions