Commit Graph

316 Commits

Author SHA1 Message Date
niusmallnan
9fc1f146ba K-EXPLORER: Bump go mod 2023-05-16 10:31:38 +08:00
niusmallnan
3eb3cd09ee K-EXPLORER: bump shell image v0.1.19 2023-03-16 17:06:26 +08:00
niusmallnan
9611285aa1 K-EXPLORER: Merge branch 'release/2.6' 1a36a52 into ke/v0.2 2023-03-16 17:03:34 +08:00
Colleen Murphy
1a36a52a25
Merge pull request #78 from crobby/fixviewlinks
[2.6] Cherry-picking fix for view link on management crds
2023-02-24 08:51:20 -08:00
Michael Bolot
bbbe5dba44
Tests for "Fixing view link for management crds" 2023-02-24 10:05:50 -05:00
Michael Bolot
48cf877a80
Fixing view link for management crds 2023-02-24 10:05:45 -05:00
Colleen Murphy
a8f8c5e1bf
Merge pull request #71 from MbolotSuse/dyn-listener-bump-2.6
Bump Dynamic Listener v0.3.5
2023-01-12 13:43:29 -08:00
Michael Bolot
8cce5df962 Bump dynamic listener to v0.3.5
Bumps dynamic listener to v0.3.5. Adds a small arg change to
account for this version bump which addresses an issue caused by
the new version
2023-01-11 11:09:43 -06:00
Kevin Joiner
de59780a85 Add go generate to CI 2023-01-11 10:48:03 -06:00
Michael Bolot
9da721e7fe Adding validate phase to the CI
Adds a validate phase to the CI which runs a linter. Also fixes
linter issues discovered during the initial run
2023-01-11 10:47:44 -06:00
Michael Bolot
5996da8674 Adding build/test phase for CI 2023-01-11 10:47:37 -06:00
Michael Bolot
a6154c2132 Bump go to version 1.19 2023-01-11 10:47:32 -06:00
Michael Bolot
bb1e35ad0d Adding tests
Adds tests for:
- Cache clearing functionality
- Very basic schema generation
2023-01-11 10:47:22 -06:00
Michael Bolot
e50f0fbde7 Adding logic to limit number of cached schemas
Adds logic to ensure that only one schema/access set
is cached for each user. This should improve memory
consumption
2023-01-11 10:47:14 -06:00
niusmallnan
f8261f5f6e K-EXPLORER: bump golang 1.19 and lasso 2022-10-19 11:46:02 +08:00
niusmallnan
26e14afc0b K-EXPLORER: bump shell image v0.1.18 2022-08-19 17:28:37 +08:00
niusmallnan
f91b3045ca K-EXPLORER: Merge branch 'master' 647cba2be7 into ke/v0.2 2022-08-19 17:09:28 +08:00
niusmallnan
d493afc3db K-EXPLORER: delete clusterrole when dashboard shell pod is deleted
refer to #cnrancher/pandaria/issues/2179
2022-08-09 09:11:45 +08:00
Caleb Bron
647cba2be7
Merge pull request #56 from MbolotSuse/auth
Adding user authentication failed context value
2022-08-05 13:00:26 -07:00
Michael Bolot
7b5a48f871 Adding user authentication failed context value 2022-08-04 20:39:40 -05:00
niusmallnan
591cb7816f K-EXPLORER: Merge 3d379c3dd8 into ke/v0.2 2022-08-03 09:40:13 +08:00
niusmallnan
e56abbdc81 K-EXPLORER: support --insecure-skip-tls-verify like kubectl 2022-07-22 16:17:34 +08:00
Kinara Shah
dbf9ef88ce
Merge pull request #54 from kinarashah/124 2022-06-28 16:54:27 -07:00
Kinara Shah
3c8925cc12 wait for svc account secret to be populated with token 2022-06-28 16:25:00 -07:00
Kinara Shah
3d379c3dd8
Merge pull request #53 from jiaqiluo/support-1-24 2022-06-24 16:16:20 -07:00
Jiaqi Luo
485ebe48a9 generate a service account token to make it work in 1.24 2022-06-24 15:47:22 -07:00
Kinara Shah
d26d34631a
Merge pull request #50 from ebauman/v1.24.0 2022-06-24 15:44:43 -07:00
Colleen Murphy
22b03d364d
Merge pull request #49 from cmurphy/watch-logging-head
Make watches debuggable
2022-06-13 17:18:54 -07:00
Colleen Murphy
11fe86ab7e Make watch timeout configurable
By default, a watch times out after 30 minutes. For debugging purposes,
it's convenient if this can be decreased. Add an environment variable
CATTLE_WATCH_TIMEOUT_SECONDS to enable setting the timeout in seconds.
2022-06-13 16:01:55 -07:00
Colleen Murphy
ada5b33d98 Return websocket error and add logging for watches
Add debug logs and send websocket messages when the watch is closed
unexpectedly.

In addition to being helpful for debugging, the dashboard specifically
looks for a `resource.error` event containing the string "too old" in
order to trigger the watch to be resynced with a refreshed revision
number.  Without this error returned, the dashboard will only see
`resource.stop` events and never change its behavior, continuing to try
to restart the watch with an incorrect resource version.
2022-06-13 15:54:40 -07:00
Eamon Bauman
3ccc837e84 webhook setup requires rest.Config now 2022-05-25 18:49:28 -05:00
Eamon Bauman
9aa80d900e missed a few packages 2022-05-25 18:49:16 -05:00
Eamon Bauman
570fe24632 v1.24.0 2022-05-25 18:34:56 -05:00
niusmallnan
62d6de019d K-EXPLORER: bump golang 1.17 2022-05-07 13:41:14 +08:00
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