Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kind #266

Merged
merged 11 commits into from Nov 15, 2019
Merged

Kind #266

merged 11 commits into from Nov 15, 2019

Conversation

zloeber
Copy link
Contributor

@zloeber zloeber commented Nov 10, 2019

  • Addition of new package (kind 0.5.1)
  • Additional contribution notes specific to this repo for adding new packages
  • Minor description fix for fetch package

@osterman
Copy link
Member

Thanks! Will get this taken care of today or tomorrow.

@osterman osterman self-requested a review November 12, 2019 00:10
README.yaml Outdated
@@ -156,9 +156,10 @@ examples: |-
Here's a stub you can include into a `Makefile` to make it easier to install binary dependencies.

```
THIS_PATH := $(abspath $(patsubst %/,%,$(dir $(abspath $(lastword $(MAKEFILE_LIST))))))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you give some more context on why this is necessary? What problem did this solve for you?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It feels like it makes an assumption about where the packages are checked out relative to MAKEFILE_LIST. I think for an example, it remains more clear to just say "look, suppose you have a PACKAGES_PATH somewhere, this is how you can invoke it" rather than say you have to check it out to ./

Case in point, we check it out somewhere else in our cloudposse/build-harness

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The default example makefile for Makefile inclusion did not work for me without fully qualifying the path for INSTALL_PATH. Using the (overcomplicated) THIS_PATH local path detection may have been overkill but it got the example to work as intended. I maybe missed the point though (that has been known to happen :) )

I'm grateful for the entire suite of cloudposse's releases and am glad I'm not the only person insane enough to write 1000's of lines of Makefile code. Thanks for all of the awesome tooling and other materials.

[9:48:57] zloeber in ~/Projects/Temp ❯ make packages/install/helmfile
Installing packages master...
Cloning into 'packages'...
remote: Enumerating objects: 347, done.
remote: Counting objects: 100% (347/347), done.
remote: Compressing objects: 100% (187/187), done.
remote: Total 347 (delta 73), reused 227 (delta 48), pack-reused 0
Receiving objects: 100% (347/347), 65.70 KiB | 21.90 MiB/s, done.
Resolving deltas: 100% (73/73), done.
make[1]: Entering directory '/home/zloeber/Projects/Temp/packages/install'
make[2]: Entering directory '/home/zloeber/Projects/Temp/packages/vendor/helmfile'
curl --retry 3 --retry-delay 5 --fail -sSL -o packages//vendor/helmfile https://github.com/roboll/helmfile/releases/download/v0.90.8/helmfile_linux_amd64 && chmod +x packages//vendor/helmfile
curl: (23) Failed writing body (0 != 16360)
Makefile:10: recipe for target 'install' failed
make[2]: *** [install] Error 23
make[2]: Leaving directory '/home/zloeber/Projects/Temp/packages/vendor/helmfile'
Makefile:9: recipe for target 'helmfile' failed
make[1]: *** [helmfile] Error 2
make[1]: Leaving directory '/home/zloeber/Projects/Temp/packages/install'
Makefile:16: recipe for target 'packages/install/helmfile' failed
make: *** [packages/install/helmfile] Error 2

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aha! Thanks for sharing that. I think this is the real culprit:

curl --retry 3 --retry-delay 5 --fail -sSL -o packages//vendor/helmfile https://github.com/roboll/helmfile/releases/download/v0.90.8/helmfile_linux_amd64 && chmod +x packages//vendor/helmfile
curl: (23) Failed writing body (0 != 16360)

Which is just really saying that packages//vendor/ does not exist.

See:
https://github.com/cloudposse/packages/blob/master/tasks/Makefile.package#L33

Note: all the other macros have a mkdir -p. This one does not. Let's try fixing the macro first?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I saw that and updated to eliminate the // but still ran into issues. I think calling make recursively will require a full path for INSTALL_PATH regardless. I'm still groking the logic used for this project so please forgive me if I'm missing fundamental logic though.

I've personally used the following without issues:

make packages/install/helmfile INSTALL_PATH=~/.local/bin

Perhaps simply adding a usage example like this would be sufficient?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, I've opened up #272 to fix the example. I think this is the minimal change.

@osterman osterman mentioned this pull request Nov 12, 2019
@osterman
Copy link
Member

@zloeber please rebase

README.md Outdated Show resolved Hide resolved
README.yaml Outdated Show resolved Hide resolved
@osterman
Copy link
Member

Almost good to go. Remove THIS_PATH

zloeber and others added 3 commits November 12, 2019 12:46
Co-Authored-By: Erik Osterman <erik@cloudposse.com>
Co-Authored-By: Erik Osterman <erik@cloudposse.com>
@osterman
Copy link
Member

/codefresh run apk

@osterman
Copy link
Member

/codefresh run docker

README.yaml Outdated Show resolved Hide resolved
README.yaml Outdated Show resolved Hide resolved
@osterman
Copy link
Member

@zloeber tests are passing. Almost good to merge. A few small nitpicks.

zloeber and others added 3 commits November 14, 2019 16:05
Co-Authored-By: Erik Osterman <erik@cloudposse.com>
Co-Authored-By: Erik Osterman <erik@cloudposse.com>
@osterman
Copy link
Member

/codefresh run apk

@osterman
Copy link
Member

/codefresh run docker

@osterman osterman merged commit e2a0d9b into cloudposse:master Nov 15, 2019
@zloeber zloeber deleted the kind branch November 15, 2019 14:06
osterman pushed a commit that referenced this pull request Dec 9, 2019
* Rebuilt README.md (#270)

* Automatically update README nightly (#268)

* Automatically update README nightly

* fix triggers

* add name

* fix syntax

* add labels

* Fix example (#272)

* Update README.md (#273)

* Kind (#266)

* update: add kind

* update: minor pathing fixes to makefile inclusion documentation for a functional example

* update: Additional notes for adding new packages, minor wording fix for description of fetch package, update of readme

* Update README.yaml

Co-Authored-By: Erik Osterman <erik@cloudposse.com>

* Update README.md

Co-Authored-By: Erik Osterman <erik@cloudposse.com>

* update: minor readme fixes

* Update README.yaml

Co-Authored-By: Erik Osterman <erik@cloudposse.com>

* Update README.yaml

Co-Authored-By: Erik Osterman <erik@cloudposse.com>

* Update README.md (#274)

* Automated Package Updates (#275)

* update packages

* Fix vendor packages after updates

* Restore Makefile

* fix tarball

* reset release

* Update actions (#276)

* Update actions

* refactor auto-lable

* remove dup

* Update README.md (#278)

* update packages (#279)

* Automated Package Updates (#280)

* update packages

* fix sops download url

* Automated Package Updates (#281)

* update packages

* Fix pandoc url

* Rollback release

* update packages (#282)

* feature: kubectl plugin manager (krew) app (#286)

* [jx] add tool (#287)

* [jx] add tool

* fix: install as tarball, not binary

* [rancher] Add Package (#288)

* update packages (#285)

* Amtool (#271)

* update: addition of amtool

* update: addition of amtool

* update: amtool build fixes

* update: amtool build fixes

* update: amtool apk build

* fix: add amtool to auto-label

* fix: Makefile fix?

* fix: Makefile auto-label

* update: readme update

* update: auto-label space update

* Automated Package Updates (#289)

* update packages

* update packages

* update packages

* update packages (#290)

* pgmetrics: add package

* pgmetrics: add package
osterman pushed a commit that referenced this pull request Dec 10, 2019
* Rebuilt README.md (#270)

* Automatically update README nightly (#268)

* Automatically update README nightly

* fix triggers

* add name

* fix syntax

* add labels

* Fix example (#272)

* Update README.md (#273)

* Kind (#266)

* update: add kind

* update: minor pathing fixes to makefile inclusion documentation for a functional example

* update: Additional notes for adding new packages, minor wording fix for description of fetch package, update of readme

* Update README.yaml

Co-Authored-By: Erik Osterman <erik@cloudposse.com>

* Update README.md

Co-Authored-By: Erik Osterman <erik@cloudposse.com>

* update: minor readme fixes

* Update README.yaml

Co-Authored-By: Erik Osterman <erik@cloudposse.com>

* Update README.yaml

Co-Authored-By: Erik Osterman <erik@cloudposse.com>

* Update README.md (#274)

* Automated Package Updates (#275)

* update packages

* Fix vendor packages after updates

* Restore Makefile

* fix tarball

* reset release

* Update actions (#276)

* Update actions

* refactor auto-lable

* remove dup

* Update README.md (#278)

* update packages (#279)

* Automated Package Updates (#280)

* update packages

* fix sops download url

* Automated Package Updates (#281)

* update packages

* Fix pandoc url

* Rollback release

* update packages (#282)

* feature: kubectl plugin manager (krew) app (#286)

* [jx] add tool (#287)

* [jx] add tool

* fix: install as tarball, not binary

* [rancher] Add Package (#288)

* update packages (#285)

* Amtool (#271)

* update: addition of amtool

* update: addition of amtool

* update: amtool build fixes

* update: amtool build fixes

* update: amtool apk build

* fix: add amtool to auto-label

* fix: Makefile fix?

* fix: Makefile auto-label

* update: readme update

* update: auto-label space update

* Automated Package Updates (#289)

* update packages

* update packages

* update packages

* update packages (#290)

* cfssl: Add package

* cfssl: Add package
osterman pushed a commit that referenced this pull request Dec 12, 2019
* Rebuilt README.md (#270)

* Automatically update README nightly (#268)

* Automatically update README nightly

* fix triggers

* add name

* fix syntax

* add labels

* Fix example (#272)

* Update README.md (#273)

* Kind (#266)

* update: add kind

* update: minor pathing fixes to makefile inclusion documentation for a functional example

* update: Additional notes for adding new packages, minor wording fix for description of fetch package, update of readme

* Update README.yaml

Co-Authored-By: Erik Osterman <erik@cloudposse.com>

* Update README.md

Co-Authored-By: Erik Osterman <erik@cloudposse.com>

* update: minor readme fixes

* Update README.yaml

Co-Authored-By: Erik Osterman <erik@cloudposse.com>

* Update README.yaml

Co-Authored-By: Erik Osterman <erik@cloudposse.com>

* Update README.md (#274)

* Automated Package Updates (#275)

* update packages

* Fix vendor packages after updates

* Restore Makefile

* fix tarball

* reset release

* Update actions (#276)

* Update actions

* refactor auto-lable

* remove dup

* Update README.md (#278)

* update packages (#279)

* Automated Package Updates (#280)

* update packages

* fix sops download url

* Automated Package Updates (#281)

* update packages

* Fix pandoc url

* Rollback release

* update packages (#282)

* feature: kubectl plugin manager (krew) app (#286)

* [jx] add tool (#287)

* [jx] add tool

* fix: install as tarball, not binary

* [rancher] Add Package (#288)

* update packages (#285)

* Amtool (#271)

* update: addition of amtool

* update: addition of amtool

* update: amtool build fixes

* update: amtool build fixes

* update: amtool apk build

* fix: add amtool to auto-label

* fix: Makefile fix?

* fix: Makefile auto-label

* update: readme update

* update: auto-label space update

* Automated Package Updates (#289)

* update packages

* update packages

* update packages

* update packages (#290)

* k9s: add package

* k9s: add package
osterman added a commit that referenced this pull request Dec 26, 2019
* Rebuilt README.md (#270)

* Automatically update README nightly (#268)

* Automatically update README nightly

* fix triggers

* add name

* fix syntax

* add labels

* Fix example (#272)

* Update README.md (#273)

* Kind (#266)

* update: add kind

* update: minor pathing fixes to makefile inclusion documentation for a functional example

* update: Additional notes for adding new packages, minor wording fix for description of fetch package, update of readme

* Update README.yaml

Co-Authored-By: Erik Osterman <erik@cloudposse.com>

* Update README.md

Co-Authored-By: Erik Osterman <erik@cloudposse.com>

* update: minor readme fixes

* Update README.yaml

Co-Authored-By: Erik Osterman <erik@cloudposse.com>

* Update README.yaml

Co-Authored-By: Erik Osterman <erik@cloudposse.com>

* Update README.md (#274)

* Automated Package Updates (#275)

* update packages

* Fix vendor packages after updates

* Restore Makefile

* fix tarball

* reset release

* Update actions (#276)

* Update actions

* refactor auto-lable

* remove dup

* Update README.md (#278)

* update packages (#279)

* Automated Package Updates (#280)

* update packages

* fix sops download url

* Automated Package Updates (#281)

* update packages

* Fix pandoc url

* Rollback release

* update packages (#282)

* feature: kubectl plugin manager (krew) app (#286)

* [jx] add tool (#287)

* [jx] add tool

* fix: install as tarball, not binary

* [rancher] Add Package (#288)

* update packages (#285)

* Amtool (#271)

* update: addition of amtool

* update: addition of amtool

* update: amtool build fixes

* update: amtool build fixes

* update: amtool apk build

* fix: add amtool to auto-label

* fix: Makefile fix?

* fix: Makefile auto-label

* update: readme update

* update: auto-label space update

* Automated Package Updates (#289)

* update packages

* update packages

* update packages

* update packages (#290)

* popeye: add package

Co-authored-by: Erik Osterman <erik@cloudposse.com>
Co-authored-by: Cloud Posse Bot (CI/CD) <ops@cloudposse.com>
osterman added a commit that referenced this pull request Dec 27, 2019
* Rebuilt README.md (#270)

* Automatically update README nightly (#268)

* Automatically update README nightly

* fix triggers

* add name

* fix syntax

* add labels

* Fix example (#272)

* Update README.md (#273)

* Kind (#266)

* update: add kind

* update: minor pathing fixes to makefile inclusion documentation for a functional example

* update: Additional notes for adding new packages, minor wording fix for description of fetch package, update of readme

* Update README.yaml

Co-Authored-By: Erik Osterman <erik@cloudposse.com>

* Update README.md

Co-Authored-By: Erik Osterman <erik@cloudposse.com>

* update: minor readme fixes

* Update README.yaml

Co-Authored-By: Erik Osterman <erik@cloudposse.com>

* Update README.yaml

Co-Authored-By: Erik Osterman <erik@cloudposse.com>

* Update README.md (#274)

* Automated Package Updates (#275)

* update packages

* Fix vendor packages after updates

* Restore Makefile

* fix tarball

* reset release

* Update actions (#276)

* Update actions

* refactor auto-lable

* remove dup

* Update README.md (#278)

* update packages (#279)

* Automated Package Updates (#280)

* update packages

* fix sops download url

* Automated Package Updates (#281)

* update packages

* Fix pandoc url

* Rollback release

* update packages (#282)

* feature: kubectl plugin manager (krew) app (#286)

* [jx] add tool (#287)

* [jx] add tool

* fix: install as tarball, not binary

* [rancher] Add Package (#288)

* update packages (#285)

* Amtool (#271)

* update: addition of amtool

* update: addition of amtool

* update: amtool build fixes

* update: amtool build fixes

* update: amtool apk build

* fix: add amtool to auto-label

* fix: Makefile fix?

* fix: Makefile auto-label

* update: readme update

* update: auto-label space update

* Automated Package Updates (#289)

* update packages

* update packages

* update packages

* update packages (#290)

* katafygio: Add package

Co-authored-by: Erik Osterman <erik@cloudposse.com>
Co-authored-by: Cloud Posse Bot (CI/CD) <ops@cloudposse.com>
osterman added a commit that referenced this pull request Dec 27, 2019
* Rebuilt README.md (#270)

* Automatically update README nightly (#268)

* Automatically update README nightly

* fix triggers

* add name

* fix syntax

* add labels

* Fix example (#272)

* Update README.md (#273)

* Kind (#266)

* update: add kind

* update: minor pathing fixes to makefile inclusion documentation for a functional example

* update: Additional notes for adding new packages, minor wording fix for description of fetch package, update of readme

* Update README.yaml

Co-Authored-By: Erik Osterman <erik@cloudposse.com>

* Update README.md

Co-Authored-By: Erik Osterman <erik@cloudposse.com>

* update: minor readme fixes

* Update README.yaml

Co-Authored-By: Erik Osterman <erik@cloudposse.com>

* Update README.yaml

Co-Authored-By: Erik Osterman <erik@cloudposse.com>

* Update README.md (#274)

* Automated Package Updates (#275)

* update packages

* Fix vendor packages after updates

* Restore Makefile

* fix tarball

* reset release

* Update actions (#276)

* Update actions

* refactor auto-lable

* remove dup

* Update README.md (#278)

* update packages (#279)

* Automated Package Updates (#280)

* update packages

* fix sops download url

* Automated Package Updates (#281)

* update packages

* Fix pandoc url

* Rollback release

* update packages (#282)

* feature: kubectl plugin manager (krew) app (#286)

* [jx] add tool (#287)

* [jx] add tool

* fix: install as tarball, not binary

* [rancher] Add Package (#288)

* update packages (#285)

* Amtool (#271)

* update: addition of amtool

* update: addition of amtool

* update: amtool build fixes

* update: amtool build fixes

* update: amtool apk build

* fix: add amtool to auto-label

* fix: Makefile fix?

* fix: Makefile auto-label

* update: readme update

* update: auto-label space update

* Automated Package Updates (#289)

* update packages

* update packages

* update packages

* update packages (#290)

* [k3d]: Add Package

Co-authored-by: Erik Osterman <erik@cloudposse.com>
Co-authored-by: Cloud Posse Bot (CI/CD) <ops@cloudposse.com>
osterman added a commit that referenced this pull request Jan 17, 2020
* Rebuilt README.md (#270)

* Automatically update README nightly (#268)

* Automatically update README nightly

* fix triggers

* add name

* fix syntax

* add labels

* Fix example (#272)

* Update README.md (#273)

* Kind (#266)

* update: add kind

* update: minor pathing fixes to makefile inclusion documentation for a functional example

* update: Additional notes for adding new packages, minor wording fix for description of fetch package, update of readme

* Update README.yaml

Co-Authored-By: Erik Osterman <erik@cloudposse.com>

* Update README.md

Co-Authored-By: Erik Osterman <erik@cloudposse.com>

* update: minor readme fixes

* Update README.yaml

Co-Authored-By: Erik Osterman <erik@cloudposse.com>

* Update README.yaml

Co-Authored-By: Erik Osterman <erik@cloudposse.com>

* Update README.md (#274)

* Automated Package Updates (#275)

* update packages

* Fix vendor packages after updates

* Restore Makefile

* fix tarball

* reset release

* Update actions (#276)

* Update actions

* refactor auto-lable

* remove dup

* Update README.md (#278)

* update packages (#279)

* Automated Package Updates (#280)

* update packages

* fix sops download url

* Automated Package Updates (#281)

* update packages

* Fix pandoc url

* Rollback release

* update packages (#282)

* feature: kubectl plugin manager (krew) app (#286)

* [jx] add tool (#287)

* [jx] add tool

* fix: install as tarball, not binary

* [rancher] Add Package (#288)

* update packages (#285)

* Amtool (#271)

* update: addition of amtool

* update: addition of amtool

* update: amtool build fixes

* update: amtool build fixes

* update: amtool apk build

* fix: add amtool to auto-label

* fix: Makefile fix?

* fix: Makefile auto-label

* update: readme update

* update: auto-label space update

* Automated Package Updates (#289)

* update packages

* update packages

* update packages

* update packages (#290)

* pack: Add package

* pack: Add package

* update: fix merge conflicts

* Update README.md

Co-authored-by: Erik Osterman <erik@cloudposse.com>
Co-authored-by: Cloud Posse Bot (CI/CD) <ops@cloudposse.com>
Co-authored-by: actions-bot <58130806+actions-bot@users.noreply.github.com>
osterman added a commit that referenced this pull request Jan 22, 2020
* Rebuilt README.md (#270)

* Automatically update README nightly (#268)

* Automatically update README nightly

* fix triggers

* add name

* fix syntax

* add labels

* Fix example (#272)

* Update README.md (#273)

* Kind (#266)

* update: add kind

* update: minor pathing fixes to makefile inclusion documentation for a functional example

* update: Additional notes for adding new packages, minor wording fix for description of fetch package, update of readme

* Update README.yaml

Co-Authored-By: Erik Osterman <erik@cloudposse.com>

* Update README.md

Co-Authored-By: Erik Osterman <erik@cloudposse.com>

* update: minor readme fixes

* Update README.yaml

Co-Authored-By: Erik Osterman <erik@cloudposse.com>

* Update README.yaml

Co-Authored-By: Erik Osterman <erik@cloudposse.com>

* Update README.md (#274)

* Automated Package Updates (#275)

* update packages

* Fix vendor packages after updates

* Restore Makefile

* fix tarball

* reset release

* Update actions (#276)

* Update actions

* refactor auto-lable

* remove dup

* Update README.md (#278)

* update packages (#279)

* Automated Package Updates (#280)

* update packages

* fix sops download url

* Automated Package Updates (#281)

* update packages

* Fix pandoc url

* Rollback release

* update packages (#282)

* feature: kubectl plugin manager (krew) app (#286)

* [jx] add tool (#287)

* [jx] add tool

* fix: install as tarball, not binary

* [rancher] Add Package (#288)

* update packages (#285)

* Amtool (#271)

* update: addition of amtool

* update: addition of amtool

* update: amtool build fixes

* update: amtool build fixes

* update: amtool apk build

* fix: add amtool to auto-label

* fix: Makefile fix?

* fix: Makefile auto-label

* update: readme update

* update: auto-label space update

* Automated Package Updates (#289)

* update packages

* update packages

* update packages

* update packages (#290)

* popeye: add package

* argocd: Add package

* argocd: version update

* update: fix argocd apk build

* update: fix argocd apk build

Co-authored-by: Erik Osterman <erik@cloudposse.com>
Co-authored-by: Cloud Posse Bot (CI/CD) <ops@cloudposse.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants