Skip to content

Commit

Permalink
Installs ko (for Go-Kubernetes development)
Browse files Browse the repository at this point in the history
Resolves #164
  • Loading branch information
Steve Moyer committed Dec 2, 2019
1 parent f08ec73 commit a0e3388
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion install_go_packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

- name: "{{ name }}"
shell:
cmd: "GO111MODULE=on go get -u {{ item }}"
cmd: "go get -u {{ item }}"
environment:
GOPATH: "{{ go_tools_directory }}"
with_items: "{{ packages }}"
Expand Down
21 changes: 21 additions & 0 deletions roles/development/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,27 @@
- "go"
- "go-tools"

- include: "../../install_go_packages.yml"
vars:
name: "install ko for Go-Kubernetes development"
packages:
- "github.com/google/ko/cmd/ko"
tags:
- containerization
- kubernetes
- ko


- name: add ko's bash completion
shell:
cmd: "/usr/share/go-tools/bin/ko completion bash > /etc/bash_completion.d/ko"
when: "go_get_result.changed"
changed_when: "go_get_result.changed"
tags:
- containerization
- Kubernetes
- ko

#
# Editors
#
Expand Down

0 comments on commit a0e3388

Please sign in to comment.