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,201 @@
|
|
|
1
|
+
const _ = require('lodash');
|
|
2
|
+
const columnify = require('columnify');
|
|
3
|
+
const kefir = require('kefir');
|
|
4
|
+
const chalk = require('chalk');
|
|
5
|
+
const { Config } = require('codefresh-sdk');
|
|
6
|
+
|
|
7
|
+
const { normalizeValues } = require('./helm');
|
|
8
|
+
const { validatePipelineSpec, validatePipelineYaml } = require('./validation');
|
|
9
|
+
const { followLogs } = require('./logs');
|
|
10
|
+
const { printTableForAuthContexts } = require('./auth');
|
|
11
|
+
const { sdk } = require('../../../logic');
|
|
12
|
+
|
|
13
|
+
jest.mock('../../../logic/entities/Context', () => ({
|
|
14
|
+
fromResponse: () => ({
|
|
15
|
+
getType: () => 'yaml',
|
|
16
|
+
}),
|
|
17
|
+
}));
|
|
18
|
+
jest.mock('./../../../../check-version');
|
|
19
|
+
const versionChecker = require('./../../../../check-version');
|
|
20
|
+
|
|
21
|
+
jest.mock('../../../logic/entities/Workflow', () => ({
|
|
22
|
+
fromResponse: () => ({
|
|
23
|
+
getStatus: () => 0,
|
|
24
|
+
}),
|
|
25
|
+
}));
|
|
26
|
+
|
|
27
|
+
jest.mock('columnify', () => jest.fn(data => data));
|
|
28
|
+
|
|
29
|
+
const request = require('requestretry');
|
|
30
|
+
|
|
31
|
+
const DEFAULT_RESPONSE = request.__defaultResponse();
|
|
32
|
+
|
|
33
|
+
describe('helpers using sdk', () => {
|
|
34
|
+
beforeEach(async () => {
|
|
35
|
+
request.__reset();
|
|
36
|
+
request.mockClear();
|
|
37
|
+
await configureSdk(); // eslint-disable-line
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
describe('helm', () => {
|
|
41
|
+
it('should handle getting contexts on normalizeValues', async () => {
|
|
42
|
+
await normalizeValues(['context-name']);
|
|
43
|
+
await verifyResponsesReturned([DEFAULT_RESPONSE]); // eslint-disable-line
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
describe('validation', () => {
|
|
48
|
+
it('should handle validation on validatePipelineSpec', async () => {
|
|
49
|
+
await validatePipelineSpec({
|
|
50
|
+
version: 'v1',
|
|
51
|
+
spec: {},
|
|
52
|
+
});
|
|
53
|
+
await verifyResponsesReturned([DEFAULT_RESPONSE]); // eslint-disable-line
|
|
54
|
+
});
|
|
55
|
+
it('should handle validation on validatePipelineYaml', async () => {
|
|
56
|
+
await validatePipelineYaml(null, 'content');
|
|
57
|
+
await verifyResponsesReturned([DEFAULT_RESPONSE]); // eslint-disable-line
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
describe('logs', () => {
|
|
62
|
+
it('should handle showing logs', async () => {
|
|
63
|
+
const workflowId = 'id';
|
|
64
|
+
jest.spyOn(process, 'exit').mockImplementation();
|
|
65
|
+
jest.spyOn(sdk.logs, 'showWorkflowLogs').mockImplementation();
|
|
66
|
+
await followLogs(workflowId);
|
|
67
|
+
expect(sdk.logs.showWorkflowLogs).toBeCalled();
|
|
68
|
+
await verifyResponsesReturned([DEFAULT_RESPONSE]); // eslint-disable-line
|
|
69
|
+
});
|
|
70
|
+
it('should not show logs if check version throw an exception', async () => {
|
|
71
|
+
const workflowId = 'id';
|
|
72
|
+
jest.spyOn(sdk.logs, 'showWorkflowLogs').mockImplementation();
|
|
73
|
+
versionChecker.checkVersion.mockImplementationOnce(() => {
|
|
74
|
+
throw new Error();
|
|
75
|
+
});
|
|
76
|
+
await followLogs(workflowId);
|
|
77
|
+
expect(sdk.logs.showWorkflowLogs).not.toBeCalled();
|
|
78
|
+
});
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
describe('auth', () => {
|
|
82
|
+
describe('printTableForAuthContexts', () => {
|
|
83
|
+
beforeEach(() => {
|
|
84
|
+
jest.spyOn(console, 'log');
|
|
85
|
+
jest.spyOn(kefir, 'sequentially');
|
|
86
|
+
columnify.mockClear();
|
|
87
|
+
const addAccountInfo = jest.fn(() => Promise.resolve());
|
|
88
|
+
const defaultColumns = ['current', 'name'];
|
|
89
|
+
const contexts = {
|
|
90
|
+
current: {
|
|
91
|
+
addAccountInfo,
|
|
92
|
+
defaultColumns,
|
|
93
|
+
current: true,
|
|
94
|
+
name: 'current',
|
|
95
|
+
},
|
|
96
|
+
nonCurrent: {
|
|
97
|
+
addAccountInfo,
|
|
98
|
+
defaultColumns,
|
|
99
|
+
name: 'nonCurrent',
|
|
100
|
+
},
|
|
101
|
+
};
|
|
102
|
+
const managerMock = {
|
|
103
|
+
getCurrentContext: jest.fn(() => contexts.current),
|
|
104
|
+
getAllContexts: jest.fn(() => contexts),
|
|
105
|
+
};
|
|
106
|
+
Config.manager = () => managerMock;
|
|
107
|
+
Config.MOCK_CONTEXTS = contexts;
|
|
108
|
+
Config.ADD_ACCOUNT_INFO_MOCK = addAccountInfo;
|
|
109
|
+
});
|
|
110
|
+
|
|
111
|
+
it('should log fallback message when no current context and no sdk context', async () => {
|
|
112
|
+
Config.manager().getCurrentContext = jest.fn(() => undefined);
|
|
113
|
+
sdk.config.context = undefined;
|
|
114
|
+
|
|
115
|
+
await printTableForAuthContexts();
|
|
116
|
+
|
|
117
|
+
expect(console.log).toBeCalledWith('No authentication contexts. Please create an authentication context (see codefresh auth create-context --help)'); // eslint-disable-line
|
|
118
|
+
expect(Config.manager().getCurrentContext).toBeCalled();
|
|
119
|
+
expect(kefir.sequentially).not.toBeCalled();
|
|
120
|
+
});
|
|
121
|
+
|
|
122
|
+
it('should log fallback message when no current context and when sdk context isNoAuth', async () => {
|
|
123
|
+
Config.manager().getCurrentContext = jest.fn(() => undefined);
|
|
124
|
+
sdk.config.context = { isNoAuth: true };
|
|
125
|
+
|
|
126
|
+
await printTableForAuthContexts();
|
|
127
|
+
|
|
128
|
+
expect(console.log).toBeCalledWith('No authentication contexts. Please create an authentication context (see codefresh auth create-context --help)'); // eslint-disable-line
|
|
129
|
+
expect(Config.manager().getCurrentContext).toBeCalled();
|
|
130
|
+
expect(kefir.sequentially).not.toBeCalled();
|
|
131
|
+
});
|
|
132
|
+
|
|
133
|
+
it('should log environment context when no current context but sdk context exists', async () => {
|
|
134
|
+
const mockContext = Config.manager().getCurrentContext();
|
|
135
|
+
const verifyContext = _.merge(_.pick(mockContext, mockContext.defaultColumns), { current: chalk.green('*') });
|
|
136
|
+
sdk.config.context = mockContext;
|
|
137
|
+
Config.manager().getCurrentContext = jest.fn(() => undefined);
|
|
138
|
+
|
|
139
|
+
await printTableForAuthContexts();
|
|
140
|
+
|
|
141
|
+
expect(console.log).toBeCalledWith('Using authentication context created from CF_API_KEY env variable:');
|
|
142
|
+
expect(console.log).lastCalledWith([verifyContext]);
|
|
143
|
+
expect(Config.manager().getCurrentContext).toBeCalled();
|
|
144
|
+
expect(Config.manager().getAllContexts).not.toBeCalled();
|
|
145
|
+
expect(kefir.sequentially).toBeCalled();
|
|
146
|
+
});
|
|
147
|
+
|
|
148
|
+
it('should log environment context when there is current context but sdk context differs', async () => {
|
|
149
|
+
const mockContext = _.clone(Config.manager().getCurrentContext());
|
|
150
|
+
mockContext.name = 'sdk context';
|
|
151
|
+
const verifyContext = _.merge(_.pick(mockContext, mockContext.defaultColumns), { current: chalk.green('*') });
|
|
152
|
+
sdk.config.context = mockContext;
|
|
153
|
+
|
|
154
|
+
await printTableForAuthContexts();
|
|
155
|
+
|
|
156
|
+
expect(console.log).toBeCalledWith('Using authentication context created from CF_API_KEY env variable:');
|
|
157
|
+
expect(console.log).lastCalledWith([verifyContext]);
|
|
158
|
+
expect(Config.manager().getCurrentContext).toBeCalled();
|
|
159
|
+
expect(Config.manager().getAllContexts).not.toBeCalled();
|
|
160
|
+
expect(kefir.sequentially).toBeCalled();
|
|
161
|
+
});
|
|
162
|
+
|
|
163
|
+
it('should log all contexts when filter is "all"', async () => {
|
|
164
|
+
sdk.config.context = Config.manager().getCurrentContext();
|
|
165
|
+
const verifyContexts = _.map(_.values(Config.MOCK_CONTEXTS), context => _.mapValues(_.pick(context, context.defaultColumns), (val, key) => {
|
|
166
|
+
if (key === 'current') return chalk.green('*');
|
|
167
|
+
return val;
|
|
168
|
+
}));
|
|
169
|
+
|
|
170
|
+
await printTableForAuthContexts();
|
|
171
|
+
|
|
172
|
+
expect(console.log).toBeCalledWith(verifyContexts);
|
|
173
|
+
expect(Config.manager().getCurrentContext).toBeCalled();
|
|
174
|
+
expect(Config.manager().getAllContexts).toBeCalled();
|
|
175
|
+
expect(kefir.sequentially).toBeCalled();
|
|
176
|
+
});
|
|
177
|
+
|
|
178
|
+
it('should log current context when filter is "current"', async () => {
|
|
179
|
+
const mockContext = Config.manager().getCurrentContext();
|
|
180
|
+
const verifyContext = _.merge(_.pick(mockContext, mockContext.defaultColumns), { current: chalk.green('*') });
|
|
181
|
+
sdk.config.context = mockContext;
|
|
182
|
+
|
|
183
|
+
await printTableForAuthContexts({ filter: 'current' });
|
|
184
|
+
|
|
185
|
+
expect(console.log).lastCalledWith([verifyContext]);
|
|
186
|
+
expect(Config.manager().getCurrentContext).toBeCalled();
|
|
187
|
+
expect(Config.manager().getAllContexts).not.toBeCalled();
|
|
188
|
+
expect(kefir.sequentially).toBeCalled();
|
|
189
|
+
});
|
|
190
|
+
|
|
191
|
+
it('should add account info for each context', async () => {
|
|
192
|
+
sdk.config.context = Config.manager().getCurrentContext();
|
|
193
|
+
|
|
194
|
+
await printTableForAuthContexts();
|
|
195
|
+
|
|
196
|
+
expect(kefir.sequentially).toBeCalled();
|
|
197
|
+
expect(Config.ADD_ACCOUNT_INFO_MOCK).toBeCalledTimes(_.keys(Config.MOCK_CONTEXTS).length);
|
|
198
|
+
});
|
|
199
|
+
});
|
|
200
|
+
});
|
|
201
|
+
});
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
const _ = require('lodash');
|
|
2
|
+
const helper = require('./image');
|
|
3
|
+
const { createEntity, entityList } = require('./entitiesManifests');
|
|
4
|
+
|
|
5
|
+
const { extractImages } = helper;
|
|
6
|
+
|
|
7
|
+
jest.mock('../../../logic/entities/Image', () => class {
|
|
8
|
+
constructor(props) {
|
|
9
|
+
Object.assign(this, props);
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
jest.mock('../commands/annotation/annotation.logic', () => class {
|
|
14
|
+
static createAnnotations() {
|
|
15
|
+
return Promise.resolve();
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
describe('helpers unit tests', () => {
|
|
20
|
+
describe('creating entites', () => {
|
|
21
|
+
const request = require('requestretry');
|
|
22
|
+
beforeEach(async () => {
|
|
23
|
+
request.__reset();
|
|
24
|
+
request.mockClear();
|
|
25
|
+
await configureSdk(); // eslint-disable-line
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
it('should have some length', () => expect(entityList.length).not.toBe(0));
|
|
29
|
+
for (const entity of entityList) {
|
|
30
|
+
const args = { entity, name: 'default', data: {} };
|
|
31
|
+
it(`${entity} should be promise`, () => expect(createEntity(args).catch(() => null) instanceof Promise).toBe(true));
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
describe('images', () => {
|
|
36
|
+
describe('#extractImages', () => {
|
|
37
|
+
beforeAll(() => {
|
|
38
|
+
helper.extractFieldsForImageEntity = jest.fn((image, tag) => ({ tag: tag.tag || tag }));
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
it('should wrap data into array if only one image passed', () => {
|
|
42
|
+
const image = {
|
|
43
|
+
tags: [{ tag: 'test', registry: 'r.cfcr.io' }],
|
|
44
|
+
};
|
|
45
|
+
expect(extractImages(image)).toEqual([{ tag: 'test' }]);
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
it('should extract image tags as separate images', () => {
|
|
49
|
+
expect(extractImages([
|
|
50
|
+
{
|
|
51
|
+
tags: [{ tag: 'banana' }, { tag: 'beer', registry: 'r.cfcr.io' }],
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
tags: [{ tag: 'banana' }, { tag: 'beer', registry: 'r.cfcr.io' }],
|
|
55
|
+
},
|
|
56
|
+
])).toEqual([
|
|
57
|
+
{ tag: 'banana' },
|
|
58
|
+
{ tag: 'beer' },
|
|
59
|
+
{ tag: 'banana' },
|
|
60
|
+
{ tag: 'beer' },
|
|
61
|
+
]);
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
it('should filter images tagged as "volume"', () => {
|
|
65
|
+
expect(extractImages([
|
|
66
|
+
{
|
|
67
|
+
tags: [
|
|
68
|
+
{ tag: 'volume' },
|
|
69
|
+
],
|
|
70
|
+
},
|
|
71
|
+
])).toEqual([]);
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
it('should add <none> literal to image if it has no tags', () => {
|
|
75
|
+
expect(extractImages([
|
|
76
|
+
{
|
|
77
|
+
tags: [],
|
|
78
|
+
},
|
|
79
|
+
])).toEqual([{ tag: '<none>' }]);
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
it('should sort images by date created DESC', () => {
|
|
83
|
+
helper.extractFieldsForImageEntity = jest.fn(({ created }) => ({ info: { created } }));
|
|
84
|
+
const images = [
|
|
85
|
+
{
|
|
86
|
+
created: new Date('2019-04-22T14:30:18.742Z'),
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
created: new Date('2019-04-22T14:40:18.741Z'),
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
created: new Date('2019-04-22T14:45:18.742Z'),
|
|
93
|
+
},
|
|
94
|
+
];
|
|
95
|
+
const extracted = extractImages(images);
|
|
96
|
+
const extractedDates = _.map(extracted, i => i.info.created);
|
|
97
|
+
const initialSortedDates = _.chain(images)
|
|
98
|
+
.orderBy(['created'], ['desc'])
|
|
99
|
+
.map(i => i.created)
|
|
100
|
+
.value();
|
|
101
|
+
expect(extractedDates).toEqual(initialSortedDates);
|
|
102
|
+
});
|
|
103
|
+
});
|
|
104
|
+
});
|
|
105
|
+
});
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
const _ = require('lodash');
|
|
2
|
+
const filesize = require('filesize');
|
|
3
|
+
const Image = require('../../../logic/entities/Image');
|
|
4
|
+
const DEFAULTS = require('../../cli/defaults');
|
|
5
|
+
|
|
6
|
+
const NONE_TAG = '<none>';
|
|
7
|
+
|
|
8
|
+
class ImagesHelper {
|
|
9
|
+
constructor() {
|
|
10
|
+
this.extractFieldsForImageEntity = this.extractFieldsForImageEntity.bind(this);
|
|
11
|
+
this.extractImages = this.extractImages.bind(this);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
extractFieldsForImageEntity(image, tag){
|
|
16
|
+
const newImage = {
|
|
17
|
+
name: image.imageDisplayName || image.imageName,
|
|
18
|
+
size: image.size && filesize(image.size),
|
|
19
|
+
sha: image.sha,
|
|
20
|
+
annotations: _.get(image, 'metadata', {}),
|
|
21
|
+
tagId: tag._id,
|
|
22
|
+
created: image.created ? new Date(image.created) : undefined,
|
|
23
|
+
hash: image.hash || image._id,
|
|
24
|
+
};
|
|
25
|
+
newImage.id = image.internalImageId ? image.internalImageId.substring(0, 12) : '\b';
|
|
26
|
+
if (_.isEqual(tag, NONE_TAG)) {
|
|
27
|
+
newImage.tag = tag;
|
|
28
|
+
newImage.pull = image.repoDigest || '';
|
|
29
|
+
} else {
|
|
30
|
+
newImage.tag = tag.tag;
|
|
31
|
+
newImage.pull = `${tag.registry}/${tag.repository}:${tag.tag}`;
|
|
32
|
+
}
|
|
33
|
+
return newImage;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
extractImages(images) {
|
|
38
|
+
if (!_.isArray(images)) {
|
|
39
|
+
images = [images]; // eslint-disable-line no-param-reassign
|
|
40
|
+
}
|
|
41
|
+
return _.chain(images)
|
|
42
|
+
.map((image) => {
|
|
43
|
+
const res = [];
|
|
44
|
+
let volumeImage = false;
|
|
45
|
+
_.forEach(image.tags, (tag) => {
|
|
46
|
+
if (_.isEqual(tag.tag, 'volume')) {
|
|
47
|
+
volumeImage = true;
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
const data = this.extractFieldsForImageEntity(image, tag);
|
|
52
|
+
res.push(new Image(data));
|
|
53
|
+
});
|
|
54
|
+
if (_.isEmpty(image.tags) && !volumeImage) {
|
|
55
|
+
const data = this.extractFieldsForImageEntity(image, NONE_TAG);
|
|
56
|
+
res.push(new Image(data));
|
|
57
|
+
}
|
|
58
|
+
return res;
|
|
59
|
+
})
|
|
60
|
+
.flatten()
|
|
61
|
+
.orderBy(['info.created'], ['desc'])
|
|
62
|
+
.value();
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
module.exports = new ImagesHelper();
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
const path = require('path');
|
|
2
|
+
const fs = require('fs');
|
|
3
|
+
const { KubeConfig, Client } = require('kubernetes-client');
|
|
4
|
+
const Request = require('kubernetes-client/backends/request');
|
|
5
|
+
const _ = require('lodash');
|
|
6
|
+
const { homedir } = require('os');
|
|
7
|
+
|
|
8
|
+
const isInCluster = () => fs.existsSync('/var/run/secrets/kubernetes.io/serviceaccount');
|
|
9
|
+
|
|
10
|
+
const _getKubeConfig = (kubeconfigPath) => {
|
|
11
|
+
const kc = new KubeConfig();
|
|
12
|
+
if (isInCluster()) {
|
|
13
|
+
kc.loadFromCluster();
|
|
14
|
+
return kc;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
const kubePath = kubeconfigPath || process.env.KUBECONFIG || path.join(homedir(), '.kube', 'config');
|
|
18
|
+
if (!fs.existsSync(kubePath)) {
|
|
19
|
+
throw new Error(`kubeconfig not found at: ${kubePath}, make sure the $KUBECONFIG environment variable is set correctly`);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
kc.loadFromFile(kubePath);
|
|
23
|
+
|
|
24
|
+
return kc;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
const getKubeContext = (kubeconfigPath) => {
|
|
29
|
+
const kubeconfig = _getKubeConfig(kubeconfigPath);
|
|
30
|
+
return kubeconfig.currentContext;
|
|
31
|
+
};
|
|
32
|
+
const getAllKubeContexts = (kubeconfigPath) => {
|
|
33
|
+
const kubeconfig = _getKubeConfig(kubeconfigPath);
|
|
34
|
+
const { contexts } = kubeconfig;
|
|
35
|
+
if (contexts) {
|
|
36
|
+
return contexts.reduce((acc, curr) => {
|
|
37
|
+
acc.push(curr.name);
|
|
38
|
+
return acc;
|
|
39
|
+
}, []);
|
|
40
|
+
}
|
|
41
|
+
return [];
|
|
42
|
+
};
|
|
43
|
+
const getAllNamespaces = async (kubeconfigPath, kubeContextName) => {
|
|
44
|
+
const kubeconfig = _getKubeConfig(kubeconfigPath);
|
|
45
|
+
kubeconfig.setCurrentContext(kubeContextName);
|
|
46
|
+
const backend = new Request({ kubeconfig });
|
|
47
|
+
const client = new Client({ backend, version: 1.13 });
|
|
48
|
+
const resp = await client.api.v1.namespaces.get();
|
|
49
|
+
if (resp.statusCode !== 200) {
|
|
50
|
+
throw new Error(`could not get namespaces from cluster ${kubeContextName}, failed with status: ${resp.statusCode}`);
|
|
51
|
+
}
|
|
52
|
+
const nsObjs = _.get(resp, 'body.items');
|
|
53
|
+
return _.map(nsObjs, ns => _.get(ns, 'metadata.name'));
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
module.exports = {
|
|
57
|
+
getKubeContext,
|
|
58
|
+
getAllKubeContexts,
|
|
59
|
+
getAllNamespaces,
|
|
60
|
+
isInCluster,
|
|
61
|
+
};
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
const Promise = require('bluebird');
|
|
2
|
+
const _ = require('lodash');
|
|
3
|
+
const request = require('requestretry');
|
|
4
|
+
const CFError = require('cf-errors');
|
|
5
|
+
|
|
6
|
+
const { sdk } = require('../../../logic');
|
|
7
|
+
const Workflow = require('../../../logic/entities/Workflow');
|
|
8
|
+
const Output = require('../../../output/Output');
|
|
9
|
+
const { checkVersion } = require('./../../../../check-version');
|
|
10
|
+
|
|
11
|
+
const nodeVersionToValidate = '<=10.x >=8.x';
|
|
12
|
+
|
|
13
|
+
const END_STATUSES = ['error', 'success', 'terminated'];
|
|
14
|
+
|
|
15
|
+
const config = require('../../../logic/cli-config/Manager').config();
|
|
16
|
+
|
|
17
|
+
async function _fallbackLogs(workflowId, interval, retriesLeft) {
|
|
18
|
+
try {
|
|
19
|
+
console.log('Retrying to retrieve logs...');
|
|
20
|
+
await sdk.logs.showWorkflowLogs(workflowId, true);
|
|
21
|
+
return;
|
|
22
|
+
} catch (e) {
|
|
23
|
+
Output.printError(new CFError({
|
|
24
|
+
message: `Could not retrieve logs for workflow: ${workflowId}`,
|
|
25
|
+
cause: e,
|
|
26
|
+
}));
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
let failedToGetStatus = false;
|
|
30
|
+
|
|
31
|
+
try {
|
|
32
|
+
console.log('Checking build status...');
|
|
33
|
+
const workflow = await sdk.workflows.getBuild({ buildId: workflowId, noAccount: false });
|
|
34
|
+
const currentStatus = workflow.status;
|
|
35
|
+
if (END_STATUSES.includes(currentStatus)) {
|
|
36
|
+
console.log(`Build finished with status: '${_.upperCase(currentStatus)}'`);
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
console.log(`Current build status is: '${_.upperCase(currentStatus)}'`);
|
|
40
|
+
} catch (e) {
|
|
41
|
+
if (!request.RetryStrategies.HTTPOrNetworkError(e, _.pick('statusCode'))) {
|
|
42
|
+
throw e;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
failedToGetStatus = true;
|
|
46
|
+
|
|
47
|
+
if (retriesLeft === 0) {
|
|
48
|
+
throw e;
|
|
49
|
+
}
|
|
50
|
+
console.log(`Could not get build status: ${e.message}.`);
|
|
51
|
+
console.log('Retrying...');
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
await Promise.delay(interval);
|
|
55
|
+
await _fallbackLogs(workflowId, interval, failedToGetStatus ? retriesLeft - 1 : retriesLeft);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
const followLogs = async (workflowId) => {
|
|
59
|
+
try {
|
|
60
|
+
checkVersion(nodeVersionToValidate);
|
|
61
|
+
} catch (error) {
|
|
62
|
+
const url = _.get(sdk, 'config.context.url', 'https://g.codefresh.io');
|
|
63
|
+
const buildLink = `${url}/build/${workflowId}`;
|
|
64
|
+
// eslint-disable-next-line max-len
|
|
65
|
+
console.log(`Your node version (${process.version}) is not compatible with supported node version (${nodeVersionToValidate}) for this command, click the link to see it in codefresh UI : ${buildLink}`);
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
try {
|
|
69
|
+
await sdk.logs.showWorkflowLogs(workflowId, true);
|
|
70
|
+
} catch (e) {
|
|
71
|
+
const error = new CFError({
|
|
72
|
+
message: `Could not retrieve logs for workflow: ${workflowId}`,
|
|
73
|
+
cause: e,
|
|
74
|
+
});
|
|
75
|
+
if (!process.env.CF_CLI_RUN_WAIT_FALLBACK) {
|
|
76
|
+
throw error;
|
|
77
|
+
} else {
|
|
78
|
+
Output.printError(error);
|
|
79
|
+
}
|
|
80
|
+
await _fallbackLogs(workflowId, config.logs.fallback.interval, config.logs.fallback.maxAttempts);
|
|
81
|
+
}
|
|
82
|
+
const json = await sdk.workflows.getBuild({ buildId: workflowId, noAccount: false });
|
|
83
|
+
const workflowInstance = Workflow.fromResponse(json);
|
|
84
|
+
switch (workflowInstance.getStatus()) {
|
|
85
|
+
case 'success':
|
|
86
|
+
return 0;
|
|
87
|
+
case 'error':
|
|
88
|
+
return 1;
|
|
89
|
+
case 'terminated':
|
|
90
|
+
return 2;
|
|
91
|
+
default:
|
|
92
|
+
return 100;
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
module.exports = {
|
|
97
|
+
followLogs,
|
|
98
|
+
_fallbackLogs,
|
|
99
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const EventEmitter = require('events');
|
|
2
|
+
|
|
3
|
+
class ProgressEvents {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.emitter = new EventEmitter();
|
|
6
|
+
}
|
|
7
|
+
onStart(handler) {
|
|
8
|
+
this.emitter.addListener('start', (args) => {
|
|
9
|
+
handler(args);
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
onProgress(handler) {
|
|
13
|
+
this.emitter.addListener('progress', (args) => {
|
|
14
|
+
handler(args);
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
reportStart(args) {
|
|
18
|
+
this.emitter.emit('start', args);
|
|
19
|
+
}
|
|
20
|
+
reportProgress(args) {
|
|
21
|
+
this.emitter.emit('progress', args);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
module.exports = ProgressEvents;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
const _ = require('lodash');
|
|
2
|
+
const { sdk } = require('../../../../lib/logic');
|
|
3
|
+
|
|
4
|
+
const TYPES = {
|
|
5
|
+
plan: 'PlanRuntimeEnvironment',
|
|
6
|
+
system: 'SystemRuntimeEnvironment',
|
|
7
|
+
account: 'AccountRuntimeEnvironment',
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
function resolveType(name) {
|
|
11
|
+
if (!name) {
|
|
12
|
+
return null;
|
|
13
|
+
}
|
|
14
|
+
if (name.startsWith('system/plan')) {
|
|
15
|
+
return TYPES.plan;
|
|
16
|
+
}
|
|
17
|
+
if (name.startsWith('system/')) {
|
|
18
|
+
return TYPES.system;
|
|
19
|
+
}
|
|
20
|
+
return TYPES.account;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function get(options) {
|
|
24
|
+
const type = resolveType(options.name);
|
|
25
|
+
|
|
26
|
+
if (type === TYPES.system) {
|
|
27
|
+
return sdk.onPrem.runtimeEnvs.system.get(options);
|
|
28
|
+
}
|
|
29
|
+
return sdk.onPrem.runtimeEnvs.plan.get(options);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
function list(options) {
|
|
33
|
+
if (options.account) {
|
|
34
|
+
return sdk.onPrem.runtimeEnvs.account.list(options);
|
|
35
|
+
}
|
|
36
|
+
return sdk.onPrem.runtimeEnvs.list(options);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
function update(options, body) {
|
|
40
|
+
const type = resolveType(options.name);
|
|
41
|
+
|
|
42
|
+
if (type === TYPES.system) {
|
|
43
|
+
return sdk.onPrem.runtimeEnvs.system.update(options, body);
|
|
44
|
+
}
|
|
45
|
+
return sdk.onPrem.runtimeEnvs.plan.update(options, body);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
function deleteRe(options) {
|
|
49
|
+
const type = resolveType(options.name);
|
|
50
|
+
|
|
51
|
+
if (type === TYPES.system) {
|
|
52
|
+
return sdk.onPrem.runtimeEnvs.system.delete(options);
|
|
53
|
+
}
|
|
54
|
+
return sdk.onPrem.runtimeEnvs.plan.delete(options);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
function setDefault(options) {
|
|
58
|
+
if (options.account) {
|
|
59
|
+
return sdk.onPrem.runtimeEnvs.account.setDefault(options);
|
|
60
|
+
}
|
|
61
|
+
return sdk.onPrem.runtimeEnvs.plan.setDefault(options);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
function types() {
|
|
65
|
+
return _.cloneDeep(TYPES);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
module.exports = {
|
|
69
|
+
get,
|
|
70
|
+
list,
|
|
71
|
+
update,
|
|
72
|
+
delete: deleteRe,
|
|
73
|
+
setDefault,
|
|
74
|
+
resolveType,
|
|
75
|
+
types,
|
|
76
|
+
};
|