Commit Graph

282 Commits

Author SHA1 Message Date
niusmallnan
ddca6fb48f K-EXPLORER: Merge rancher v2.6.5-rc8 base into ke/v0.2 2022-05-07 13:38:30 +08:00
Caleb Bron
53511a06ff
Merge pull request #44 from rancher/enable_fossa
enable fossa scanning
2022-05-02 17:40:32 -07:00
Colleen Murphy
b23977e7f1
Merge pull request #46 from cmurphy/filter-fields
Add field filtering for resources
2022-04-15 11:41:29 -07:00
Colleen Murphy
d4cfe78364 Add field filtering for resources
This change enables steve to work with three new query parameters:

"include": only include the named fields from the kubernetes object.
Subfields are denoted with ".". Subfields within arrays are ignored.
Multiple fields can be included by repeating the parameter. Example:

  GET /v1/configmaps?include=kind&include=apiVersion =>
  {
    "type": "collection",
    "links": {
      "self": "http://server/v1/configmaps"
    },
    "createTypes": {
      "configmap": "http://server/v1/configmaps"
    },
    "actions": {},
    "resourceType": "configmap",
    "revision": "327238",
    "data": [
      {
        "id": "c-m-w466b2vg/kube-root-ca.crt",
        "type": "configmap",
        "links": {
          "remove": "http://server/v1/configmaps/c-m-w466b2vg/kube-root-ca.crt",
          "self": "http://server/v1/configmaps/c-m-w466b2vg/kube-root-ca.crt",
          "update": "http://server/v1/configmaps/c-m-w466b2vg/kube-root-ca.crt",
          "view": "http://server/api/v1/namespaces/c-m-w466b2vg/configmaps/kube-root-ca.crt"
        },
        "apiVersion": "v1",
        "kind": "ConfigMap"
      },
    }
    ...
  }

"exclude": exclude the named fields from the kubernetes object.
Subfields are denoted with ".". Subfields within arrays are ignored.
Multiple fields can be excluded by repeating the parameter. Example:

  GET /v1/configmaps?exclude=data&exclude=metadata.managedFields =>
  {
  "type": "collection",
  "links": {
    "self": "http://server/v1/configmaps"
  },
  "createTypes": {
    "configmap": "http://server/v1/configmaps"
  },
  "actions": {},
  "resourceType": "configmap",
  "revision": "328086",
  "data": [
    {
      "id": "c-m-w466b2vg/kube-root-ca.crt",
      "type": "configmap",
      "links": {
        "remove": "http://server/v1/configmaps/c-m-w466b2vg/kube-root-ca.crt",
        "self": "http://server/v1/configmaps/c-m-w466b2vg/kube-root-ca.crt",
        "update": "http://server/v1/configmaps/c-m-w466b2vg/kube-root-ca.crt",
        "view": "http://server/api/v1/namespaces/c-m-w466b2vg/configmaps/kube-root-ca.crt"
      },
      "apiVersion": "v1",
      "kind": "ConfigMap",
      "metadata": {
        "creationTimestamp": "2022-04-11T22:05:27Z",
        "fields": [
          "kube-root-ca.crt",
          1,
          "25h"
        ],
        "name": "kube-root-ca.crt",
        "namespace": "c-m-w466b2vg",
        "relationships": null,
        "resourceVersion": "36948",
        "state": {
          "error": false,
          "message": "Resource is always ready",
          "name": "active",
          "transitioning": false
        },
        "uid": "1c497934-52cb-42ab-a613-dedfd5fb207b"
      }
    },
    ...
  }

"excludeValues": replace the values of an object with empty strings, leaving
the keys in place. Useful for showing a summary of an object with large
values, such as the data in a ConfigMap. Only works on fields that are
object. Multiple fields can have values excluded by repeating the
parameter. Example:

  GET /v1/configmaps?excludeValues=data =>
  {
    "type": "collection",
    ...
    "data": [
      {
        ...
        "data": {
          "ca.crt": ""
        },
        ...
      },
      ...
    ]
  }
2022-04-13 08:50:39 -07:00
Sheilagh Morlan
b34760dad5
Merge pull request #45 from rancher/dependencies-bumps
Dependencies bumps
2022-04-06 08:04:13 -07:00
Guilherme Macedo
87f7f70d0d
Dependencies bumps
Signed-off-by: Guilherme Macedo <guilherme.macedo@suse.com>
2022-04-05 17:15:14 +02:00
Nelson Roberts
974c0a7f91
enable fossa scanning
request: https://github.com/rancherlabs/eio/issues/772
2022-03-31 14:32:46 -07:00
Sergey Nasovich
283b01b970
Merge pull request #41 from jakefhyde/fix-relationship-closed-channel 2022-03-03 18:41:26 -05:00
Jake Hyde
6bb3915906 Prevent write on closed channel 2022-03-02 19:19:02 -05:00
Ricardo Weir
a91d90251f
Merge pull request #38 from rmweir/add-metrics
Add metrics
2022-02-18 10:13:07 -07:00
Ricardo Weir
e9472ecc34 Add metrics 2022-02-14 17:39:37 -07:00
niusmallnan
28259927a9 K-EXPLORER: format cluster name with kube context 2022-02-09 16:34:02 +08:00
Darren Shepherd
376e30bba7
Merge pull request #37 from aiwantaozi/fix-404
Fixed errors in obtaining object relationships
2022-01-26 10:05:19 -07:00
michelia
42c575a009 Fixed errors in obtaining object relationships
Issue: https://github.com/harvester/harvester/issues/1857
2022-01-26 19:31:03 +08:00
Darren Shepherd
e7119828b8 Update wrangler 2022-01-07 14:31:29 -07:00
Darren Shepherd
9d72af0469
Merge pull request #33 from CraigMChen/feature/k8s1.16-
feat: support k8s version less than 1.16
2022-01-07 13:37:03 -07:00
Sergey Nasovich
7fe97fb76f
Merge pull request #35 from thedadams/bump-remote-dialer-f3837f8d649a 2022-01-04 14:49:38 -05:00
Donnie Adams
5ababa3824 Bump remotedialer to add pause/resume functionality 2022-01-04 12:45:17 -07:00
niusmallnan
18f619f9df K-EXPLORER: fix build issue 2021-12-24 15:49:45 +08:00
niusmallnan
88acaa871a K-EXPLORER: bump go mod 2021-12-24 07:38:04 +00:00
CMC
fea67065db
feat: support k8s version less than 1.16 2021-11-25 16:16:20 +08:00
niusmallnan
9a95cd2eae K-EXPLORER: Merge branch 'master' into ke/v0.2 2021-10-15 13:14:11 +08:00
Dan Ramich
7224dc2101
Merge pull request #30 from dramich/vendor1
Vendor update for APIserver
2021-09-22 13:55:10 -06:00
Dan Ramich
793ace1aa1 Vendor update for APIserver 2021-09-22 13:40:45 -06:00
Caleb Bron
ae8b162608
Merge pull request #29 from ryansann/m-role-revision-index-fix
Fix role revision index for rolebindings that bind to clusterroles
2021-09-15 10:15:17 -07:00
Ryan Sanna
fe125f80f3 fix role revision index for rolebindings that bind to clusterroles 2021-09-14 15:36:51 -07:00
niusmallnan
68b9d2e74a K-EXPLORER: Merge branch 'master' into ke/v0.2 2021-08-23 16:02:32 +08:00
Darren Shepherd
8ecda307ee Update vendor 2021-08-18 17:17:52 -07:00
Darren Shepherd
e70fca2a42 Fix restart of steve aggregation 2021-08-16 22:05:50 -07:00
Darren Shepherd
bcbcef36b3 Add blocked links for update and remove if method is disallowed 2021-08-16 15:41:36 -07:00
Darren Shepherd
d9512c366d Add ability to disallow methods per a schema attribute 2021-08-13 11:37:57 -07:00
Darren Shepherd
e9222c6ccf Update vendor 2021-08-10 16:09:39 -07:00
Darren Shepherd
4a34cec914 Add server version to websocket pings 2021-08-10 16:09:19 -07:00
Darren Shepherd
b219ba5d7c Don't cache the user's schema cache key 2021-08-10 14:02:22 -07:00
Darren Shepherd
a2354a9ed9 Update vendor 2021-08-10 11:04:45 -07:00
Darren Shepherd
426330efa2 Ensure that watches use the latest schemas 2021-08-10 11:03:59 -07:00
Darren Shepherd
0414d4acf5 If the user doesn't specify a resourceVersion default to "" not latest 2021-08-10 10:43:34 -07:00
Darren Shepherd
9f5d802708 Cleanup schema change reporting 2021-08-09 16:47:09 -07:00
niusmallnan
eb573e2af8 K-EXPLORER: update cli name 2021-08-06 15:23:43 +08:00
niusmallnan
272322312a K-EXPLORER: Merge branch 'ke/v0.1' into ke/v0.2 2021-08-06 14:27:40 +08:00
Darren Shepherd
bb76e4db56 Strip impersonation headers prior to proxy call 2021-08-04 15:03:57 -07:00
Darren Shepherd
bed06c1320 Drop unused variable 2021-08-04 15:03:57 -07:00
Darren Shepherd
b2d940920c
Merge pull request #23 from ibuildthecloud/master
Fix issues when creating clusterrolebindings to namespaces objects
2021-08-04 12:23:45 -07:00
Dan Ramich
f588bcef30
Merge pull request #24 from dramich/vendor
Update apiserver version
2021-07-27 10:10:21 -06:00
Dan Ramich
bccdfa0317 Update apiserver version 2021-07-27 10:09:30 -06:00
Darren Shepherd
eba8358f2a Fix issues when creating clusterrolebindings to namespaces objects 2021-07-23 23:46:03 -07:00
Darren Shepherd
991a2a1776 Don't mask errors when doing by name lookups 2021-07-23 23:45:13 -07:00
Dan Ramich
924c6d7021
Merge pull request #22 from dramich/mods
Update go.mod for apiserver
2021-07-16 14:24:38 -06:00
Dan Ramich
8201c10893 Update go.mod for apiserver 2021-07-16 14:23:35 -06:00
Darren Shepherd
52f86dce9b Remove noisy logging 2021-05-20 12:10:28 -07:00