Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mruoss/kino_k8s
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.2.1
Choose a base ref
...
head repository: mruoss/kino_k8s
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref

Commits on Nov 30, 2023

  1. Copy the full SHA
    83f40d1 View commit details

Commits on Dec 2, 2023

  1. Copy the full SHA
    8cd20c7 View commit details
  2. Copy the full SHA
    db29fde View commit details
  3. Copy the full SHA
    fae3ca5 View commit details
  4. Copy the full SHA
    390665c View commit details

Commits on Dec 3, 2023

  1. Copy the full SHA
    b41bdbc View commit details

Commits on Dec 4, 2023

  1. Copy the full SHA
    4980667 View commit details
  2. Copy the full SHA
    7855410 View commit details

Commits on Dec 5, 2023

  1. Copy the full SHA
    52cb170 View commit details
  2. Copy the full SHA
    8bcd4aa View commit details

Commits on Dec 6, 2023

  1. Copy the full SHA
    f59be39 View commit details

Commits on Dec 7, 2023

  1. Copy the full SHA
    6f84093 View commit details
  2. Copy the full SHA
    038db9d View commit details

Commits on Dec 9, 2023

  1. Copy the full SHA
    adf43cc View commit details

Commits on Dec 10, 2023

  1. Copy the full SHA
    996c401 View commit details
  2. Copy the full SHA
    c8f42a3 View commit details

Commits on Dec 11, 2023

  1. Copy the full SHA
    02d9418 View commit details

Commits on Dec 12, 2023

  1. Copy the full SHA
    10757eb View commit details

Commits on Dec 13, 2023

  1. Copy the full SHA
    0418794 View commit details
  2. Copy the full SHA
    aeb3bf5 View commit details

Commits on Dec 14, 2023

  1. Copy the full SHA
    f22622b View commit details

Commits on Dec 16, 2023

  1. Copy the full SHA
    7848280 View commit details

Commits on Dec 18, 2023

  1. Copy the full SHA
    96ca725 View commit details
  2. Copy the full SHA
    219f2d9 View commit details
  3. Copy the full SHA
    e873871 View commit details
  4. Copy the full SHA
    80a744c View commit details

Commits on Dec 19, 2023

  1. Copy the full SHA
    6885ec0 View commit details
  2. Copy the full SHA
    8dc4c6d View commit details

Commits on Dec 25, 2023

  1. Copy the full SHA
    4201fe7 View commit details
  2. fix e2e test

    mruoss committed Dec 25, 2023
    Copy the full SHA
    a2e0759 View commit details
  3. Copy the full SHA
    b78f5e2 View commit details
  4. Copy the full SHA
    f3c0d53 View commit details

Commits on Dec 26, 2023

  1. Copy the full SHA
    fec6ae7 View commit details

Commits on Dec 28, 2023

  1. Copy the full SHA
    826bfa6 View commit details
  2. Copy the full SHA
    3735997 View commit details
  3. Copy the full SHA
    bc494f2 View commit details

Commits on Dec 29, 2023

  1. Copy the full SHA
    e3809dc View commit details

Commits on Dec 30, 2023

  1. Copy the full SHA
    f6e057e View commit details
  2. Copy the full SHA
    6116dbd View commit details

Commits on Jan 1, 2024

  1. Copy the full SHA
    418c931 View commit details

Commits on Jan 6, 2024

  1. Copy the full SHA
    64a3eaf View commit details
  2. Copy the full SHA
    afb01c0 View commit details
  3. Copy the full SHA
    66ba06a View commit details
  4. Copy the full SHA
    68620bc View commit details

Commits on Jan 7, 2024

  1. Copy the full SHA
    f7a6ce3 View commit details

Commits on Jan 9, 2024

  1. Copy the full SHA
    a1d33b5 View commit details
  2. Copy the full SHA
    ce38570 View commit details

Commits on Jan 11, 2024

  1. Copy the full SHA
    27ed287 View commit details

Commits on Jan 12, 2024

  1. Copy the full SHA
    bbec0e0 View commit details

Commits on Jan 13, 2024

  1. Copy the full SHA
    f01c6b5 View commit details
Showing with 54,051 additions and 5,873 deletions.
  1. +1 −1 .github/renovate.json5
  2. +54 −0 .github/workflows/code_quality.yaml
  3. +0 −58 .github/workflows/playwright.yml
  4. +2 −3 .gitignore
  5. +4 −4 .tool-versions
  6. +1 −5 .vscode/settings.json
  7. +26 −0 CHANGELOG.md
  8. +9 −11 README.md
  9. 0 { → assets}/.prettierrc.yaml
  10. +0 −56 assets/apply_cell/app.tsx
  11. +0 −1 assets/apply_cell/main.css
  12. +0 −26 assets/apply_cell/main.tsx
  13. +0 −8 assets/apply_cell/types.d.ts
  14. +0 −80 assets/connection_cell/app.tsx
  15. +0 −1 assets/connection_cell/main.css
  16. +0 −26 assets/connection_cell/main.tsx
  17. +0 −11 assets/connection_cell/types.d.ts
  18. +0 −115 assets/get_cell/app.tsx
  19. +0 −1 assets/get_cell/main.css
  20. +0 −26 assets/get_cell/main.tsx
  21. +0 −17 assets/get_cell/types.d.ts
  22. +0 −3 assets/main.css
  23. +3,909 −0 assets/package-lock.json
  24. +26 −0 assets/package.json
  25. +86 −0 assets/packs/get_cell/app.tsx
  26. +68 −0 assets/packs/get_cell/connect_operation_form.tsx
  27. +3 −0 assets/packs/get_cell/main.css
  28. +27 −0 assets/packs/get_cell/main.tsx
  29. +54 −0 assets/packs/get_cell/read_operation_form.tsx
  30. +24 −0 assets/packs/get_cell/types.d.ts
  31. +3 −3 assets/{ → packs}/kino_terminal/main.ts
  32. 0 assets/{ → packs}/kino_terminal/types.d.ts
  33. +0 −29 assets/shared/attr_state.tsx
  34. +0 −14 assets/shared/conn_notice.tsx
  35. +2 −0 assets/shared/error.tsx
  36. +31 −0 assets/shared/field_state.tsx
  37. +0 −60 assets/shared/form/select.tsx
  38. +0 −7 assets/{ → shared}/global.d.ts
  39. +1 −0 assets/shared/gvk_option.tsx
  40. +4 −1 assets/shared/{form → }/input.tsx
  41. 0 assets/{ → shared}/kino.d.ts
  42. +3 −0 assets/shared/main.css
  43. +9 −3 assets/shared/{form → }/search_select.tsx
  44. +70 −0 assets/shared/select.tsx
  45. +1 −0 assets/shared/{form → }/select_or_input.tsx
  46. +1 −1 assets/shared/types.d.ts
  47. +0 −20 assets/shared/utils.ts
  48. +0 −86 assets/terminal_cell/app.tsx
  49. +0 −1 assets/terminal_cell/main.css
  50. +0 −26 assets/terminal_cell/main.tsx
  51. +0 −14 assets/terminal_cell/types.d.ts
  52. +6 −0 assets/test-results/.last-run.json
  53. 0 { → assets}/tsconfig.json
  54. +0 −39 e2e/kino_k8s/connection_cell.spec.ts
  55. +567 −0 lib/assets/apply_cell/build/main.css
  56. +7 −0 lib/assets/apply_cell/build/main.css.map
  57. +23,920 −0 lib/assets/apply_cell/build/main.js
  58. +7 −0 lib/assets/apply_cell/build/main.js.map
  59. +0 −1 lib/assets/apply_cell/main.css
  60. +0 −10 lib/assets/apply_cell/main.js
  61. +567 −0 lib/assets/connection_cell/build/main.css
  62. +7 −0 lib/assets/connection_cell/build/main.css.map
  63. +23,934 −0 lib/assets/connection_cell/build/main.js
  64. +7 −0 lib/assets/connection_cell/build/main.js.map
  65. +0 −1 lib/assets/connection_cell/main.css
  66. +0 −10 lib/assets/connection_cell/main.js
  67. +1 −0 lib/assets/get_cell/build/main.css
  68. +50 −0 lib/assets/get_cell/build/main.js
  69. +0 −1 lib/assets/get_cell/main.css
  70. +0 −10 lib/assets/get_cell/main.js
  71. +5 −0 lib/assets/kino_terminal/build/main.js
  72. +0 −5 lib/assets/kino_terminal/main.js
  73. +0 −1 lib/assets/terminal_cell/main.css
  74. +0 −10 lib/assets/terminal_cell/main.js
  75. +1 −4 lib/kino_k8s/application.ex
  76. +0 −146 lib/kino_k8s/apply_cell.ex
  77. +0 −135 lib/kino_k8s/connection_cell.ex
  78. +0 −326 lib/kino_k8s/get_cell.ex
  79. +11 −18 lib/kino_k8s/k8s_helper.ex
  80. +11 −9 lib/kino_k8s/kino_terminal.ex
  81. +427 −0 lib/kino_k8s/kubernetes_client_cell.ex
  82. +66 −56 lib/kino_k8s/resource_gvk_cache.ex
  83. +12 −17 lib/kino_k8s/smart_cell_helper.ex
  84. +0 −215 lib/kino_k8s/terminal_cell.ex
  85. +5 −4 mix.exs
  86. +20 −12 mix.lock
  87. +1 −3,998 package-lock.json
  88. +0 −30 package.json
  89. +0 −68 playwright.config.ts
  90. +0 −29 tailwind.config.ts
2 changes: 1 addition & 1 deletion .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
extends: [
'config:base',
'config:recommended',
':automergeMinor',
':automergePr',
':dependencyDashboard',
':label(renovate-update)',
':rebaseStalePrs',
':prConcurrentLimit10',
54 changes: 54 additions & 0 deletions .github/workflows/code_quality.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Code Quality
on:
push:
branches: [main]
pull_request:
branches: [main]

env:
MIX_ENV: test

jobs:
code-quality:
name: Code Quality
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

- name: Setup elixir
id: beam
uses: erlef/setup-beam@v1
with:
version-file: .tool-versions
version-type: strict
install-rebar: true
install-hex: true

- name: Retrieve Build Cache
uses: actions/cache@v4
id: build-folder-cache
with:
path: _build/test
key: ${{ runner.os }}-${{ steps.beam.outputs.otp-version }}-${{ steps.beam.outputs.elixir-version }}-build-test-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}

- name: Retrieve Mix Dependencies Cache
uses: actions/cache@v4
id: mix-cache
with:
path: deps
key: ${{ runner.os }}-${{ steps.beam.outputs.otp-version }}-${{ steps.beam.outputs.elixir-version }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}

- name: Install Mix Dependencies
run: mix deps.get

- name: Check Formatting
run: mix format --check-formatted

- name: Compile
run: mix compile --warnings-as-errors

- name: Build frontend
run: |
cd assets
npm ci
npm run build
58 changes: 0 additions & 58 deletions .github/workflows/playwright.yml

This file was deleted.

5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -25,10 +25,9 @@ kino_k8s-*.tar
# Temporary files, for example, from tests.
/tmp/

# Node modules
*node_modules/*
# Node modules.
/assets/node_modules

*.livemd_files
/test-results/
/playwright-report/
/blob-report/
8 changes: 4 additions & 4 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
node 18.18.1
kind 0.20.0
erlang 26.1.2
elixir 1.15.7
nodejs 22.13.0
kind 0.26.0
erlang 27.2
elixir 1.18.1
6 changes: 1 addition & 5 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -2,10 +2,6 @@
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": true
},
"playwright.env": {
"KUBECONTEXT": "kind-kino-k8s",
"KUBECONFIG": "~/.kube/config"
"source.organizeImports": "explicit"
}
}
26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -12,6 +12,32 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

<!--------------------- Don't add new entries after this line --------------------->

## [2.0.0] - 2024-12-13

## Changed

* Switch Kubernetes Client to [`kubereq`](https://github.com/mruoss/kubereq) - [#398](https://github.com/mruoss/kino_k8s/pull/398)
* Consolidate all smart cells into a single cell - [#398](https://github.com/mruoss/kino_k8s/pull/398)
* Use [`@livebook/kino-bundler`](https://github.com/livebook-dev/kino-bundler) to bundle the JS/CSS. [#365](https://github.com/mruoss/kino_k8s/pull/365)

## [1.2.4] - 2024-08-21

### Changed

- Dependency Updates

## [1.2.3] - 2024-04-29

### Changed

- Set `insecure_skip_tls_verify` to `false` by default.

## [1.2.2] - 2024-01-28

### Changed

- Dependency Updates

## [1.2.1] - 2023-11-29

### Changed
20 changes: 9 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@ A Livebook Kino for learning to use the k8s Elixir library.
Install the latest 1.x version:

```elixir
Mix.install([{:kino_k8s, "~> 1.0"}])
Mix.install([{:kino_k8s, "~> 2.0"}])
```

To install the latest from `main` branch:
@@ -25,24 +25,20 @@ Mix.install([{:kino_k8s, github: "mruoss/kino_k8s"}])

## Smart Cells

`kino_k8s` brings the following Smart Cells to your [Livebook](https://livebook.dev):
`kino_k8s` brings the **Kubernetes Client** Smart Cell to your
[Livebook](https://livebook.dev). It lets you perform a set of operations on
your Kubernetes cluster and learn how to work with the
[`kubereq`](https://github.com/mruoss/kubereq) library

- **Cluster Connection** - Connect to a Kubernetes Cluster
- **Get / List / Watch Resources**
- **Create / Update / Apply Resource** - Modify resources in your cluster
- **Connect to Pod (Exec/Logs)** - Renders a terminal using xterm.js (Formerly `kino_k8s_term`).

The smart cells require a connection to a Kubernetes Cluster in form of a
`%K8s.Conn{}` object. To add such a connection to your Livebook, you can add
the `Cluster Connection` smart cell before adding any other smart cells.

## Development

### Build and Watch Javascript and CSS

```bash
cd assets
npm install
npm start
npm run dev
```

### Install and run livebook
@@ -55,5 +51,7 @@ livebook server ./dev.livemd
### Build Assets

```bash
cd assets
npm install
npm run build
```
File renamed without changes.
56 changes: 0 additions & 56 deletions assets/apply_cell/app.tsx

This file was deleted.

1 change: 0 additions & 1 deletion assets/apply_cell/main.css

This file was deleted.

26 changes: 0 additions & 26 deletions assets/apply_cell/main.tsx

This file was deleted.

8 changes: 0 additions & 8 deletions assets/apply_cell/types.d.ts

This file was deleted.

Loading