Commit Graph

63 Commits

Author SHA1 Message Date
Alexandre Alves 138601c6a6
Update publish shell workflow to allow for independent release of either shell or creators packages (#11697)
* add step for checking tag version matching + remove unused tmp_dir var + update creators version to match what was published on npm

* add missing env var + script cleanup

* updated publish-shell script to allow for independent publish of shell or creators pkgs via tag + minor changes to have it work on a PR just for testing

* update string

* update string

* update string check with sed

* revert wf and publish-shell to correct form

* address pr comments

* fix TAG export

* stringify case strings + fix publish-shell script with path for creators pkg publish

* re-trigger gates

* add check if npm tag should be pre-release
2024-08-30 14:28:53 +01:00
Alexandre Alves 91b4a3dfb3
bump upper limit of kube version annotation in default chart.yaml (#11715)
* bump upper limit of kube version annotation in default chart.yaml

* update version
2024-08-27 18:00:51 +01:00
cnotv ec73efb9f4 Check-plugin: Removing extension integration due lack of update 2024-08-22 16:09:54 -07:00
Cody Jackson e60e2e33db Updating the vue3 migration script to change how we handle modelValue. 2024-08-22 16:04:52 -07:00
Jordon Leach 21120630f7
Consolidate extension creators into one package (#11605)
* Consolidate extension creators into one package

* PR updates

* Fix test-plugins-build script to match new creator - remove dependency install step
2024-08-22 11:18:49 -04:00
Evgeniya Vashkevich 24e2718577
[INT] Added CAPI ui to the list of extensions to test (#11398) 2024-08-08 07:03:54 -07:00
Giuseppe Leo a2304f462e
Remove or replace all the @nuxt libraries (#11302)
* Update checkout to v4 and bump Node to 16

* Update GHA workflow migration paths

* Removed named exports from Vue files

* Move code outside of the Vue app element

* Remove @nuxtjs/eslint-config-typescript

* Remove @nuxt/types and @nuxt/typescript-build

* Fix import issue with http-proxy-middleware

* Replace @nuxtjs/axios with axios and axios-retry

* Remove @nuxtjs/webpack-profile

* Fix linting issues after Nuxt webpack removal

* Pin resolution for glob after rebase

* Update yarn.lock after rebase

* Fix issue with rancher-components

* Bump rancher-component GHA config to match rebase changes

* Generate yarn file

* Add dependency

* Remove nuxt global var in app template

* Pin version for babel/plugin-proposal-private-methods
2024-08-08 15:31:44 +02:00
Phillip Rak 5ac0d9da78 Use `process.cwd()` for locating eslint files
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-07-22 13:38:22 -07:00
Alexandre Alves 5e8fcc2ff9
remove rancher-components folder to prevent releasing outdated version of shell pkg on a manual release (#11331) 2024-07-03 13:57:40 +01:00
Alexandre Alves 0092617300
improve shell api gating (#11164)
* improve shell api gating

* update logic

* minor update

* populate extensions API version as latest shell version

* remove semver dependency on creators/pkg

* update script

* change

* change

* add default shell API version if there is no annotation in the metadata for gating it

* remove default for shell API in uiplugins + fix creators/pkg init script to read shell version from node_modules

* add mechanism to prevent shell pkg folder check for creators/pkg in our pipelines

* cleanup comment

* bump shell version on master
2024-07-01 13:58:08 +01:00
Nancy 374a839720
refactor extension uninstall tests (#11286)
* split extension uninstall tests by extension so retries work

* disable failing fleet test

* comment out test instead of using .skip

* stop running kubewarden-ui tests in dashboard ci
2024-06-21 14:05:45 -07:00
Giuseppe Leo c36b071e40
Remove every reference to .nuxt global option (#11265)
* Remove unused rehydratation plugin

* Remove any reference to the .nuxt folders

* Remove globalApp nuxt and any reference or use case to nuxt.error

* Replace errors handling with existing fail-whale logic
2024-06-21 11:15:05 +02:00
Jordon Leach 3b725e6200
Update gitlab pipeline with node setup (#11243) 2024-06-17 08:29:44 -04:00
Neil MacDougall 71712d84b9
Extensions: Add support for noAuth in publish script (#11220) 2024-06-13 11:15:36 +01:00
Alexandre Alves 30d9b43351
make workflows from creator pkg trigger only on tagged release + make developer load set UIPlugin as noAuth: true + remove serve catalog console log from serve-pkgs (#11216) 2024-06-13 10:26:20 +01:00
Alexandre Alves 289bef8e0f
update patch script to copy pkg annotations to uiplugin resource (#11170)
* update patch script to copy pkg annotations to uiplugin resource

* add indent notation to metadata field
2024-06-13 09:32:09 +01:00
Nancy ae24b74218
update migration script to handle .sync modifier (#11177) 2024-06-05 12:39:24 -07:00
Giuseppe Leo 696e511984
Create Vue3 migration script: upgrade libraries, configuration, syntax and tools (extension ready) (#10998)
* Add migration script and documentation

* Correct linting issue due new location of script

* Remove v-model migration due lack of emitter implementation
2024-05-11 10:05:38 +02:00
Guilherme Macedo 6766adbc46
Bump BCI image version to 15.5 (#10687)
Signed-off-by: Guilherme Macedo <guilherme@gmacedo.com>
2024-03-22 16:09:55 +00:00
Jordon Leach 9d836dd5e5
Fix parse tag name condition to check for proper workflow types (#10364) 2024-01-31 10:35:50 -05:00
Jiri Tomasek 9bf467179b
Fix parse-tag-name script to use correct GITHUB_WORKFLOW_TYPE (#10278)
* Fix parse-tag-name script to use correct GITHUB_WORKFLOW_TYPE

build-extension-charts.yml workflow passes "charts" as GITHUB_WORKFLOW_TYPE
build-extension-catalog.yaml workflow passes "catalog" as GITHUB_WORKFLOW_TYPE

This change utilizes correct workflow types in the parse-tag-name script. For
charts it checks against package.json in pkg and for catalog it checks against
root package.json

* Fix missing script parse-tag-name

This change moves the "Parse extension Name" step after the step which
installs dependencies at which point the script becomes available.

* Update 'Upload charts artifact' step condition to work for tagged releases

Tagged releases are 'tag' ref_type. For these cases we want the step to run
as well.
2024-01-18 08:48:45 -05:00
Alexandre Alves 601779a137
update shell pkg workflow to release the remaining pkgs that are usually published in tandem with shell on npm (#10185)
* update shell pkg workflow to release the remaining pkgs that are usually published in tandem with shell on npm

* change workflow trigger just for testing

* updates

* PR cleanup after proving workflow

* update arg

---------

Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro.local>
2023-12-20 08:10:20 +00:00
Giuseppe Leo 79af5ef829
Upload artifacts as output of check-plugins check for debugging (#10118)
* Upload artifacts

* Do not remove files

* Correct node_modules exclution

* Restrict to failure and 2 days

* Adding condition for cleanup; Added log with path

* Add eslintignore for kubewarden and elemental

* Update Regex for versions

* Include -rc and multiple digits for alpha

* Format indentation fix
2023-12-11 22:04:49 +01:00
Jordon Leach 7b8048775c
Move extensions gitlab workflow (#10114)
* Move extensions gitlab workflow

* Bump shell 0.4.1
2023-12-06 12:37:22 -05:00
Alexandre Alves 0abdbfa903
improve test plugins build script (#10102)
* improve test plugins build script to test extension build with newly built version of the shell package

* uncomment code

* uncomment code

* fix clone permissions issue + add missing registry variables

* revert changes

* revert changes

* address pr comments + delete unwanted code

---------

Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro.local>
2023-12-06 14:03:51 +00:00
Jordon Leach 20de414d04
Add GitLab support for extensions (#9891) 2023-11-20 14:12:47 -05:00
Richard Cox e07fedfa94 Bump extension max versions 2023-10-02 17:08:49 +01:00
Jordon Leach 203734ec6c
Fix pkg creator workflow filenames (#9676)
Fix parse-tag-name permissions
2023-09-12 10:05:39 -04:00
Jordon Leach 5dd0d52942
Add reusable workflows for extension builds (#9495)
* Add reusable workflows for extension builds

Add workflow configuration

* Add parsing of extension release tag name

* Update permissions for ext workflows
2023-08-28 11:23:10 -04:00
Jordon Leach c23dcf5de6
Add tagged release option to publish-pkgs script (#9456)
* Add tagged release option to publish-pkgs script

* Update publishing documentation for manual Github builds
2023-08-02 07:42:05 -04:00
Richard Cox 77d65c9c9b Add additional types for extensions, fix other typing errors 2023-07-25 15:51:31 +01:00
Jordon Leach e0cecc4231
Add conditions for updating root index of extension (#9289) 2023-07-17 14:14:09 -04:00
Neil MacDougall c9e1a19396
Extension support for custom provisioning (#9246)
* Extension support for custom provisioning

* FIx lint issues

* Discovery / Tweaks
- fix issue where namespacesOverride was lost
- tidy up PROVIDER
- try to handle missing provider=type url param (could be missing extension-params)
- added a few comments to comments to come back to

* Names and typings
- change param --> customParam to make it clearer it's not url params
- add labels-annotations to shell types

* Wire in provider detailTabs
- as per original readme this should be made generic (extension point working directly with ResourceTabs)

* Update IClusterProvisioner & docs

* Improvements / Changes to support proving out DO extension
- cluster hooks optional
- buff up save hook (and pass in cluster when calling apply fn)
- move normalizeName into generic place
- bring back async create machine config
- hack for do extension (map example provider to do provider)

* updates, add optional saveCluster, add missing kube file
- saveCluster complements hooks, doesn't skip handling of addons, etc
- ensure register hooks take the `this` context in all worlds

* Adding docs

* Updates
- location config based changes
  - change customParams to context
  - add query param
- add new extention point to add tabs to cluster create cluster config section
- fixed some typing
- fixed issue where cluster was not passed to before / after hooks (only important if 'this' changes

* Changes following review, fix `t` in plugins

* Fix linting

* Docs updates, pass through more edit/view things

* Conditionally show the namespace grouping in the cluster list
- means users can differentiate between clusters with same name in different namespaces
- useful when clusters created via extension provisioner where ns can be selected

* docs tweaks, actually include the provisioning page in docs

---------

Co-authored-by: Richard Cox <richard.cox@suse.com>
2023-07-11 22:17:57 +01:00
Alexandre Alves 398585fb83
bump kube version (#9139)
Co-authored-by: Alexandre Alves <aalves@Alexandres-MBP.lan>
2023-06-20 19:11:34 +01:00
Jordon Leach be2689bdda
Clean up temporary charts - fix chart url path (#9075) 2023-06-09 12:16:45 -04:00
Jordon Leach d94e78c24a
Add extension image load dialog (#9010)
Update dialog with repo creation - update docs

Add uninstall for custom images

Add extension images list view

Add image load dialog and uninstall within extension image view

Update publish and bundle scripts for image load - move image page to tab

Add extension container build workflow file to pkg creator

Move plugin server template into extension build scripts

Fix publish script for multiple asset packages

Move ImageList view to separate page - add crd metadata for custom images

Update docs - fix references to images with catalog

Fix wording, cache state badge, masthead breadcrumb, when deleteing resources check for namespaces

Update docs - fix delete repo resource - default cache state

Trim image whitespace - populate extensionUrl

Add experimental badge
2023-06-02 08:28:47 -04:00
Jordon Leach 678e7db7ea
Fix publish script to properly check for gh-pages branch (#8781)
Bump shell version 0.3.7
2023-05-04 10:21:25 +01:00
codyrancher 2723213c44 Adding a descriptive error message to the serve-pkgs script
https://github.com/rancher/dashboard/issues/8744
2023-05-01 19:54:27 +02:00
Jordon Leach c1c340bc53
Update extensions publish workflow for assets in gh-pages branch (#8618)
* Update extensions workflow to move assets into gh-pages branch

Fix gh-pages check

* Move bundle execution - add default basename and ext version

* Fix basename op

* PR changes
2023-04-26 08:39:26 -04:00
Jordon Leach 2d5e1c32ee
Add github workflow option to creator pkg (#8318)
* Add github workflow option to creator pkg

Add js-yaml to creator pkg dependencies

Update init to move workflow file into root app dir

Split build-extension workflow jobs - add tmp directory step in publish script

Fix issues with non-existent workflows - add some docs

Fix pkg and app versions

add yarn.lock and ignore

Update workflow to use @rancher/shell publish script

Decouple the image build from the publish script - update docs

Remove implies for repo and branch options

Update advanced.md

Change type folder generation from i18n to l10n

Remove mention of tmp dir in clean-up section

* Remove bundle registry_org conditional
2023-04-03 15:44:16 -04:00
Cody Jackson bbb7eebc90 Removing nuxt 2023-03-03 11:49:26 +00:00
Neil MacDougall 6537360006
Extensions: Add publish script to shell (#8198)
* Add publish script to shell

* Fix wrong path
2023-02-21 20:06:48 +00:00
Neil MacDougall f69dcff49d
Ensure build fails when it fails! (#8201) 2023-02-17 17:09:29 +00:00
Neil MacDougall b73940b7e3 Need to build after yarn install 2022-12-01 16:59:08 +00:00
Neil MacDougall 7bac916f96 Fix test plugins script to avoid version issues with rancher components lib 2022-12-01 16:51:11 +00:00
Neil MacDougall 4abc94a940
Fix plugin pkg tsconfig (#6930)
* Fix pkg tsconfig

* Ensure test package is removed

* Fix package versions

* Add update package and refine typescript configuration

* Fix lint issues

* Fix issues with creators

* Install dependencies

* Fix e2e

* Include components for standalone app build

* Fix issue with yarn linking shell

* Fix for yarn linking

* Fix for lstat on non-existing file

* Fix lint issue when running with yarn link

* Update TextAreaAutoGrow.vue

* Fix test script build

* Fix test script issue

* Fix script on mac
2022-11-24 10:03:42 +00:00
Neil MacDougall bd1a8abd0a
Fix shell package dependencies (#7070)
* Fix shell package dependencies

* Revert version number change
2022-10-04 12:02:45 +01:00
Neil MacDougall 2ebc0d89b2
Add support for building and serving non-minified plugins (#6887) 2022-09-27 10:05:38 +01:00
Phillip Rak dc76e9e074 Add registry to publish commands
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2022-09-16 13:33:54 -07:00
Richard Cox 25cae83780 Fix drone-build-pkg script for `master` branch
- Ensure that we correctly source for github env vars
2022-09-12 19:19:28 +01:00