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

Sync main into release/v1 #1790

Merged
merged 28 commits into from
Oct 5, 2021
Merged

Sync main into release/v1 #1790

merged 28 commits into from
Oct 5, 2021

Conversation

carolynvs
Copy link
Member

Merge recent changes on main into the release/v1 branch

MChorfa and others added 26 commits September 13, 2021 11:35
* Update helm3 mixin doc

 Document how to specify multiple values.
close MChorfa/porter-helm3#24

Signed-off-by: Mohamed Chorfa <[email protected]>
When we parse outputs for jsonPath expressions, numbers are not being
formatted as expected. For example, a number like "123123123" is being
output as "1.23123123e+08".

This is due to how we are parsing the jsonPath. The output is marshaled
into a generic map, where json numbers are represented as float64. We
use fmt.Sprintf to format the matching output value, and Go by default
formats float with %f/%g, neither of which is the desired format.

I've updated our json parsing to use the Number type so that the format
of the captured value matches what was used in the original output.

Signed-off-by: Carolyn Van Slyck <[email protected]>
Helm2 is deprecated and the example doesn't work anymore because of
that. Switch to the helm3 mixin.

Signed-off-by: Carolyn Van Slyck <[email protected]>
Properly format numbers parsed from jsonPath outputs
When we build the example bundles, they rely on some mixins being
installed on the CI machine. In a recent PR, I updated an example to use
the helm3 mixin since the old helm mixin is deprecated. I forgot to
update the mixins installed in CI, so the example mixin build is
failing.

This should fix that.

Signed-off-by: Carolyn Van Slyck <[email protected]>
…during-build

Install the helm3 mixin on CI machine
* Announce v1.0.0-alpha.3

Add a blog post announcing the v1.0.0-alpha.3 prerelease, highlighting
key features and explaining how to install it safely.

Signed-off-by: Carolyn Van Slyck <[email protected]>

* Fix twitter card

Signed-off-by: Carolyn Van Slyck <[email protected]>

* Review feedback

Signed-off-by: Carolyn Van Slyck <[email protected]>
In order to completely switch over to helm3 we need one more feature in
the helm3 mixin, --create-namespace, since our unit tests rely on that.

So I'm adding it back for now to get the tests passing.

Signed-off-by: Carolyn Van Slyck <[email protected]>
Update all usages of the old helm2 mixin to helm3. I did not change the
default mixin installed with Porter because we are avoiding all breaking
changes on v0.38 and this would count as a breaking change, even though
no one should be using helm2 anymore.

Signed-off-by: Carolyn Van Slyck <[email protected]>
This was a debug print statement that I meant to just add while fixing
something locally. It shouldn't be printed every time you run a bundle!

Signed-off-by: Carolyn Van Slyck <[email protected]>
With the helm3 mixin using --atomic, helm is waiting for the deployment
to be considered complete. However when installing on kind, the default
service type of loadbalancer will never get an ip address assigned. I've
changed the service type to NodePort so that the helm release completes
successfully and doesn't just timeout waiting for an ip that is never
coming.

Signed-off-by: Carolyn Van Slyck <[email protected]>
Only give permission to the current user, never to the group or other.
Only mixins/plugins and scripts should be executable.
When porter accesses files, it checks that there aren't any
credentials/parameteres/claims with wide-open permissions.
This check is skipped on Windows because files by default are not
shared, and Go can't accurately report file permissions on Windows.

$ porter --debug list --debug-plugins
Resolved porter binary from /usr/local/bin/porter to /Users/carolynvs/.porter/porter
Resolved storage plugin to storage.porter.filesystem
/Users/carolynvs/.porter/porter plugin run storage.porter.filesystem
PORTER HOME: /Users/carolynvs/.porter
Checking file permissions in /Users/carolynvs/.porter

Error: could not list installations: could not read storage schema document: incorrect file permissions on /Users/carolynvs/.porter/config.toml, it should be 600. Correct it manually or by running porter storage fix-permissions.

$ porter storage fix-permissions
Resetting file permissions in /Users/carolynvs/.porter...

$ porter --debug list --debug-plugins
Resolved porter binary from /usr/local/bin/porter to /Users/carolynvs/.porter/porter
Resolved storage plugin to storage.porter.filesystem
/Users/carolynvs/.porter/porter plugin run storage.porter.filesystem
Checking file permissions in /Users/carolynvs/.porter

NAME                   CREATED      MODIFIED     LAST ACTION   LAST STATUS
bug                    2021-09-20   2021-09-20   install       succeeded
porter-hello           2021-09-20   2021-09-20   install       failed
whalegap               2021-09-14   2021-09-14   install       succeeded
mas-whales             2021-09-14   2021-09-14   install       failed
mybuns                 2021-08-10   2021-08-10   install       succeeded
spike-helm3-mysql      2021-08-02   2021-08-02   install       succeeded
helm3-mysql            2021-07-29   2021-07-29   install       succeeded
hello-keyvault         2021-07-27   2021-07-27   install       succeeded
helm-mysql             2021-06-30   2021-06-30   install       succeeded
tmp                    2021-06-30   2021-06-30   upgrade       succeeded
credentials-tutorial   2021-06-29   2021-06-29   install       succeeded
porterops              2021-06-10   2021-06-10   install       succeeded
kubernetes             2020-08-24   2020-08-24   install       succeeded
HELLO                  2020-08-17   2020-08-17   uninstall     succeeded

Signed-off-by: Carolyn Van Slyck <[email protected]>
Now that helm runs with --atomic it became painfully clear that we
weren't passing the username/password for mysql correctly through the
wordpress test bundle. This fixes the wiring between the two bundles so
that wordpress connects to the db created by its dependency.

Signed-off-by: Carolyn Van Slyck <[email protected]>
Add a flag to the bundle actions allowing the user to skip saving a copy
of the logs to Porter's datastore.

porter install --no-logs

Now when they run porter logs -i mybuns, it will return "no logs found".

This is useful in cases where the logs are too large to store.

Signed-off-by: Carolyn Van Slyck <[email protected]>
I went through our top broken links on Netlify Analytics and fixed them.

Signed-off-by: Carolyn Van Slyck <[email protected]>
* Blog about the helm3 v0.1.14 mixin release

Explain the latest release and why Porter moved to it immediately.

Signed-off-by: Carolyn Van Slyck <[email protected]>

* Include notes for the v0.1.15 release

Signed-off-by: Carolyn Van Slyck <[email protected]>
update helm3 mixin documentation to the latest release
Signed-off-by: Carolyn Van Slyck <[email protected]>
@carolynvs
Copy link
Member Author

/azp run porter-integration

@carolynvs carolynvs marked this pull request as ready for review October 4, 2021 20:15
@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

The changes to how we run the wordpress bundle has exposed
a bug in running dependencies that was introduced in v1. We weren't resolving parameters for dependencies
and were only passing in the specified params from the command line or bundle overrides.

Signed-off-by: Carolyn Van Slyck <[email protected]>
@carolynvs carolynvs changed the base branch from main to release/v1 October 5, 2021 17:14
@carolynvs
Copy link
Member Author

/azp run porter-integration

@azure-pipelines
Copy link

Pull request contains merge conflicts.

Signed-off-by: Carolyn Van Slyck <[email protected]>
@carolynvs
Copy link
Member Author

/azp run porter-integration

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@carolynvs carolynvs merged commit c985eb3 into getporter:release/v1 Oct 5, 2021
@carolynvs carolynvs deleted the sync branch October 5, 2021 17:52
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.

3 participants