{"id":2073,"date":"2022-02-05T16:00:48","date_gmt":"2022-02-05T16:00:48","guid":{"rendered":"https:\/\/blog.samarthya.me\/wps\/?p=2073"},"modified":"2022-02-05T16:05:12","modified_gmt":"2022-02-05T16:05:12","slug":"spinnaker-artifact-helm","status":"publish","type":"post","link":"https:\/\/blog.samarthya.me\/wps\/2022\/02\/05\/spinnaker-artifact-helm\/","title":{"rendered":"Spinnaker: Artifact Helm"},"content":{"rendered":"\n<p>In this blog let&#8217;s try add a helm account and enable for use in the pipelines<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>bash-5.0$ hal config artifact helm account get dev-helm-ac\n+ Get current deployment\n  Success\n+ Get dev-helm-ac artifact account\n  Success\n+ Artifact account dev-helm-ac: \nHelmArtifactAccount(name=dev-helm-ac, repository=https:\/\/helm-dev-local.artifactory.net\/artifactory\/helm-dev-local, username=myaccount, password=samplepassword, usernamePasswordFile=\/home\/spinnaker\/.hal\/helm_password)<\/code><\/pre>\n\n\n\n<p>The steps I followed are explained in detail <a href=\"https:\/\/spinnaker.io\/docs\/setup\/other_config\/artifacts\/helm\/\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"enable\">Enable<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>hal config artifact helm enable<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"adding-account-for-helm\">Adding account for helm<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"help\">Help<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>bash-5.0$ hal config artifact helm account add -h\nADD\n\n  Add an artifact account to the helm artifact provider.\n\nUSAGE\n\n  hal config artifact helm account add &#91;parameters]\n\nGLOBAL PARAMETERS\n\n  --daemon-endpoint\n    If supplied, connect to the daemon at this address.\n\n  --options\n    Get options for the specified field name.\n\n  -a, --alpha\n    Enable alpha halyard features.\n\n  -c, --color\n    Enable terminal color output.\n\n  -d, --debug\n    Show detailed network traffic with halyard daemon.\n\n  -h, --help=false\n    Display help text about this command.\n\n  -l, --log\n    Set the log level of the CLI.\n\n  -o, --output\n    Format the CLIs output.\n\n  -q, --quiet\n    Show no task information or messages. When set, ANSI formatting will be\n    disabled, and all prompts will be accepted.\n\nPARAMETERS\n\n  ACCOUNT\n    The name of the account to operate on.\n\n  --deployment\n    If supplied, use this Halyard deployment. This will _not_ create a new\n    deployment.\n\n  --no-validate=false\n    Skip validation.\n\n  --password (sensitive data - user will be prompted)\n    Helm chart repository basic auth password\n\n  --repository\n    Helm chart repository\n\n  --username\n    Helm chart repository basic auth username\n\n  --username-password-file\n    File containing \"username:password\" to use for helm chart repository basic<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>helm config artifact helm account add dev-helm-ac \\\n--username &lt;username> \\\n--repository &lt;repository> \\\n--password <\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"apply\">Apply<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>hal deploy apply<\/code><\/pre>\n\n\n\n<p>Check in the pipeline<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"363\" src=\"https:\/\/blog.samarthya.me\/wps\/wp-content\/uploads\/2022\/02\/Screenshot-2022-02-05-at-9.29.53-PM-1024x363.png\" alt=\"\" class=\"wp-image-2074\" srcset=\"https:\/\/blog.samarthya.me\/wps\/wp-content\/uploads\/2022\/02\/Screenshot-2022-02-05-at-9.29.53-PM-1024x363.png 1024w, https:\/\/blog.samarthya.me\/wps\/wp-content\/uploads\/2022\/02\/Screenshot-2022-02-05-at-9.29.53-PM-300x106.png 300w, https:\/\/blog.samarthya.me\/wps\/wp-content\/uploads\/2022\/02\/Screenshot-2022-02-05-at-9.29.53-PM-1536x545.png 1536w, https:\/\/blog.samarthya.me\/wps\/wp-content\/uploads\/2022\/02\/Screenshot-2022-02-05-at-9.29.53-PM-2048x727.png 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>In this blog let&#8217;s try add a helm account and enable for use in the pipelines The steps I followed are explained in detail here. Enable Adding account for helm Help Apply Check in the pipeline<\/p>\n","protected":false},"author":1,"featured_media":2074,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"image","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[34],"tags":[232,106,227],"class_list":["post-2073","post","type-post","status-publish","format-image","has-post-thumbnail","hentry","category-technical","tag-artifactory","tag-helm","tag-spinnaker","post_format-post-format-image"],"_links":{"self":[{"href":"https:\/\/blog.samarthya.me\/wps\/wp-json\/wp\/v2\/posts\/2073","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.samarthya.me\/wps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.samarthya.me\/wps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.samarthya.me\/wps\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.samarthya.me\/wps\/wp-json\/wp\/v2\/comments?post=2073"}],"version-history":[{"count":0,"href":"https:\/\/blog.samarthya.me\/wps\/wp-json\/wp\/v2\/posts\/2073\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.samarthya.me\/wps\/wp-json\/wp\/v2\/media\/2074"}],"wp:attachment":[{"href":"https:\/\/blog.samarthya.me\/wps\/wp-json\/wp\/v2\/media?parent=2073"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.samarthya.me\/wps\/wp-json\/wp\/v2\/categories?post=2073"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.samarthya.me\/wps\/wp-json\/wp\/v2\/tags?post=2073"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}