Helm tweaks + better makefile "ensure"#97
Conversation
Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
also ensure that permissions are set correctly and use the 'latest' tag for the debian trust package when building a demo cluster Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
irbekrm
left a comment
There was a problem hiding this comment.
Thanks @SgtCoDFish I've added a couple nits and comments.
Generally from a perspective of someone who is going to perhaps deploy this project together with some other projects I prefer an approach where make targets for creating a (kind) cluster and deploying the actual software don't depend on each other, so if I already have a cluster with some stuff and I want to deploy trust-manager to that particular cluster, I have a straightforward make target where I can pass a kubeconfig or kind cluster name and it will do it.
However, that approach is also not perfect as if you want to load images it'll only work for kind clusters anyway. So happy to approve minus a couple nits and comments 👍🏼
I think that's a totally valid thing but I'm not sure from the eyes of an end-user it's how I'd see it. As an end-user I ideally wouldn't be cloning the repo to use the makefile - I'd be installing from Helm, because that's the supported way. Most of this is very dev-focused, I guess? |
Yeah I also meant it from dev perspective - I could have scripts that I use that create a certain cluster configuration with a certain name where I want to install trust or I might want to install two cert-manager related projects from latest master to the same cluster- in both cases it'd be easier if they don't require a specific cluster name. |
also add CI var default, use kubeconfig flags everywhere Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
This never worked previously because it was set up wrong. This is documented on the ginkgo site but it's not obvious: https://onsi.github.io/ginkgo/\#supporting-custom-configuration-custom-command-line-flags This also moves the init to the "smoke_test.go" file rather than having it in "smoke.go". This was required for the flags to be respected, and in any case "smoke.go" just seems confusing when this directory / package is entirely about testing. Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
this allows us to write the kubeconfig at cluster creation, which is slightly cleaner than having to write it just after creation. this also prevents kind from changing the default kubeconfig Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
|
I've pushed the requested changes and a couple more:
|
|
Thanks for making the changes @SgtCoDFish !
I think it makes sense to do whatever is needed to make the tests less flakey. In this PR, perhaps we could print something like |
I like this, makes a lot of sense. Will add 👍 |
also adds some basic colors in output when not in CI Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
irbekrm
left a comment
There was a problem hiding this comment.
Thanks for working on this and for making all the changes @SgtCoDFish !
This looks good to go in to me 👍🏼 I think it's definitely an improvement
/lgtm
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: irbekrm, SgtCoDFish The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
See individual commits for details