codefresh 0.78.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.dockerignore +14 -0
- package/.eslintrc.js +20 -0
- package/.gitattributes +29 -0
- package/.nvmrc +1 -0
- package/Dockerfile +39 -0
- package/LICENSE +21 -0
- package/README.md +55 -0
- package/__mocks__/requestretry.js +35 -0
- package/brew/template.rb +15 -0
- package/check-version.js +13 -0
- package/cli.gif +0 -0
- package/codefresh-arm.yml +54 -0
- package/codefresh-release.yml +173 -0
- package/codefresh.yml +120 -0
- package/docs/archetypes/default.md +6 -0
- package/docs/config.toml +44 -0
- package/docs/content/_header.md +6 -0
- package/docs/content/_index.md +19 -0
- package/docs/content/contexts/spec/_index.md +28 -0
- package/docs/content/contexts/spec/config.md +30 -0
- package/docs/content/contexts/spec/helm-repository.md +16 -0
- package/docs/content/contexts/spec/secret-yaml.md +32 -0
- package/docs/content/contexts/spec/secret.md +30 -0
- package/docs/content/contexts/spec/yaml.md +30 -0
- package/docs/content/external-resources.md +8 -0
- package/docs/content/getting-started/_index.md +28 -0
- package/docs/content/installation/_index.md +13 -0
- package/docs/content/installation/docker.md +15 -0
- package/docs/content/installation/homebrew.md +29 -0
- package/docs/content/installation/npm.md +22 -0
- package/docs/content/installation/yarn.md +22 -0
- package/docs/content/more/_index.md +7 -0
- package/docs/content/operate on resources/_index.md +10 -0
- package/docs/content/pipelines/Run Pipeline.md +38 -0
- package/docs/content/pipelines/spec.md +190 -0
- package/docs/docs.spec.js +8 -0
- package/docs/index.js +407 -0
- package/docs/layouts/partials/menu-footer.html +13 -0
- package/docs/themes/docdock/LICENSE.md +22 -0
- package/docs/themes/docdock/README.md +129 -0
- package/docs/themes/docdock/archetypes/default.md +9 -0
- package/docs/themes/docdock/archetypes/slide.md +46 -0
- package/docs/themes/docdock/exampleSite/config.toml +68 -0
- package/docs/themes/docdock/exampleSite/content/_index.md +50 -0
- package/docs/themes/docdock/exampleSite/content/content-organisation/_index.md +138 -0
- package/docs/themes/docdock/exampleSite/content/content-organisation/customize-style/_index.md +66 -0
- package/docs/themes/docdock/exampleSite/content/content-organisation/customize-style/disable.md +24 -0
- package/docs/themes/docdock/exampleSite/content/content-organisation/customize-style/theme-variants.md +35 -0
- package/docs/themes/docdock/exampleSite/content/content-organisation/customize-style/themestyle.md +25 -0
- package/docs/themes/docdock/exampleSite/content/content-organisation/extramenu.md +28 -0
- package/docs/themes/docdock/exampleSite/content/content-organisation/logo.md +12 -0
- package/docs/themes/docdock/exampleSite/content/create-page/_index.md +54 -0
- package/docs/themes/docdock/exampleSite/content/create-page/homepage.md +8 -0
- package/docs/themes/docdock/exampleSite/content/create-page/myslide.md +48 -0
- package/docs/themes/docdock/exampleSite/content/create-page/page-images.md +28 -0
- package/docs/themes/docdock/exampleSite/content/create-page/page-slide.md +114 -0
- package/docs/themes/docdock/exampleSite/content/credits.md +44 -0
- package/docs/themes/docdock/exampleSite/content/getting-start/_index.md +12 -0
- package/docs/themes/docdock/exampleSite/content/getting-start/configuration.md +56 -0
- package/docs/themes/docdock/exampleSite/content/getting-start/installation.md +83 -0
- package/docs/themes/docdock/exampleSite/content/search/_index.md +13 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/_index.md +10 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/alert.md +30 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/attachments.files/BachGavotteShort.mp3 +0 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/attachments.files/Carroll_AliceAuPaysDesMerveilles.pdf +0 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/attachments.files/adivorciarsetoca00cape.pdf +0 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/attachments.files/hugo.png +0 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/attachments.files/movieselectricsheep-flock-244-32500-2.mp4 +0 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/attachments.md +59 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/button.md +37 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/children/_index.md +46 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/children/children-1/_index.md +6 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/children/children-1/children-1-1/_index.md +6 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/children/children-1/children-1-1/children-1-1-1/_index.md +6 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/children/children-1/children-1-1/children-1-1-1/children-1-1-1-1/_index.md +6 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/children/children-1/children-1-1/children-1-1-1/children-1-1-1-1/children-1-1-1-1-1/_index.md +6 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/children/children-2/_index.md +11 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/children/children-2/test3.md +6 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/children/children-3/_index.md +6 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/children/children-4/_index.md +7 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/children/test.md +6 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/excerpt-include.md +25 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/excerpt.md +39 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/expand.md +41 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/icon.md +1254 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/mermaid.md +98 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/notice.md +61 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/panel.md +60 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/revealjs.md +119 -0
- package/docs/themes/docdock/exampleSite/content/showcase.md +15 -0
- package/docs/themes/docdock/exampleSite/layouts/partials/custom-head.html +10 -0
- package/docs/themes/docdock/exampleSite/layouts/partials/menu-footer.html +13 -0
- package/docs/themes/docdock/exampleSite/layouts/shortcodes/ghcontributors.html +31 -0
- package/docs/themes/docdock/exampleSite/static/menu-entry-icon.png +0 -0
- package/docs/themes/docdock/exampleSite/static/showcase/bitfan.site.png +0 -0
- package/docs/themes/docdock/exampleSite/static/showcase/invincible.site.png +0 -0
- package/docs/themes/docdock/exampleSite/static/style-flex.png +0 -0
- package/docs/themes/docdock/exampleSite/static/style-original.png +0 -0
- package/docs/themes/docdock/exampleSite/static/variant-gold.png +0 -0
- package/docs/themes/docdock/exampleSite/static/variant-gray.png +0 -0
- package/docs/themes/docdock/exampleSite/static/variant-green.png +0 -0
- package/docs/themes/docdock/i18n/en.toml +44 -0
- package/docs/themes/docdock/i18n/es.toml +26 -0
- package/docs/themes/docdock/i18n/fr.toml +44 -0
- package/docs/themes/docdock/i18n/nb.toml +38 -0
- package/docs/themes/docdock/images/screenshot.png +0 -0
- package/docs/themes/docdock/images/tn.png +0 -0
- package/docs/themes/docdock/layouts/404.html +39 -0
- package/docs/themes/docdock/layouts/_default/baseof.html +32 -0
- package/docs/themes/docdock/layouts/_default/li.html +22 -0
- package/docs/themes/docdock/layouts/_default/list.html +20 -0
- package/docs/themes/docdock/layouts/_default/single.html +3 -0
- package/docs/themes/docdock/layouts/index.html +30 -0
- package/docs/themes/docdock/layouts/index.json +12 -0
- package/docs/themes/docdock/layouts/partials/breadcrumb.html +8 -0
- package/docs/themes/docdock/layouts/partials/custom-content-footer.html +6 -0
- package/docs/themes/docdock/layouts/partials/custom-footer.html +0 -0
- package/docs/themes/docdock/layouts/partials/custom-head.html +2 -0
- package/docs/themes/docdock/layouts/partials/flex/body-aftercontent.html +54 -0
- package/docs/themes/docdock/layouts/partials/flex/body-beforecontent.html +68 -0
- package/docs/themes/docdock/layouts/partials/flex/head.html +17 -0
- package/docs/themes/docdock/layouts/partials/flex/scripts.html +11 -0
- package/docs/themes/docdock/layouts/partials/flex/selectnavigation.html +58 -0
- package/docs/themes/docdock/layouts/partials/header.html +10 -0
- package/docs/themes/docdock/layouts/partials/language-selector.html +18 -0
- package/docs/themes/docdock/layouts/partials/menu-footer.html +0 -0
- package/docs/themes/docdock/layouts/partials/menu.html +82 -0
- package/docs/themes/docdock/layouts/partials/next-prev-page.html +44 -0
- package/docs/themes/docdock/layouts/partials/original/body-aftercontent.html +13 -0
- package/docs/themes/docdock/layouts/partials/original/body-beforecontent.html +128 -0
- package/docs/themes/docdock/layouts/partials/original/head.html +23 -0
- package/docs/themes/docdock/layouts/partials/original/scripts.html +10 -0
- package/docs/themes/docdock/layouts/partials/pagination.html +9 -0
- package/docs/themes/docdock/layouts/shortcodes/alert.html +6 -0
- package/docs/themes/docdock/layouts/shortcodes/anchor.html +1 -0
- package/docs/themes/docdock/layouts/shortcodes/anchorlink.html +1 -0
- package/docs/themes/docdock/layouts/shortcodes/attachmentlink.html +5 -0
- package/docs/themes/docdock/layouts/shortcodes/attachments.html +33 -0
- package/docs/themes/docdock/layouts/shortcodes/button.html +6 -0
- package/docs/themes/docdock/layouts/shortcodes/children.html +104 -0
- package/docs/themes/docdock/layouts/shortcodes/code.html +1 -0
- package/docs/themes/docdock/layouts/shortcodes/emoticon.html +29 -0
- package/docs/themes/docdock/layouts/shortcodes/excerpt-include.html +14 -0
- package/docs/themes/docdock/layouts/shortcodes/excerpt.html +7 -0
- package/docs/themes/docdock/layouts/shortcodes/expand.html +16 -0
- package/docs/themes/docdock/layouts/shortcodes/header.html +16 -0
- package/docs/themes/docdock/layouts/shortcodes/icon.html +13 -0
- package/docs/themes/docdock/layouts/shortcodes/image.html +5 -0
- package/docs/themes/docdock/layouts/shortcodes/info.html +10 -0
- package/docs/themes/docdock/layouts/shortcodes/label.html +1 -0
- package/docs/themes/docdock/layouts/shortcodes/mermaid.html +3 -0
- package/docs/themes/docdock/layouts/shortcodes/note.html +4 -0
- package/docs/themes/docdock/layouts/shortcodes/notice.html +1 -0
- package/docs/themes/docdock/layouts/shortcodes/pagelink.html +12 -0
- package/docs/themes/docdock/layouts/shortcodes/pagetreesearch.html +1 -0
- package/docs/themes/docdock/layouts/shortcodes/panel.html +5 -0
- package/docs/themes/docdock/layouts/shortcodes/recently-updated.html +7 -0
- package/docs/themes/docdock/layouts/shortcodes/relref.html +14 -0
- package/docs/themes/docdock/layouts/shortcodes/revealjs.html +66 -0
- package/docs/themes/docdock/layouts/shortcodes/section.html +1 -0
- package/docs/themes/docdock/layouts/shortcodes/task.html +10 -0
- package/docs/themes/docdock/layouts/shortcodes/tasklist.html +4 -0
- package/docs/themes/docdock/layouts/shortcodes/tip.html +10 -0
- package/docs/themes/docdock/layouts/shortcodes/toc.html +2 -0
- package/docs/themes/docdock/layouts/shortcodes/unknow.html +1 -0
- package/docs/themes/docdock/layouts/shortcodes/userlink.html +1 -0
- package/docs/themes/docdock/layouts/shortcodes/viewppt.html +5 -0
- package/docs/themes/docdock/layouts/shortcodes/viewxls.html +5 -0
- package/docs/themes/docdock/layouts/shortcodes/warning.html +12 -0
- package/docs/themes/docdock/layouts/shortcodes/well.html +1 -0
- package/docs/themes/docdock/layouts/slide/single.html +38 -0
- package/docs/themes/docdock/static/css/auto-complete.css +49 -0
- package/docs/themes/docdock/static/css/bootstrap.min.css +1884 -0
- package/docs/themes/docdock/static/css/featherlight.min.css +8 -0
- package/docs/themes/docdock/static/css/font-awesome.min.css +4 -0
- package/docs/themes/docdock/static/css/horsey.css +35 -0
- package/docs/themes/docdock/static/css/hybrid.css +102 -0
- package/docs/themes/docdock/static/css/nucleus.css +617 -0
- package/docs/themes/docdock/static/fonts/FontAwesome.otf +0 -0
- package/docs/themes/docdock/static/fonts/Inconsolata.eot +0 -0
- package/docs/themes/docdock/static/fonts/Inconsolata.svg +359 -0
- package/docs/themes/docdock/static/fonts/Inconsolata.ttf +0 -0
- package/docs/themes/docdock/static/fonts/Inconsolata.woff +0 -0
- package/docs/themes/docdock/static/fonts/Lato-Bold.ttf +0 -0
- package/docs/themes/docdock/static/fonts/Lato-Bold.woff2 +0 -0
- package/docs/themes/docdock/static/fonts/Lato-Regular.ttf +0 -0
- package/docs/themes/docdock/static/fonts/Lato-Regular.woff2 +0 -0
- package/docs/themes/docdock/static/fonts/Novecentosanswide-Normal-webfont.eot +0 -0
- package/docs/themes/docdock/static/fonts/Novecentosanswide-Normal-webfont.svg +1019 -0
- package/docs/themes/docdock/static/fonts/Novecentosanswide-Normal-webfont.ttf +0 -0
- package/docs/themes/docdock/static/fonts/Novecentosanswide-Normal-webfont.woff +0 -0
- package/docs/themes/docdock/static/fonts/Novecentosanswide-Normal-webfont.woff2 +0 -0
- package/docs/themes/docdock/static/fonts/Novecentosanswide-UltraLight-webfont.eot +0 -0
- package/docs/themes/docdock/static/fonts/Novecentosanswide-UltraLight-webfont.svg +918 -0
- package/docs/themes/docdock/static/fonts/Novecentosanswide-UltraLight-webfont.ttf +0 -0
- package/docs/themes/docdock/static/fonts/Novecentosanswide-UltraLight-webfont.woff +0 -0
- package/docs/themes/docdock/static/fonts/Novecentosanswide-UltraLight-webfont.woff2 +0 -0
- package/docs/themes/docdock/static/fonts/Roboto-Italic.ttf +0 -0
- package/docs/themes/docdock/static/fonts/Roboto-Medium.ttf +0 -0
- package/docs/themes/docdock/static/fonts/Roboto-Regular.ttf +0 -0
- package/docs/themes/docdock/static/fonts/RobotoMono-Medium.ttf +0 -0
- package/docs/themes/docdock/static/fonts/RobotoMono-Regular.ttf +0 -0
- package/docs/themes/docdock/static/fonts/Work_Sans_200.eot +0 -0
- package/docs/themes/docdock/static/fonts/Work_Sans_200.svg +332 -0
- package/docs/themes/docdock/static/fonts/Work_Sans_200.ttf +0 -0
- package/docs/themes/docdock/static/fonts/Work_Sans_200.woff +0 -0
- package/docs/themes/docdock/static/fonts/Work_Sans_200.woff2 +0 -0
- package/docs/themes/docdock/static/fonts/Work_Sans_300.eot +0 -0
- package/docs/themes/docdock/static/fonts/Work_Sans_300.svg +331 -0
- package/docs/themes/docdock/static/fonts/Work_Sans_300.ttf +0 -0
- package/docs/themes/docdock/static/fonts/Work_Sans_300.woff +0 -0
- package/docs/themes/docdock/static/fonts/Work_Sans_300.woff2 +0 -0
- package/docs/themes/docdock/static/fonts/Work_Sans_500.eot +0 -0
- package/docs/themes/docdock/static/fonts/Work_Sans_500.svg +333 -0
- package/docs/themes/docdock/static/fonts/Work_Sans_500.ttf +0 -0
- package/docs/themes/docdock/static/fonts/Work_Sans_500.woff +0 -0
- package/docs/themes/docdock/static/fonts/Work_Sans_500.woff2 +0 -0
- package/docs/themes/docdock/static/fonts/fontawesome-webfont.eot +0 -0
- package/docs/themes/docdock/static/fonts/fontawesome-webfont.svg +2671 -0
- package/docs/themes/docdock/static/fonts/fontawesome-webfont.ttf +0 -0
- package/docs/themes/docdock/static/fonts/fontawesome-webfont.woff +0 -0
- package/docs/themes/docdock/static/fonts/fontawesome-webfont.woff2 +0 -0
- package/docs/themes/docdock/static/fonts/glyphicons-halflings-regular.eot +0 -0
- package/docs/themes/docdock/static/fonts/glyphicons-halflings-regular.svg +288 -0
- package/docs/themes/docdock/static/fonts/glyphicons-halflings-regular.ttf +0 -0
- package/docs/themes/docdock/static/fonts/glyphicons-halflings-regular.woff +0 -0
- package/docs/themes/docdock/static/fonts/glyphicons-halflings-regular.woff2 +0 -0
- package/docs/themes/docdock/static/images/clippy.svg +4 -0
- package/docs/themes/docdock/static/images/favicon.png +0 -0
- package/docs/themes/docdock/static/images/gopher-404.jpg +0 -0
- package/docs/themes/docdock/static/js/auto-complete.js +223 -0
- package/docs/themes/docdock/static/js/clipboard.min.js +7 -0
- package/docs/themes/docdock/static/js/docdock.js +309 -0
- package/docs/themes/docdock/static/js/featherlight.min.js +8 -0
- package/docs/themes/docdock/static/js/highlight.pack.js +2 -0
- package/docs/themes/docdock/static/js/html5shiv-printshiv.min.js +4 -0
- package/docs/themes/docdock/static/js/jquery-2.x.min.js +4 -0
- package/docs/themes/docdock/static/js/lunr.min.js +6 -0
- package/docs/themes/docdock/static/js/modernizr.custom.71422.js +4 -0
- package/docs/themes/docdock/static/js/search.js +91 -0
- package/docs/themes/docdock/static/mermaid/mermaid.css +273 -0
- package/docs/themes/docdock/static/mermaid/mermaid.dark.css +275 -0
- package/docs/themes/docdock/static/mermaid/mermaid.forest.css +353 -0
- package/docs/themes/docdock/static/mermaid/mermaid.js +30 -0
- package/docs/themes/docdock/static/none.html +0 -0
- package/docs/themes/docdock/static/revealjs/.travis.yml +5 -0
- package/docs/themes/docdock/static/revealjs/CONTRIBUTING.md +23 -0
- package/docs/themes/docdock/static/revealjs/Gruntfile.js +192 -0
- package/docs/themes/docdock/static/revealjs/LICENSE +19 -0
- package/docs/themes/docdock/static/revealjs/README.md +1238 -0
- package/docs/themes/docdock/static/revealjs/bower.json +27 -0
- package/docs/themes/docdock/static/revealjs/css/print/paper.css +203 -0
- package/docs/themes/docdock/static/revealjs/css/print/pdf.css +178 -0
- package/docs/themes/docdock/static/revealjs/css/reveal.css +1555 -0
- package/docs/themes/docdock/static/revealjs/css/reveal.scss +1717 -0
- package/docs/themes/docdock/static/revealjs/css/theme/README.md +21 -0
- package/docs/themes/docdock/static/revealjs/css/theme/beige.css +268 -0
- package/docs/themes/docdock/static/revealjs/css/theme/black.css +264 -0
- package/docs/themes/docdock/static/revealjs/css/theme/blood.css +287 -0
- package/docs/themes/docdock/static/revealjs/css/theme/league.css +270 -0
- package/docs/themes/docdock/static/revealjs/css/theme/moon.css +268 -0
- package/docs/themes/docdock/static/revealjs/css/theme/night.css +262 -0
- package/docs/themes/docdock/static/revealjs/css/theme/serif.css +264 -0
- package/docs/themes/docdock/static/revealjs/css/theme/simple.css +267 -0
- package/docs/themes/docdock/static/revealjs/css/theme/sky.css +271 -0
- package/docs/themes/docdock/static/revealjs/css/theme/solarized.css +268 -0
- package/docs/themes/docdock/static/revealjs/css/theme/source/beige.scss +39 -0
- package/docs/themes/docdock/static/revealjs/css/theme/source/black.scss +49 -0
- package/docs/themes/docdock/static/revealjs/css/theme/source/blood.scss +78 -0
- package/docs/themes/docdock/static/revealjs/css/theme/source/league.scss +34 -0
- package/docs/themes/docdock/static/revealjs/css/theme/source/moon.scss +57 -0
- package/docs/themes/docdock/static/revealjs/css/theme/source/night.scss +34 -0
- package/docs/themes/docdock/static/revealjs/css/theme/source/serif.scss +35 -0
- package/docs/themes/docdock/static/revealjs/css/theme/source/simple.scss +43 -0
- package/docs/themes/docdock/static/revealjs/css/theme/source/sky.scss +46 -0
- package/docs/themes/docdock/static/revealjs/css/theme/source/solarized.scss +63 -0
- package/docs/themes/docdock/static/revealjs/css/theme/source/white.scss +49 -0
- package/docs/themes/docdock/static/revealjs/css/theme/template/mixins.scss +29 -0
- package/docs/themes/docdock/static/revealjs/css/theme/template/settings.scss +43 -0
- package/docs/themes/docdock/static/revealjs/css/theme/template/theme.scss +316 -0
- package/docs/themes/docdock/static/revealjs/css/theme/white.css +264 -0
- package/docs/themes/docdock/static/revealjs/demo.html +410 -0
- package/docs/themes/docdock/static/revealjs/index.html +49 -0
- package/docs/themes/docdock/static/revealjs/js/reveal.js +5239 -0
- package/docs/themes/docdock/static/revealjs/lib/css/zenburn.css +80 -0
- package/docs/themes/docdock/static/revealjs/lib/font/league-gothic/LICENSE +2 -0
- package/docs/themes/docdock/static/revealjs/lib/font/league-gothic/league-gothic.css +10 -0
- package/docs/themes/docdock/static/revealjs/lib/font/league-gothic/league-gothic.eot +0 -0
- package/docs/themes/docdock/static/revealjs/lib/font/league-gothic/league-gothic.ttf +0 -0
- package/docs/themes/docdock/static/revealjs/lib/font/league-gothic/league-gothic.woff +0 -0
- package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/LICENSE +45 -0
- package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/source-sans-pro-italic.eot +0 -0
- package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/source-sans-pro-italic.ttf +0 -0
- package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/source-sans-pro-italic.woff +0 -0
- package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/source-sans-pro-regular.eot +0 -0
- package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/source-sans-pro-regular.ttf +0 -0
- package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/source-sans-pro-regular.woff +0 -0
- package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/source-sans-pro-semibold.eot +0 -0
- package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/source-sans-pro-semibold.ttf +0 -0
- package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/source-sans-pro-semibold.woff +0 -0
- package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/source-sans-pro-semibolditalic.eot +0 -0
- package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/source-sans-pro-semibolditalic.ttf +0 -0
- package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/source-sans-pro-semibolditalic.woff +0 -0
- package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/source-sans-pro.css +39 -0
- package/docs/themes/docdock/static/revealjs/lib/js/classList.js +2 -0
- package/docs/themes/docdock/static/revealjs/lib/js/head.min.js +9 -0
- package/docs/themes/docdock/static/revealjs/lib/js/html5shiv.js +7 -0
- package/docs/themes/docdock/static/revealjs/package.json +43 -0
- package/docs/themes/docdock/static/revealjs/plugin/highlight/highlight.js +77 -0
- package/docs/themes/docdock/static/revealjs/plugin/markdown/example.html +129 -0
- package/docs/themes/docdock/static/revealjs/plugin/markdown/example.md +31 -0
- package/docs/themes/docdock/static/revealjs/plugin/markdown/markdown.js +412 -0
- package/docs/themes/docdock/static/revealjs/plugin/markdown/marked.js +6 -0
- package/docs/themes/docdock/static/revealjs/plugin/math/math.js +67 -0
- package/docs/themes/docdock/static/revealjs/plugin/multiplex/client.js +13 -0
- package/docs/themes/docdock/static/revealjs/plugin/multiplex/index.js +64 -0
- package/docs/themes/docdock/static/revealjs/plugin/multiplex/master.js +34 -0
- package/docs/themes/docdock/static/revealjs/plugin/multiplex/package.json +19 -0
- package/docs/themes/docdock/static/revealjs/plugin/notes/notes.html +759 -0
- package/docs/themes/docdock/static/revealjs/plugin/notes/notes.js +155 -0
- package/docs/themes/docdock/static/revealjs/plugin/notes-server/client.js +65 -0
- package/docs/themes/docdock/static/revealjs/plugin/notes-server/index.js +69 -0
- package/docs/themes/docdock/static/revealjs/plugin/notes-server/notes.html +585 -0
- package/docs/themes/docdock/static/revealjs/plugin/print-pdf/print-pdf.js +69 -0
- package/docs/themes/docdock/static/revealjs/plugin/search/search.js +206 -0
- package/docs/themes/docdock/static/revealjs/plugin/zoom-js/zoom.js +272 -0
- package/docs/themes/docdock/static/revealjs/test/examples/assets/image1.png +0 -0
- package/docs/themes/docdock/static/revealjs/test/examples/assets/image2.png +0 -0
- package/docs/themes/docdock/static/revealjs/test/examples/barebones.html +41 -0
- package/docs/themes/docdock/static/revealjs/test/examples/embedded-media.html +49 -0
- package/docs/themes/docdock/static/revealjs/test/examples/math.html +185 -0
- package/docs/themes/docdock/static/revealjs/test/examples/slide-backgrounds.html +144 -0
- package/docs/themes/docdock/static/revealjs/test/examples/slide-transitions.html +101 -0
- package/docs/themes/docdock/static/revealjs/test/qunit-1.12.0.css +244 -0
- package/docs/themes/docdock/static/revealjs/test/qunit-1.12.0.js +2212 -0
- package/docs/themes/docdock/static/revealjs/test/simple.md +12 -0
- package/docs/themes/docdock/static/revealjs/test/test-markdown-element-attributes.html +134 -0
- package/docs/themes/docdock/static/revealjs/test/test-markdown-element-attributes.js +46 -0
- package/docs/themes/docdock/static/revealjs/test/test-markdown-external.html +36 -0
- package/docs/themes/docdock/static/revealjs/test/test-markdown-external.js +24 -0
- package/docs/themes/docdock/static/revealjs/test/test-markdown-options.html +41 -0
- package/docs/themes/docdock/static/revealjs/test/test-markdown-options.js +26 -0
- package/docs/themes/docdock/static/revealjs/test/test-markdown-slide-attributes.html +128 -0
- package/docs/themes/docdock/static/revealjs/test/test-markdown-slide-attributes.js +47 -0
- package/docs/themes/docdock/static/revealjs/test/test-markdown.html +52 -0
- package/docs/themes/docdock/static/revealjs/test/test-markdown.js +15 -0
- package/docs/themes/docdock/static/revealjs/test/test-pdf.html +83 -0
- package/docs/themes/docdock/static/revealjs/test/test-pdf.js +15 -0
- package/docs/themes/docdock/static/revealjs/test/test.html +86 -0
- package/docs/themes/docdock/static/revealjs/test/test.js +597 -0
- package/docs/themes/docdock/static/scss/flex/article.scss +356 -0
- package/docs/themes/docdock/static/scss/flex/fonts.scss +38 -0
- package/docs/themes/docdock/static/scss/flex/footer.scss +45 -0
- package/docs/themes/docdock/static/scss/flex/header.scss +89 -0
- package/docs/themes/docdock/static/scss/flex/main.scss +164 -0
- package/docs/themes/docdock/static/scss/flex/medias.scss +74 -0
- package/docs/themes/docdock/static/scss/flex/menu.scss +126 -0
- package/docs/themes/docdock/static/scss/flex/shortcode.children.scss +34 -0
- package/docs/themes/docdock/static/scss/flex/shortcode.notice.scss +63 -0
- package/docs/themes/docdock/static/scss/flex/style.scss +14 -0
- package/docs/themes/docdock/static/scss/original/_colours.scss +14 -0
- package/docs/themes/docdock/static/scss/original/_functions.scss +89 -0
- package/docs/themes/docdock/static/scss/original/_variables.scss +137 -0
- package/docs/themes/docdock/static/scss/original/fonts.scss +23 -0
- package/docs/themes/docdock/static/scss/original/main.scss +1233 -0
- package/docs/themes/docdock/static/scss/original/print.scss +29 -0
- package/docs/themes/docdock/static/scss/original/responsive.scss +124 -0
- package/docs/themes/docdock/static/scss/original/shortcodes.scss +32 -0
- package/docs/themes/docdock/static/scss/original/sidebar.scss +276 -0
- package/docs/themes/docdock/static/scss/original/style.scss +16 -0
- package/docs/themes/docdock/static/theme-flex/ribbon.png +0 -0
- package/docs/themes/docdock/static/theme-flex/script.js +277 -0
- package/docs/themes/docdock/static/theme-flex/style.css +728 -0
- package/docs/themes/docdock/static/theme-original/script.js +133 -0
- package/docs/themes/docdock/static/theme-original/style.css +1411 -0
- package/docs/themes/docdock/static/theme-original/variant-blue.css +0 -0
- package/docs/themes/docdock/static/theme-original/variant-gold.css +61 -0
- package/docs/themes/docdock/static/theme-original/variant-gray.css +61 -0
- package/docs/themes/docdock/static/theme-original/variant-green.css +61 -0
- package/docs/themes/docdock/theme.toml +22 -0
- package/lib/binary/components.js +77 -0
- package/lib/binary/downloader.js +170 -0
- package/lib/binary/index.js +11 -0
- package/lib/binary/runner.js +30 -0
- package/lib/interface/cli/Command.js +331 -0
- package/lib/interface/cli/codefresh +24 -0
- package/lib/interface/cli/commad-line-interface.js +90 -0
- package/lib/interface/cli/commands/agent/apply.cmd.js +61 -0
- package/lib/interface/cli/commands/agent/create.cmd.js +39 -0
- package/lib/interface/cli/commands/agent/delete.cmd.js +40 -0
- package/lib/interface/cli/commands/agent/get.cmd.js +44 -0
- package/lib/interface/cli/commands/agent/helper.js +28 -0
- package/lib/interface/cli/commands/agent/install.cmd.js +205 -0
- package/lib/interface/cli/commands/agent/uninstall.cmd.js +92 -0
- package/lib/interface/cli/commands/analyzer/analyze.cmd.js +34 -0
- package/lib/interface/cli/commands/analyzer/analyzer.logic.js +24 -0
- package/lib/interface/cli/commands/annotation/annotation.logic.js +59 -0
- package/lib/interface/cli/commands/annotation/annotation.sdk.spec.js +64 -0
- package/lib/interface/cli/commands/annotation/create.cmd.js +39 -0
- package/lib/interface/cli/commands/annotation/delete.cmd.js +38 -0
- package/lib/interface/cli/commands/annotation/get.cmd.js +42 -0
- package/lib/interface/cli/commands/app-proxy/helper.js +63 -0
- package/lib/interface/cli/commands/app-proxy/install.cmd.js +204 -0
- package/lib/interface/cli/commands/app-proxy/uninstall.cmd.js +175 -0
- package/lib/interface/cli/commands/app-proxy/upgrade.cmd.js +110 -0
- package/lib/interface/cli/commands/audit/download.cmd.js +57 -0
- package/lib/interface/cli/commands/auth/create-context.cmd.js +54 -0
- package/lib/interface/cli/commands/auth/current-context.cmd.js +25 -0
- package/lib/interface/cli/commands/auth/get-contexts.cmd.js +27 -0
- package/lib/interface/cli/commands/auth/use-context.cmd.js +42 -0
- package/lib/interface/cli/commands/board/apply.cmd.js +61 -0
- package/lib/interface/cli/commands/board/board.sdk.spec.js +87 -0
- package/lib/interface/cli/commands/board/create.cmd.js +33 -0
- package/lib/interface/cli/commands/board/delete.cmd.js +42 -0
- package/lib/interface/cli/commands/board/get.cmd.js +62 -0
- package/lib/interface/cli/commands/cli-config/cli-config.cmd.js +41 -0
- package/lib/interface/cli/commands/cli-config/ops/get.cmd.js +52 -0
- package/lib/interface/cli/commands/cli-config/ops/help.cmd.js +36 -0
- package/lib/interface/cli/commands/cli-config/ops/profile.cmd.js +49 -0
- package/lib/interface/cli/commands/cli-config/ops/set.cmd.js +65 -0
- package/lib/interface/cli/commands/cluster/cluster.sdk.spec.js +61 -0
- package/lib/interface/cli/commands/cluster/create.cmd.js +85 -0
- package/lib/interface/cli/commands/cluster/delete.cmd.js +39 -0
- package/lib/interface/cli/commands/cluster/get.cmd.js +30 -0
- package/lib/interface/cli/commands/completion/bash.sh.hbs +27 -0
- package/lib/interface/cli/commands/completion/completion.cmd.js +66 -0
- package/lib/interface/cli/commands/completion/zsh.sh.hbs +20 -0
- package/lib/interface/cli/commands/components/update.cmd.js +30 -0
- package/lib/interface/cli/commands/composition/composition.sdk.spec.js +95 -0
- package/lib/interface/cli/commands/composition/create.cmd.js +67 -0
- package/lib/interface/cli/commands/composition/create.completion.js +15 -0
- package/lib/interface/cli/commands/composition/delete.cmd.js +40 -0
- package/lib/interface/cli/commands/composition/get.cmd.js +43 -0
- package/lib/interface/cli/commands/composition/replace.cmd.js +76 -0
- package/lib/interface/cli/commands/composition/replace.completion.js +15 -0
- package/lib/interface/cli/commands/context/apply.cmd.js +51 -0
- package/lib/interface/cli/commands/context/context.sdk.spec.js +158 -0
- package/lib/interface/cli/commands/context/create/createConfig.cmd.js +54 -0
- package/lib/interface/cli/commands/context/create/createSecret.cmd.js +54 -0
- package/lib/interface/cli/commands/context/create/createSecretYaml.cmd.js +53 -0
- package/lib/interface/cli/commands/context/create/createYaml.cmd.js +53 -0
- package/lib/interface/cli/commands/context/create/git/base.cmd.js +38 -0
- package/lib/interface/cli/commands/context/create/git/types/bitbucket.cmd.js +64 -0
- package/lib/interface/cli/commands/context/create/git/types/github.cmd.js +79 -0
- package/lib/interface/cli/commands/context/create/git/types/gitlab.cmd.js +71 -0
- package/lib/interface/cli/commands/context/create/git/types/stash.cmd.js +69 -0
- package/lib/interface/cli/commands/context/create/helm-repo/base.cmd.js +24 -0
- package/lib/interface/cli/commands/context/create/helm-repo/types/http.cmd.js +60 -0
- package/lib/interface/cli/commands/context/create/helm-repo/types/s3.cmd.js +97 -0
- package/lib/interface/cli/commands/context/create/secret-store/base.cmd.js +33 -0
- package/lib/interface/cli/commands/context/create/secret-store/types/hashicorp-vault.cmd.js +141 -0
- package/lib/interface/cli/commands/context/create/secret-store/types/kubernetes-runtime.cmd.js +67 -0
- package/lib/interface/cli/commands/context/create/secret-store/types/kubernetes.cmd.js +67 -0
- package/lib/interface/cli/commands/context/create.cmd.js +23 -0
- package/lib/interface/cli/commands/context/delete.cmd.js +39 -0
- package/lib/interface/cli/commands/context/get.cmd.js +68 -0
- package/lib/interface/cli/commands/environment/delete.cmd.js +28 -0
- package/lib/interface/cli/commands/environment/environment.sdk.spec.js +40 -0
- package/lib/interface/cli/commands/environment/get.cmd.js +43 -0
- package/lib/interface/cli/commands/gitops/argocd/install.js +9 -0
- package/lib/interface/cli/commands/gitops/argocd/uninstall.js +11 -0
- package/lib/interface/cli/commands/gitops/argocd/upgrade.js +9 -0
- package/lib/interface/cli/commands/gitops/codefresh/install.js +50 -0
- package/lib/interface/cli/commands/gitops/codefresh/uninstall.js +14 -0
- package/lib/interface/cli/commands/gitops/codefresh/upgrade.js +9 -0
- package/lib/interface/cli/commands/gitops/common/install.js +62 -0
- package/lib/interface/cli/commands/gitops/common/uninstall.js +39 -0
- package/lib/interface/cli/commands/gitops/common/upgrade.js +45 -0
- package/lib/interface/cli/commands/gitops/install.cmd.js +111 -0
- package/lib/interface/cli/commands/gitops/install.spec.js +77 -0
- package/lib/interface/cli/commands/gitops/uninstall.cmd.js +56 -0
- package/lib/interface/cli/commands/gitops/upgrade.cmd.js +56 -0
- package/lib/interface/cli/commands/helm/chart/helm-charts.sdk.spec.js +65 -0
- package/lib/interface/cli/commands/helm/chart/install-chart.cmd.js +103 -0
- package/lib/interface/cli/commands/helm/chart/promote-chart.cmd.js +123 -0
- package/lib/interface/cli/commands/helm/helm.sdk.spec.js +81 -0
- package/lib/interface/cli/commands/helm/release/delete-release.cmd.js +102 -0
- package/lib/interface/cli/commands/helm/release/helm-releases.sdk.spec.js +53 -0
- package/lib/interface/cli/commands/helm/release/rollback-release.cmd.js +87 -0
- package/lib/interface/cli/commands/helm/release/test-release.cmd.js +93 -0
- package/lib/interface/cli/commands/helm/release/util.js +16 -0
- package/lib/interface/cli/commands/helm/repo/apply.cmd.js +54 -0
- package/lib/interface/cli/commands/helm/repo/create.cmd.js +46 -0
- package/lib/interface/cli/commands/helm/repo/delete.cmd.js +37 -0
- package/lib/interface/cli/commands/helm/repo/get.cmd.js +61 -0
- package/lib/interface/cli/commands/helm/repo/helm-repo.sdk.spec.js +58 -0
- package/lib/interface/cli/commands/helm/set-helm-config.cmd.js +93 -0
- package/lib/interface/cli/commands/hybrid/InstallationPlan.js +216 -0
- package/lib/interface/cli/commands/hybrid/delete.cmd.js +336 -0
- package/lib/interface/cli/commands/hybrid/execute-test-pipeline.cmd.js +37 -0
- package/lib/interface/cli/commands/hybrid/helper.js +1122 -0
- package/lib/interface/cli/commands/hybrid/info.cmd.js +27 -0
- package/lib/interface/cli/commands/hybrid/init.cmd.js +958 -0
- package/lib/interface/cli/commands/hybrid/installation-process.js +51 -0
- package/lib/interface/cli/commands/hybrid/key-helper.js +82 -0
- package/lib/interface/cli/commands/hybrid/migration.js +192 -0
- package/lib/interface/cli/commands/hybrid/pipeline-helper.js +71 -0
- package/lib/interface/cli/commands/hybrid/upgrade.cmd.js +195 -0
- package/lib/interface/cli/commands/image/annotate.cmd.js +61 -0
- package/lib/interface/cli/commands/image/get.cmd.js +122 -0
- package/lib/interface/cli/commands/image/image.sdk.spec.js +134 -0
- package/lib/interface/cli/commands/image/tag.cmd.js +50 -0
- package/lib/interface/cli/commands/image/untag.cmd.js +47 -0
- package/lib/interface/cli/commands/imagePullSecret/generate.cmd.js +49 -0
- package/lib/interface/cli/commands/imagePullSecret/imagePullSecret.sdk.spec.js +21 -0
- package/lib/interface/cli/commands/monitor/install.cmd.js +160 -0
- package/lib/interface/cli/commands/monitor/uninstall.cmd.js +78 -0
- package/lib/interface/cli/commands/offline-logs/base.cmd.js +33 -0
- package/lib/interface/cli/commands/offline-logs/ensure-index.cmd.js +44 -0
- package/lib/interface/cli/commands/offline-logs/ensure-index.spec.js +76 -0
- package/lib/interface/cli/commands/offline-logs/offload-to-collection.cmd.js +188 -0
- package/lib/interface/cli/commands/offline-logs/offload-to-file.cmd.js +175 -0
- package/lib/interface/cli/commands/offline-logs/offload-to-file.spec.js +59 -0
- package/lib/interface/cli/commands/offline-logs/utils.js +159 -0
- package/lib/interface/cli/commands/pipeline/delete.cmd.js +31 -0
- package/lib/interface/cli/commands/pipeline/get.cmd.js +125 -0
- package/lib/interface/cli/commands/pipeline/get.completion.js +14 -0
- package/lib/interface/cli/commands/pipeline/pipeline.sdk.spec.js +137 -0
- package/lib/interface/cli/commands/pipeline/run.base.js +153 -0
- package/lib/interface/cli/commands/pipeline/run.cf.js +58 -0
- package/lib/interface/cli/commands/pipeline/run.cmd.js +165 -0
- package/lib/interface/cli/commands/pipeline/run.completion.js +15 -0
- package/lib/interface/cli/commands/pipeline/run.local.js +200 -0
- package/lib/interface/cli/commands/project/apply.cmd.js +92 -0
- package/lib/interface/cli/commands/project/create.cmd.js +70 -0
- package/lib/interface/cli/commands/project/delete.cmd.js +39 -0
- package/lib/interface/cli/commands/project/get.cmd.js +67 -0
- package/lib/interface/cli/commands/project/project.sdk.spec.js +111 -0
- package/lib/interface/cli/commands/registry/create/create.standard.cmd.js +53 -0
- package/lib/interface/cli/commands/registry/create.cmd.js +20 -0
- package/lib/interface/cli/commands/registry/delete.cmd.js +29 -0
- package/lib/interface/cli/commands/registry/get.cmd.js +30 -0
- package/lib/interface/cli/commands/registry/registry.sdk.spec.js +43 -0
- package/lib/interface/cli/commands/repo/add.cmd.js +90 -0
- package/lib/interface/cli/commands/repo/delete.cmd.js +43 -0
- package/lib/interface/cli/commands/repo/get.cmd.js +101 -0
- package/lib/interface/cli/commands/repo/repo.sdk.spec.js +94 -0
- package/lib/interface/cli/commands/root/add.cmd.js +18 -0
- package/lib/interface/cli/commands/root/annotate.cmd.js +17 -0
- package/lib/interface/cli/commands/root/apply.cmd.js +38 -0
- package/lib/interface/cli/commands/root/apply.completion.js +15 -0
- package/lib/interface/cli/commands/root/auth.cmd.js +31 -0
- package/lib/interface/cli/commands/root/components.cmd.js +17 -0
- package/lib/interface/cli/commands/root/create.cmd.js +42 -0
- package/lib/interface/cli/commands/root/create.completion.js +15 -0
- package/lib/interface/cli/commands/root/delete.cmd.js +52 -0
- package/lib/interface/cli/commands/root/delete.completion.js +15 -0
- package/lib/interface/cli/commands/root/diff.cmd.js +38 -0
- package/lib/interface/cli/commands/root/diff.completion.js +15 -0
- package/lib/interface/cli/commands/root/download.cmd.js +18 -0
- package/lib/interface/cli/commands/root/generate.cmd.js +18 -0
- package/lib/interface/cli/commands/root/get.cmd.js +72 -0
- package/lib/interface/cli/commands/root/get.completion.js +19 -0
- package/lib/interface/cli/commands/root/install.cmd.js +17 -0
- package/lib/interface/cli/commands/root/replace.cmd.js +72 -0
- package/lib/interface/cli/commands/root/replace.completion.js +15 -0
- package/lib/interface/cli/commands/root/root.sdk.spec.js +197 -0
- package/lib/interface/cli/commands/root/runner.cmd.js +18 -0
- package/lib/interface/cli/commands/root/synchronize.cmd.js +17 -0
- package/lib/interface/cli/commands/root/uninstall.cmd.js +17 -0
- package/lib/interface/cli/commands/root/upgrade.cmd.js +38 -0
- package/lib/interface/cli/commands/root/validate.cmd.js +119 -0
- package/lib/interface/cli/commands/root/validate.completion.js +10 -0
- package/lib/interface/cli/commands/root/version.cmd.js +48 -0
- package/lib/interface/cli/commands/runtimeEnvironments/apply.cmd.js +111 -0
- package/lib/interface/cli/commands/runtimeEnvironments/attach.cmd.js +161 -0
- package/lib/interface/cli/commands/runtimeEnvironments/create.cmd.js +23 -0
- package/lib/interface/cli/commands/runtimeEnvironments/delete.cmd.js +35 -0
- package/lib/interface/cli/commands/runtimeEnvironments/diff.cmd.js +64 -0
- package/lib/interface/cli/commands/runtimeEnvironments/get.cmd.js +76 -0
- package/lib/interface/cli/commands/runtimeEnvironments/install.cmd.js +312 -0
- package/lib/interface/cli/commands/runtimeEnvironments/runtimeEnvironments.sdk.spec.js +61 -0
- package/lib/interface/cli/commands/runtimeEnvironments/uninstall.cmd.js +149 -0
- package/lib/interface/cli/commands/section/apply.cmd.js +85 -0
- package/lib/interface/cli/commands/section/create.cmd.js +69 -0
- package/lib/interface/cli/commands/section/delete.cmd.js +61 -0
- package/lib/interface/cli/commands/section/get.cmd.js +79 -0
- package/lib/interface/cli/commands/section/section.sdk.spec.js +143 -0
- package/lib/interface/cli/commands/step/delete.cmd.js +30 -0
- package/lib/interface/cli/commands/step/get.cmd.js +131 -0
- package/lib/interface/cli/commands/step/get.completion.js +14 -0
- package/lib/interface/cli/commands/step/step.sdk.spec.js +67 -0
- package/lib/interface/cli/commands/systemRuntimeEnvironments/apply.cmd.js +69 -0
- package/lib/interface/cli/commands/systemRuntimeEnvironments/delete.cmd.js +44 -0
- package/lib/interface/cli/commands/systemRuntimeEnvironments/diff.cmd.js +74 -0
- package/lib/interface/cli/commands/systemRuntimeEnvironments/get.cmd.js +103 -0
- package/lib/interface/cli/commands/systemRuntimeEnvironments/systemRuntimeEnvironments.sdk.spec.js +128 -0
- package/lib/interface/cli/commands/team/add.user.cmd.js +39 -0
- package/lib/interface/cli/commands/team/create.cmd.js +53 -0
- package/lib/interface/cli/commands/team/get.cmd.js +30 -0
- package/lib/interface/cli/commands/team/remove.user.cmd.js +39 -0
- package/lib/interface/cli/commands/team/synchronize.cmd.js +76 -0
- package/lib/interface/cli/commands/team/team.sdk.spec.js +65 -0
- package/lib/interface/cli/commands/tokens/apply.cmd.js +50 -0
- package/lib/interface/cli/commands/tokens/create.cmd.js +67 -0
- package/lib/interface/cli/commands/tokens/delete.cmd.js +43 -0
- package/lib/interface/cli/commands/tokens/get.cmd.js +38 -0
- package/lib/interface/cli/commands/tokens/tokens.sdk.spec.js +43 -0
- package/lib/interface/cli/commands/trigger/create.cmd.js +44 -0
- package/lib/interface/cli/commands/trigger/delete.cmd.js +39 -0
- package/lib/interface/cli/commands/trigger/event/create.cmd.js +60 -0
- package/lib/interface/cli/commands/trigger/event/delete.cmd.js +34 -0
- package/lib/interface/cli/commands/trigger/event/get.cmd.js +59 -0
- package/lib/interface/cli/commands/trigger/event/trigger-event.sdk.spec.js +51 -0
- package/lib/interface/cli/commands/trigger/get.cmd.js +47 -0
- package/lib/interface/cli/commands/trigger/trigger.sdk.spec.js +73 -0
- package/lib/interface/cli/commands/trigger/type/get.cmd.js +54 -0
- package/lib/interface/cli/commands/trigger/type/trigger-type.sdk.spec.js +33 -0
- package/lib/interface/cli/commands/workflow/approve.cmd.js +31 -0
- package/lib/interface/cli/commands/workflow/approve.cmd.spec.js +47 -0
- package/lib/interface/cli/commands/workflow/deny.cmd.js +31 -0
- package/lib/interface/cli/commands/workflow/deny.cmd.spec.js +47 -0
- package/lib/interface/cli/commands/workflow/get.cmd.js +161 -0
- package/lib/interface/cli/commands/workflow/logs.cmd.js +38 -0
- package/lib/interface/cli/commands/workflow/restart.cmd.js +37 -0
- package/lib/interface/cli/commands/workflow/terminate.cmd.js +31 -0
- package/lib/interface/cli/commands/workflow/wait.cmd.js +77 -0
- package/lib/interface/cli/commands/workflow/workflow-data-item/create.cmd.js +44 -0
- package/lib/interface/cli/commands/workflow/workflow-data-item/get.cmd.js +72 -0
- package/lib/interface/cli/commands/workflow/workflow.sdk.spec.js +123 -0
- package/lib/interface/cli/completion/completion.spec.js +313 -0
- package/lib/interface/cli/completion/generate +102 -0
- package/lib/interface/cli/completion/helpers.js +90 -0
- package/lib/interface/cli/completion/index.js +89 -0
- package/lib/interface/cli/completion/tree.json +1 -0
- package/lib/interface/cli/defaults.js +18 -0
- package/lib/interface/cli/helpers/auth.js +62 -0
- package/lib/interface/cli/helpers/cli-config.js +110 -0
- package/lib/interface/cli/helpers/entitiesManifests.js +60 -0
- package/lib/interface/cli/helpers/general.js +235 -0
- package/lib/interface/cli/helpers/helm.js +51 -0
- package/lib/interface/cli/helpers/helpers.sdk.spec.js +201 -0
- package/lib/interface/cli/helpers/helpers.unit.spec.js +105 -0
- package/lib/interface/cli/helpers/image.js +66 -0
- package/lib/interface/cli/helpers/kubernetes.js +61 -0
- package/lib/interface/cli/helpers/logs.js +99 -0
- package/lib/interface/cli/helpers/progressEvents.js +25 -0
- package/lib/interface/cli/helpers/sys-re.js +76 -0
- package/lib/interface/cli/helpers/validation.js +92 -0
- package/lib/logic/cli-config/Manager.js +187 -0
- package/lib/logic/cli-config/Model.js +82 -0
- package/lib/logic/cli-config/errors/MultiplePropertiesError.js +8 -0
- package/lib/logic/cli-config/errors/NoPropertyError.js +8 -0
- package/lib/logic/cli-config/errors/NotFullPropertyError.js +8 -0
- package/lib/logic/cli-config/errors/PipelineValidationError.js +12 -0
- package/lib/logic/cli-config/errors/SchemaValidationError.js +14 -0
- package/lib/logic/cli-config/errors/awaitTo.js +16 -0
- package/lib/logic/cli-config/errors/helpers.js +23 -0
- package/lib/logic/cli-config/errors/index.js +13 -0
- package/lib/logic/cli-config/manager.spec.js +152 -0
- package/lib/logic/cli-config/schema.json +61 -0
- package/lib/logic/entities/Agent.js +52 -0
- package/lib/logic/entities/Annotation.js +24 -0
- package/lib/logic/entities/Board.js +22 -0
- package/lib/logic/entities/Cluster.js +22 -0
- package/lib/logic/entities/CodefreshRepo.js +22 -0
- package/lib/logic/entities/Composition.js +22 -0
- package/lib/logic/entities/Context.js +31 -0
- package/lib/logic/entities/Entity.js +48 -0
- package/lib/logic/entities/Environment.js +38 -0
- package/lib/logic/entities/GitRepo.js +21 -0
- package/lib/logic/entities/HelmRepo.js +23 -0
- package/lib/logic/entities/Image.js +13 -0
- package/lib/logic/entities/Pipeline.js +22 -0
- package/lib/logic/entities/Project.js +25 -0
- package/lib/logic/entities/Registry.js +35 -0
- package/lib/logic/entities/RuntimeEnvironments.js +30 -0
- package/lib/logic/entities/Section.js +23 -0
- package/lib/logic/entities/StepType.js +27 -0
- package/lib/logic/entities/StepTypeVersion.js +19 -0
- package/lib/logic/entities/Team.js +36 -0
- package/lib/logic/entities/Token.js +25 -0
- package/lib/logic/entities/Trigger.js +21 -0
- package/lib/logic/entities/TriggerEvent.js +28 -0
- package/lib/logic/entities/TriggerType.js +25 -0
- package/lib/logic/entities/Workflow.js +63 -0
- package/lib/logic/entities/WorkflowDataItem.js +48 -0
- package/lib/logic/index.js +7 -0
- package/lib/logic/sdk/index.js +5 -0
- package/lib/output/Formatter.js +42 -0
- package/lib/output/Output.js +88 -0
- package/lib/output/Style.js +96 -0
- package/lib/output/__mocks__/Output.js +8 -0
- package/lib/output/formatters/Annotations.formatter.js +7 -0
- package/lib/output/formatters/Board.formatter.js +7 -0
- package/lib/output/formatters/CodefreshRepo.formatter.js +7 -0
- package/lib/output/formatters/Composition.formatter.js +8 -0
- package/lib/output/formatters/Environment.formatter.js +17 -0
- package/lib/output/formatters/GitRepo.formatter.js +7 -0
- package/lib/output/formatters/HelmRepo.formatter.js +9 -0
- package/lib/output/formatters/Image.formatter.js +12 -0
- package/lib/output/formatters/Pipeline.formatter.js +8 -0
- package/lib/output/formatters/Project.formatter.js +10 -0
- package/lib/output/formatters/Registry.formatter.js +7 -0
- package/lib/output/formatters/Section.formatter.js +8 -0
- package/lib/output/formatters/StepType.formatter.js +8 -0
- package/lib/output/formatters/Team.formatter.js +13 -0
- package/lib/output/formatters/Token.formatter.js +11 -0
- package/lib/output/formatters/TriggerEvent.formatter.js +12 -0
- package/lib/output/formatters/TriggerType.formatter.js +12 -0
- package/lib/output/formatters/Workflow.formatter.js +28 -0
- package/lib/output/formatters/index.js +38 -0
- package/lib/output/types/id.output.js +16 -0
- package/lib/output/types/json.output.js +22 -0
- package/lib/output/types/name.output.js +16 -0
- package/lib/output/types/table.output.js +107 -0
- package/lib/output/types/table.output.spec.js +93 -0
- package/lib/output/types/yaml.output.js +30 -0
- package/openapi.json +8645 -0
- package/package.json +105 -0
- package/run-check-version.js +3 -0
- package/test-setup.js +34 -0
- package/yarn.lock +6124 -0
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
/* eslint-disable max-len */
|
|
2
|
+
const Command = require('../../Command');
|
|
3
|
+
const installRoot = require('../root/install.cmd');
|
|
4
|
+
const { sdk } = require('../../../../logic');
|
|
5
|
+
const installRuntimeCmd = require('../runtimeEnvironments/install.cmd');
|
|
6
|
+
const { getKubeContext } = require('../../helpers/kubernetes');
|
|
7
|
+
const ProgressEvents = require('../../helpers/progressEvents');
|
|
8
|
+
const cliProgress = require('cli-progress');
|
|
9
|
+
const colors = require('colors');
|
|
10
|
+
const { getNewAgentName } = require('./helper');
|
|
11
|
+
const { DefaultLogFormatter } = require('./../hybrid/helper');
|
|
12
|
+
|
|
13
|
+
const defaultNamespace = 'codefresh';
|
|
14
|
+
|
|
15
|
+
const installAgentCmd = new Command({
|
|
16
|
+
root: false,
|
|
17
|
+
parent: installRoot,
|
|
18
|
+
command: 'agent',
|
|
19
|
+
description: 'Install and create an agent on kubernetes cluster',
|
|
20
|
+
webDocs: {
|
|
21
|
+
category: 'Agents',
|
|
22
|
+
title: 'Install',
|
|
23
|
+
weight: 100,
|
|
24
|
+
},
|
|
25
|
+
builder: yargs => yargs
|
|
26
|
+
.env('CF_ARG_') // this means that every process.env.CF_ARG_* will be passed to argv
|
|
27
|
+
.option('name', {
|
|
28
|
+
describe: 'Agent\'s name to be created if token is not provided',
|
|
29
|
+
})
|
|
30
|
+
.option('token', {
|
|
31
|
+
describe: 'Agent\'s token',
|
|
32
|
+
})
|
|
33
|
+
.option('kube-context-name', {
|
|
34
|
+
describe: 'Name of the kubernetes context on which runner should be installed [$CF_ARG_KUBE_CONTEXT_NAME]',
|
|
35
|
+
})
|
|
36
|
+
.option('kube-node-selector', {
|
|
37
|
+
describe: 'The kubernetes node selector "key=value" to be used by runner build resources (default is no node selector) (string)',
|
|
38
|
+
})
|
|
39
|
+
.option('dry-run', {
|
|
40
|
+
describe: 'Set to true to simulate installation',
|
|
41
|
+
})
|
|
42
|
+
.option('in-cluster', {
|
|
43
|
+
describe: 'Set flag if runner is been installed from inside a cluster',
|
|
44
|
+
})
|
|
45
|
+
.option('kube-namespace', {
|
|
46
|
+
describe: 'Name of the namespace on which runner should be installed [$CF_ARG_KUBE_NAMESPACE]',
|
|
47
|
+
})
|
|
48
|
+
.option('tolerations', {
|
|
49
|
+
describe: 'The kubernetes tolerations as path to a JSON file to be used by runner resources (default is no tolerations) (string)',
|
|
50
|
+
})
|
|
51
|
+
.option('kube-config-path', {
|
|
52
|
+
describe: 'Path to kubeconfig file (default is $HOME/.kube/config)',
|
|
53
|
+
})
|
|
54
|
+
.option('skip-version-check', {
|
|
55
|
+
describe: 'Do not compare current runner\'s version with latest',
|
|
56
|
+
})
|
|
57
|
+
.option('install-runtime', {
|
|
58
|
+
describe: 'Install and attach runtime on the same namespace as the agent (default is false)',
|
|
59
|
+
})
|
|
60
|
+
.option('make-default-runtime', {
|
|
61
|
+
describe: 'should all pipelines run on the hybrid runtime (default is false)',
|
|
62
|
+
})
|
|
63
|
+
.option('storage-class-name', {
|
|
64
|
+
describe: 'Set a name of your custom storage class, note: this will not install volume provisioning components',
|
|
65
|
+
})
|
|
66
|
+
.option('agent-kube-context-name', {
|
|
67
|
+
describe: 'Agent kubernetes context (on attach)',
|
|
68
|
+
})
|
|
69
|
+
.option('agent-kube-namespace', {
|
|
70
|
+
describe: 'Agent\'s namespace (on attach)',
|
|
71
|
+
})
|
|
72
|
+
.option('docker-registry', {
|
|
73
|
+
describe: 'The prefix for the container registry that will be used for pulling the required components images. Example: --docker-registry="docker.io"',
|
|
74
|
+
type: 'string',
|
|
75
|
+
})
|
|
76
|
+
.option('verbose', {
|
|
77
|
+
describe: 'Print logs',
|
|
78
|
+
}),
|
|
79
|
+
handler: async (argv) => {
|
|
80
|
+
let {
|
|
81
|
+
name, token,
|
|
82
|
+
} = argv;
|
|
83
|
+
const {
|
|
84
|
+
'runtime-name': reName,
|
|
85
|
+
'skip-re-creation': skipRuntimeCreation,
|
|
86
|
+
'kube-node-selector': kubeNodeSelector,
|
|
87
|
+
'build-node-selector': buildNodeSelector,
|
|
88
|
+
'dry-run': dryRun,
|
|
89
|
+
'in-cluster': inCluster,
|
|
90
|
+
tolerations,
|
|
91
|
+
'kube-config-path': kubeConfigPath,
|
|
92
|
+
'skip-version-check': skipVersionCheck,
|
|
93
|
+
'install-runtime': installRuntime,
|
|
94
|
+
'make-default-runtime': shouldMakeDefaultRe,
|
|
95
|
+
'storage-class-name': storageClassName,
|
|
96
|
+
verbose,
|
|
97
|
+
terminateProcess,
|
|
98
|
+
'set-value': setValue,
|
|
99
|
+
'set-file': setFile,
|
|
100
|
+
'agent-kube-context-name': agentKubeContextName,
|
|
101
|
+
'agent-kube-namespace': agentKubeNamespace,
|
|
102
|
+
'docker-registry': dockerRegistry,
|
|
103
|
+
envVars,
|
|
104
|
+
} = argv;
|
|
105
|
+
let agent;
|
|
106
|
+
let {
|
|
107
|
+
'kube-context-name': kubeContextName,
|
|
108
|
+
'kube-namespace': kubeNamespace,
|
|
109
|
+
} = argv;
|
|
110
|
+
if (!kubeContextName) {
|
|
111
|
+
kubeContextName = getKubeContext(kubeConfigPath);
|
|
112
|
+
}
|
|
113
|
+
if (!kubeNamespace) {
|
|
114
|
+
kubeNamespace = defaultNamespace;
|
|
115
|
+
}
|
|
116
|
+
if (installRuntime && !agentKubeNamespace) {
|
|
117
|
+
throw new Error('agent-kube-namespace is a mandatory parameter when installing runtime');
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
if (!token) { // Create an agent if not provided
|
|
121
|
+
name = name || await getNewAgentName(kubeContextName, kubeNamespace);
|
|
122
|
+
agent = await sdk.agents.create({ name });
|
|
123
|
+
// eslint-disable-next-line prefer-destructuring
|
|
124
|
+
token = agent.token;
|
|
125
|
+
console.log(`A Codefresh Runner with the name: ${colors.cyan(name)} has been created.`);
|
|
126
|
+
} else {
|
|
127
|
+
// take the agent id from the token
|
|
128
|
+
const apiKey = token.split('.')[0];
|
|
129
|
+
const agentData = await sdk.tokens.getById({ id: apiKey });
|
|
130
|
+
if (!agentData) {
|
|
131
|
+
throw new Error('token is not valid');
|
|
132
|
+
}
|
|
133
|
+
const { subject } = agentData;
|
|
134
|
+
|
|
135
|
+
if (subject.type !== 'agent') {
|
|
136
|
+
throw new Error('token is not assosicated with a runner');
|
|
137
|
+
}
|
|
138
|
+
const agentId = agentData.subject.ref;
|
|
139
|
+
const data = await sdk.agents.get({ agentId });
|
|
140
|
+
// eslint-disable-next-line prefer-destructuring
|
|
141
|
+
name = data.name;
|
|
142
|
+
}
|
|
143
|
+
const apiHost = sdk.config.context.url;
|
|
144
|
+
const events = new ProgressEvents();
|
|
145
|
+
const format = 'downloading [{bar}] {percentage}% | {value}/{total}';
|
|
146
|
+
const progressBar = new cliProgress.SingleBar({ stopOnComplete: true, format }, cliProgress.Presets.shades_classic);
|
|
147
|
+
let totalSize;
|
|
148
|
+
events.onStart((size) => {
|
|
149
|
+
console.log('Downloading Codefresh Runner installer \n');
|
|
150
|
+
progressBar.start(size, 0);
|
|
151
|
+
totalSize = size;
|
|
152
|
+
});
|
|
153
|
+
events.onProgress((progress) => {
|
|
154
|
+
progressBar.update(progress);
|
|
155
|
+
if (progress >= totalSize) {
|
|
156
|
+
console.log('\n');
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
const agentInstallStatusCode = await sdk.agents.install({
|
|
160
|
+
apiHost,
|
|
161
|
+
kubeContextName,
|
|
162
|
+
kubeNamespace,
|
|
163
|
+
token,
|
|
164
|
+
dryRun,
|
|
165
|
+
inCluster,
|
|
166
|
+
kubeNodeSelector,
|
|
167
|
+
dockerRegistry,
|
|
168
|
+
tolerations,
|
|
169
|
+
kubeConfigPath,
|
|
170
|
+
skipVersionCheck,
|
|
171
|
+
verbose,
|
|
172
|
+
agentId: name,
|
|
173
|
+
terminateProcess,
|
|
174
|
+
events,
|
|
175
|
+
logFormatting: DefaultLogFormatter,
|
|
176
|
+
envVars,
|
|
177
|
+
});
|
|
178
|
+
if (agentInstallStatusCode !== 0) {
|
|
179
|
+
throw new Error(`\nRunner installation failed with code ${agentInstallStatusCode}`);
|
|
180
|
+
}
|
|
181
|
+
if (installRuntime) {
|
|
182
|
+
return installRuntimeCmd.handler({
|
|
183
|
+
'runtime-name': reName,
|
|
184
|
+
'skip-re-creation': skipRuntimeCreation,
|
|
185
|
+
'runtime-kube-context-name': kubeContextName,
|
|
186
|
+
'runtime-kube-namespace': kubeNamespace,
|
|
187
|
+
'agent-name': name,
|
|
188
|
+
'runtime-kube-config-path': kubeConfigPath,
|
|
189
|
+
'attach-runtime': true,
|
|
190
|
+
'restart-agent': true,
|
|
191
|
+
'make-default-runtime': shouldMakeDefaultRe,
|
|
192
|
+
'kube-node-selector': buildNodeSelector,
|
|
193
|
+
'storage-class-name': storageClassName,
|
|
194
|
+
'set-value': setValue,
|
|
195
|
+
'set-file': setFile,
|
|
196
|
+
'agent-kube-namespace': agentKubeNamespace,
|
|
197
|
+
'agent-kube-context-name': agentKubeContextName,
|
|
198
|
+
verbose,
|
|
199
|
+
terminateProcess,
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
});
|
|
204
|
+
|
|
205
|
+
module.exports = installAgentCmd;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/* eslint-disable max-len */
|
|
2
|
+
const Command = require('../../Command');
|
|
3
|
+
const deleteAgent = require('../agent/delete.cmd');
|
|
4
|
+
const unInstallRoot = require('../root/uninstall.cmd');
|
|
5
|
+
const { sdk } = require('../../../../logic');
|
|
6
|
+
const { getKubeContext } = require('../../helpers/kubernetes');
|
|
7
|
+
const ProgressEvents = require('../../helpers/progressEvents');
|
|
8
|
+
const cliProgress = require('cli-progress');
|
|
9
|
+
const { DefaultLogFormatter } = require('./../hybrid/helper');
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
const unInstallAgentCmd = new Command({
|
|
13
|
+
root: false,
|
|
14
|
+
parent: unInstallRoot,
|
|
15
|
+
command: 'agent',
|
|
16
|
+
description: 'Uninstall an agent on kubernetes cluster',
|
|
17
|
+
webDocs: {
|
|
18
|
+
category: 'Agents',
|
|
19
|
+
title: 'Uninstall',
|
|
20
|
+
weight: 100,
|
|
21
|
+
},
|
|
22
|
+
builder: yargs => yargs
|
|
23
|
+
.env('CF_ARG_') // this means that every process.env.CF_ARG_* will be passed to argv
|
|
24
|
+
.option('name', {
|
|
25
|
+
describe: 'Agent\'s name to be uninstalled',
|
|
26
|
+
})
|
|
27
|
+
.option('kube-context-name', {
|
|
28
|
+
describe: 'Name of the kubernetes context on which venona should be uninstalled [$CF_ARG_KUBE_CONTEXT_NAME]',
|
|
29
|
+
})
|
|
30
|
+
.option('kube-namespace', {
|
|
31
|
+
describe: 'Name of the namespace on which venona should be uninstalled [$CF_ARG_KUBE_NAMESPACE]',
|
|
32
|
+
})
|
|
33
|
+
.option('kube-config-path', {
|
|
34
|
+
describe: 'Path to kubeconfig file (default is $HOME/.kube/config)',
|
|
35
|
+
})
|
|
36
|
+
.option('verbose', {
|
|
37
|
+
describe: 'Print logs',
|
|
38
|
+
}),
|
|
39
|
+
handler: async (argv) => {
|
|
40
|
+
const {
|
|
41
|
+
name,
|
|
42
|
+
'kube-namespace': kubeNamespace,
|
|
43
|
+
'kube-config-path': kubeConfigPath,
|
|
44
|
+
terminateProcess,
|
|
45
|
+
|
|
46
|
+
} = argv;
|
|
47
|
+
|
|
48
|
+
let { 'kube-context-name': kubeContextName } = argv;
|
|
49
|
+
|
|
50
|
+
if (!kubeContextName) {
|
|
51
|
+
kubeContextName = getKubeContext(kubeConfigPath);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
if (!name) {
|
|
55
|
+
throw new Error('Name is a mandatory parameter');
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
const events = new ProgressEvents();
|
|
59
|
+
const format = 'downloading [{bar}] {percentage}% | {value}/{total}';
|
|
60
|
+
const progressBar = new cliProgress.SingleBar({ stopOnComplete: true, format }, cliProgress.Presets.shades_classic);
|
|
61
|
+
let totalSize;
|
|
62
|
+
events.onStart((size) => {
|
|
63
|
+
progressBar.start(size, 0);
|
|
64
|
+
totalSize = size;
|
|
65
|
+
});
|
|
66
|
+
events.onProgress((progress) => {
|
|
67
|
+
progressBar.update(progress);
|
|
68
|
+
if (progress >= totalSize) {
|
|
69
|
+
console.log('\n');
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
const exitCode = await sdk.agents.unInstall({
|
|
75
|
+
kubeContextName,
|
|
76
|
+
kubeNamespace,
|
|
77
|
+
kubeConfigPath,
|
|
78
|
+
terminateProcess: false,
|
|
79
|
+
events,
|
|
80
|
+
logFormatting: DefaultLogFormatter,
|
|
81
|
+
});
|
|
82
|
+
if (exitCode === 0) {
|
|
83
|
+
console.log('Agent uninstalled successfully');
|
|
84
|
+
await deleteAgent.handler({ name, id: name });
|
|
85
|
+
}
|
|
86
|
+
if (terminateProcess !== false) {
|
|
87
|
+
process.exit(0);
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
});
|
|
91
|
+
|
|
92
|
+
module.exports = unInstallAgentCmd;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
const _ = require('lodash');
|
|
2
|
+
const Command = require('../../Command');
|
|
3
|
+
const Logic = require('./analyzer.logic');
|
|
4
|
+
|
|
5
|
+
const command = new Command({
|
|
6
|
+
root: true,
|
|
7
|
+
command: 'analyze <repoOwner> <repoName> [context]',
|
|
8
|
+
description: 'Analyzes your git repository and creates a proposed Codefresh pipeline that clones the source code and builds/packages it',
|
|
9
|
+
webDocs: {
|
|
10
|
+
category: 'Analyzer',
|
|
11
|
+
title: 'Analyze'
|
|
12
|
+
},
|
|
13
|
+
builder: yargs => yargs
|
|
14
|
+
.positional('repoOwner', {
|
|
15
|
+
describe: 'Repository owner',
|
|
16
|
+
required: true,
|
|
17
|
+
})
|
|
18
|
+
.positional('repoName', {
|
|
19
|
+
describe: 'Repository name',
|
|
20
|
+
required: true,
|
|
21
|
+
})
|
|
22
|
+
.positional('context', {
|
|
23
|
+
describe: 'Your git context that you can get from integrations -> git , if empty - using personal context',
|
|
24
|
+
required: false
|
|
25
|
+
})
|
|
26
|
+
.example('codefresh analyze elasticio petstore-component-nodejs github', 'Analyze repo'),
|
|
27
|
+
handler: async (argv) => {
|
|
28
|
+
const { repoOwner, repoName, context } = argv;
|
|
29
|
+
const yaml = await Logic.analyze({repoOwner, repoName, context});
|
|
30
|
+
console.log(yaml);
|
|
31
|
+
},
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
module.exports = command;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/* eslint-disable no-use-before-define,object-curly-newline,arrow-body-style */
|
|
2
|
+
|
|
3
|
+
const { sdk } = require('../../../../logic');
|
|
4
|
+
|
|
5
|
+
class AnalyzerLogic {
|
|
6
|
+
|
|
7
|
+
static async analyze({ repoOwner, repoName, context }) {
|
|
8
|
+
|
|
9
|
+
const repo = {
|
|
10
|
+
repoOwner,
|
|
11
|
+
repoName,
|
|
12
|
+
git: context,
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
return sdk.pipelines.analyze({
|
|
16
|
+
repo,
|
|
17
|
+
type: 'git',
|
|
18
|
+
source: 'api'
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
module.exports = AnalyzerLogic;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/* eslint-disable no-use-before-define,object-curly-newline,arrow-body-style */
|
|
2
|
+
|
|
3
|
+
const _ = require('lodash');
|
|
4
|
+
const CFError = require('cf-errors');
|
|
5
|
+
const Promise = require('bluebird');
|
|
6
|
+
const { sdk } = require('../../../../logic');
|
|
7
|
+
|
|
8
|
+
class AnnotationLogic {
|
|
9
|
+
static async listAnnotations({ entityId, entityType, labels }) {
|
|
10
|
+
let annotations = [];
|
|
11
|
+
try {
|
|
12
|
+
annotations = await sdk.annotations.list({ entityId, entityType });
|
|
13
|
+
} catch (error) {
|
|
14
|
+
if (error.statusCode === 404) {
|
|
15
|
+
throw new CFError({
|
|
16
|
+
message: `Annotations not found for specified entity: type = ${entityType}; id = ${entityId}`,
|
|
17
|
+
cause: error,
|
|
18
|
+
});
|
|
19
|
+
} else {
|
|
20
|
+
throw error;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
if (_.isArray(labels) && !_.isEmpty(labels)) {
|
|
25
|
+
annotations = _.filter(annotations, annotation => labels.includes(annotation.key));
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
return annotations;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
static createAnnotations({ entityId, entityType, labels }) {
|
|
32
|
+
if (!_.isArray(labels)) {
|
|
33
|
+
throw new Error('Labels should be an array');
|
|
34
|
+
}
|
|
35
|
+
if (_.isEmpty(labels)) {
|
|
36
|
+
throw new Error('Labels are required for set command');
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
const annotations = AnnotationLogic._parseAnnotations(labels);
|
|
40
|
+
return Promise.map(annotations, ({ key, value }) => sdk.annotations.create({ entityId, entityType, key, value }), { concurrency: 1 });
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
static deleteAnnotations({ entityId, entityType, labels }) {
|
|
44
|
+
if (!_.isEmpty(labels)) {
|
|
45
|
+
return Promise.map(labels, key => sdk.annotations.delete({ entityId, entityType, key }), { concurrency: 1 });
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
return sdk.annotations.delete({ entityId, entityType });
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
static _parseAnnotations(labels) {
|
|
52
|
+
return _.map(labels, (label) => {
|
|
53
|
+
const [key, value] = label.split('=');
|
|
54
|
+
return { key, value };
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
module.exports = AnnotationLogic;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
const getCmd = require('./get.cmd').toCommand();
|
|
2
|
+
const deleteCmd = require('./delete.cmd').toCommand();
|
|
3
|
+
const createCmd = require('./create.cmd').toCommand();
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
jest.mock('../../../../logic/entities/Annotation');
|
|
7
|
+
|
|
8
|
+
const request = require('requestretry');
|
|
9
|
+
|
|
10
|
+
const DEFAULT_RESPONSE = request.__defaultResponse();
|
|
11
|
+
|
|
12
|
+
describe('annotation commands', () => {
|
|
13
|
+
beforeEach(async () => {
|
|
14
|
+
request.__reset();
|
|
15
|
+
request.mockClear();
|
|
16
|
+
await configureSdk(); // eslint-disable-line
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
describe('create', () => {
|
|
20
|
+
it('should handle creation', async () => {
|
|
21
|
+
const argv = { labels: ['some name'], 'entity-id': 'id', 'entity-type': 'image', _: [0, 0, 'key=value'] };
|
|
22
|
+
await createCmd.handler(argv);
|
|
23
|
+
await verifyResponsesReturned([DEFAULT_RESPONSE]); // eslint-disable-line
|
|
24
|
+
});
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
describe('get', () => {
|
|
28
|
+
it('should handle getting given id', async () => {
|
|
29
|
+
const argv = { 'entity-id': 'id', 'entity-type': 'image', _: [0, 0, 'test'] };
|
|
30
|
+
const response = { statusCode: 200, body: [{ key: 'test', value: 'test' }] };
|
|
31
|
+
request.__setResponse(response);
|
|
32
|
+
await getCmd.handler(argv);
|
|
33
|
+
await verifyResponsesReturned([response]); // eslint-disable-line
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
it('should handle getting given name', async () => {
|
|
37
|
+
const argv = { 'entity-id': 'id', 'entity-type': 'image', _: [0, 0] };
|
|
38
|
+
const response = { statusCode: 200, body: [{ test: 'test' }] };
|
|
39
|
+
request.__setResponse(response);
|
|
40
|
+
await getCmd.handler(argv);
|
|
41
|
+
await verifyResponsesReturned([response]); // eslint-disable-line
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
it('should handle getting all', async () => {
|
|
45
|
+
const argv = { 'entity-id': 'id', 'entity-type': 'image', _: [0, 0] };
|
|
46
|
+
const response = { statusCode: 200, body: [DEFAULT_RESPONSE.body] };
|
|
47
|
+
request.__setResponse(response);
|
|
48
|
+
await getCmd.handler(argv);
|
|
49
|
+
await verifyResponsesReturned([response]); // eslint-disable-line
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
describe('delete', () => {
|
|
54
|
+
it('should handle deletion given name', async () => {
|
|
55
|
+
const argv = { 'entity-id': 'id', 'entity-type': 'image', _: [0, 0, 'key'] };
|
|
56
|
+
const responses = [
|
|
57
|
+
DEFAULT_RESPONSE,
|
|
58
|
+
];
|
|
59
|
+
request.__queueResponses(responses);
|
|
60
|
+
await deleteCmd.handler(argv);
|
|
61
|
+
await verifyResponsesReturned(responses); // eslint-disable-line
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
});
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
const _ = require('lodash');
|
|
2
|
+
const Command = require('../../Command');
|
|
3
|
+
const createRoot = require('../root/create.cmd');
|
|
4
|
+
const Logic = require('./annotation.logic');
|
|
5
|
+
|
|
6
|
+
const command = new Command({
|
|
7
|
+
parent: createRoot,
|
|
8
|
+
command: 'annotation <entity-type> <entity-id> <labels...>',
|
|
9
|
+
description: 'Annotate a resource with labels',
|
|
10
|
+
webDocs: {
|
|
11
|
+
category: 'Annotations',
|
|
12
|
+
title: 'create',
|
|
13
|
+
// weight: 50,
|
|
14
|
+
},
|
|
15
|
+
builder: yargs => yargs
|
|
16
|
+
.positional('entity-type', {
|
|
17
|
+
describe: 'Type of resource for annotation',
|
|
18
|
+
required: true,
|
|
19
|
+
})
|
|
20
|
+
.positional('entity-id', {
|
|
21
|
+
describe: 'Id of resource for annotation',
|
|
22
|
+
required: true,
|
|
23
|
+
})
|
|
24
|
+
.positional('labels', {
|
|
25
|
+
describe: 'Labels',
|
|
26
|
+
required: true,
|
|
27
|
+
array: true,
|
|
28
|
+
})
|
|
29
|
+
.example('codefresh create annotation image 2dfacdaad466 coverage=75%', 'Annotate entity with a single label')
|
|
30
|
+
.example('codefresh create annotation image 2dfacdaad466 coverage=75% tests_passed=true', 'Annotate entity with multiple labels'),
|
|
31
|
+
handler: async (argv) => {
|
|
32
|
+
const { entityType, entityId, labels } = argv;
|
|
33
|
+
|
|
34
|
+
await Logic.createAnnotations({ entityId, entityType, labels });
|
|
35
|
+
console.log('Annotations was created');
|
|
36
|
+
},
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
module.exports = command;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
const Command = require('../../Command');
|
|
2
|
+
const _ = require('lodash');
|
|
3
|
+
const deleteRoot = require('../root/delete.cmd');
|
|
4
|
+
const Logic = require('./annotation.logic');
|
|
5
|
+
|
|
6
|
+
const command = new Command({
|
|
7
|
+
parent: deleteRoot,
|
|
8
|
+
command: 'annotation <entity-type> <entity-id> [labels...]',
|
|
9
|
+
description: 'Delete annotations',
|
|
10
|
+
webDocs: {
|
|
11
|
+
category: 'Annotations',
|
|
12
|
+
title: 'delete',
|
|
13
|
+
// weight: 50,
|
|
14
|
+
},
|
|
15
|
+
builder: yargs => yargs
|
|
16
|
+
.positional('entity-type', {
|
|
17
|
+
describe: 'Type of resource for annotation',
|
|
18
|
+
required: true,
|
|
19
|
+
})
|
|
20
|
+
.positional('entity-id', {
|
|
21
|
+
describe: 'Id of resource for annotation',
|
|
22
|
+
required: true,
|
|
23
|
+
})
|
|
24
|
+
.positional('labels', {
|
|
25
|
+
describe: 'Labels to delete',
|
|
26
|
+
array: true,
|
|
27
|
+
})
|
|
28
|
+
.example('codefresh delete annotation image 2dfacdaad466 coverage tests_passed', 'Delete specified annotations')
|
|
29
|
+
.example('codefresh delete annotation image 2dfacdaad466', 'Delete all annotations of entity'),
|
|
30
|
+
handler: async (argv) => {
|
|
31
|
+
const { entityType, entityId, labels } = argv;
|
|
32
|
+
|
|
33
|
+
await Logic.deleteAnnotations({ entityId, entityType, labels });
|
|
34
|
+
console.log('Annotations was deleted');
|
|
35
|
+
},
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
module.exports = command;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
const _ = require('lodash');
|
|
2
|
+
const Command = require('../../Command');
|
|
3
|
+
const Logic = require('./annotation.logic');
|
|
4
|
+
const Annotation = require('../../../../logic/entities/Annotation');
|
|
5
|
+
const Output = require('../../../../output/Output');
|
|
6
|
+
|
|
7
|
+
const getRoot = require('../root/get.cmd');
|
|
8
|
+
|
|
9
|
+
const command = new Command({
|
|
10
|
+
parent: getRoot,
|
|
11
|
+
command: 'annotation <entity-type> <entity-id> [labels...]',
|
|
12
|
+
description: 'Get annotations',
|
|
13
|
+
webDocs: {
|
|
14
|
+
category: 'Annotations',
|
|
15
|
+
title: 'get',
|
|
16
|
+
// weight: 50,
|
|
17
|
+
},
|
|
18
|
+
builder: yargs => yargs
|
|
19
|
+
.positional('entity-type', {
|
|
20
|
+
describe: 'Type of resource for annotation',
|
|
21
|
+
required: true,
|
|
22
|
+
})
|
|
23
|
+
.positional('entity-id', {
|
|
24
|
+
describe: 'Id of resource for annotation',
|
|
25
|
+
required: true,
|
|
26
|
+
})
|
|
27
|
+
.positional('labels', {
|
|
28
|
+
describe: 'Labels to filter by',
|
|
29
|
+
array: true,
|
|
30
|
+
default: [],
|
|
31
|
+
})
|
|
32
|
+
.example('codefresh get annotation image 2dfacdaad466', 'Get all annotations for entity')
|
|
33
|
+
.example('codefresh get annotation image 2dfacdaad466 coverage tests_passed', 'Get specified annotations'),
|
|
34
|
+
handler: async (argv) => {
|
|
35
|
+
const { entityType, entityId, labels } = argv;
|
|
36
|
+
|
|
37
|
+
const annotations = await Logic.listAnnotations({ entityId, entityType, labels });
|
|
38
|
+
Output.print(_.map(annotations, Annotation.fromResponse));
|
|
39
|
+
},
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
module.exports = command;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
const _ = require('lodash');
|
|
2
|
+
const inquirer = require('inquirer');
|
|
3
|
+
const YAML = require('yaml');
|
|
4
|
+
const { readFileSync, lstatSync } = require('fs');
|
|
5
|
+
const { resolve } = require('path');
|
|
6
|
+
const { INSTALLATION_DEFAULTS } = require('../hybrid/helper');
|
|
7
|
+
const { getKubeContext } = require('../../helpers/kubernetes');
|
|
8
|
+
|
|
9
|
+
const selectRuntime = async (runtimes) => {
|
|
10
|
+
const ans = await inquirer.prompt({
|
|
11
|
+
type: 'list',
|
|
12
|
+
name: 're',
|
|
13
|
+
message: 'Name of Codefresh runtime-environment to use',
|
|
14
|
+
choices: runtimes,
|
|
15
|
+
});
|
|
16
|
+
return ans.re;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
const selectNamespace = async () => {
|
|
20
|
+
const ans = await inquirer.prompt({
|
|
21
|
+
type: 'input',
|
|
22
|
+
name: 'namespace',
|
|
23
|
+
message: 'Name of Kubernetes namespace to use',
|
|
24
|
+
default: INSTALLATION_DEFAULTS.NAMESPACE,
|
|
25
|
+
});
|
|
26
|
+
return ans.namespace;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
const selectHost = async () => {
|
|
30
|
+
const ans = await inquirer.prompt({
|
|
31
|
+
type: 'input',
|
|
32
|
+
name: 'host',
|
|
33
|
+
message: 'The hostname that will be used by the app-proxy ingress',
|
|
34
|
+
});
|
|
35
|
+
return ans.host;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
const setIfNotDefined = (obj, prop, value) => {
|
|
39
|
+
_.set(obj, prop, _.get(obj, prop, value));
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
const mergeWithValues = (argv) => {
|
|
43
|
+
if (!argv.values || !lstatSync(resolve(process.cwd(), argv.values)).isFile()) {
|
|
44
|
+
return argv;
|
|
45
|
+
}
|
|
46
|
+
const valuesFileStr = readFileSync(resolve(process.cwd(), argv.values), 'utf8');
|
|
47
|
+
const valuesObj = YAML.parse(valuesFileStr);
|
|
48
|
+
|
|
49
|
+
setIfNotDefined(argv, 'kube-namespace', valuesObj.Namespace || INSTALLATION_DEFAULTS.NAMESPACE);
|
|
50
|
+
setIfNotDefined(argv, 'kube-context-name', valuesObj.Context || getKubeContext());
|
|
51
|
+
setIfNotDefined(argv, 'host', _.get(valuesObj, 'AppProxy.Ingress.Host'));
|
|
52
|
+
setIfNotDefined(argv, 'pathPrefix', _.get(valuesObj, 'AppProxy.Ingress.PathPrefix', ''));
|
|
53
|
+
setIfNotDefined(argv, 'runtime-environment', valuesObj.RuntimeEnvironmentName);
|
|
54
|
+
|
|
55
|
+
return argv;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
module.exports = {
|
|
59
|
+
selectRuntime,
|
|
60
|
+
mergeWithValues,
|
|
61
|
+
selectNamespace,
|
|
62
|
+
selectHost,
|
|
63
|
+
};
|