ContainerImage.Pinniped/hack
Jason van Zyl 6491742c3a Minimal changes to allow an alternate deployment mechanism
The purpose of this change is to allow Helm to be used to deploy Pinniped
into the local KinD cluster for the local integration tests. That said,
the change allows any alternate deployment mechanism, I just happen
to be using it with Helm.

All default behavior is preserved. This won't change how anyone uses the
script today, it just allows me not to copy/paste the whole setup for the
integration tests.

Changes:

1) An option called `--alternate-deploy <path-to-deploy-script>` has been
added, that when enabled calls the specified script instead of using ytt
and kapp. The alternate deploy script is called with the app to deploy
and the tag of the docker image to use. We set the default value of
the alternate_deploy variable to undefined, and there is a check that
tests if the alternate deploy is defined. For the superivsor it looks
like this:

```
if [ "$alternate_deploy" != "undefined" ]; then
  log_note "The Pinniped Supervisor will be deployed with $alternate_deploy pinniped-supervisor $tag..."
  $alternate_deploy pinniped-supervisor $tag
else
  normal ytt/kapp deploy
fi
```

2) Additional log_note entries have been added to enumerate all values passed
into the ytt/kapp deploy. Used while I was trying to reach parity in the integration
tests, but I think they are useful for debugging.

3) The manifests produced by ytt and written to /tmp are now named individually.
This is so an easy comparison can be made between manifests produced by a ytt/kapp
run of integration tests and manifests produced by helm run of the integration tests.
If something is not working I have been comparing the manifests after these runs to
find differences.
2022-02-20 10:15:29 -05:00
..
lib Enable aggregator routing on kind clusters 2021-09-15 15:09:15 -04:00
boilerplate.go.txt generated: include 2021 in copyright 2021-02-11 10:52:01 -05:00
check-copyright-year.sh Add more text explaining what copyright notice should look like 2021-01-05 16:06:59 -08:00
get-ldflags.sh Update copyright to reference Pinniped contributors 2020-09-16 10:05:51 -04:00
header.txt WIP adding access token to storage upon login 2022-01-12 18:03:25 -08:00
integration-test-env-goland.sh Allow focused integration tests to be run from the GoLand UI again 2021-09-21 12:04:45 -07:00
kind-down.sh Whitespace-only change in two files 2020-10-30 15:18:40 -07:00
kind-up.sh Trivial change to a comment 2021-01-22 12:43:35 -08:00
module.sh Increase timeout on linter for when CI gets slow 2022-01-18 10:07:36 -08:00
prepare-for-integration-tests.sh Minimal changes to allow an alternate deployment mechanism 2022-02-20 10:15:29 -05:00
prepare-impersonator-on-kind.sh Add hack/prepare-supervisor-on-kind.sh 2021-03-31 11:39:10 -07:00
prepare-supervisor-on-kind.sh Use proxy for pinniped get kubeconfig in hack/prepare-supervisor-on-kind.sh 2021-05-12 11:34:16 -07:00
prepare-webhook-on-kind.sh hack: add prepare-webhook-on-kind.sh 2021-04-19 16:10:20 -04:00
update.sh Update ./hack/update.sh to add a "latest" package. 2021-02-16 12:28:29 -06:00
verify.sh Update copyright to reference Pinniped contributors 2020-09-16 10:05:51 -04:00