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

Add up enterprise mail command #155

Merged
merged 5 commits into from
Feb 14, 2022
Merged

Conversation

hasheddan
Copy link
Contributor

Description of your changes

Adds up enterprise mail EXPERIMENTAL command for viewing emails that are stored as Secrets in a Kubernetes cluster using a small mail portal provided by a local server.

I have:

  • Read and followed Upbound's contribution process.
  • Run make reviewable to ensure this PR is ready for review.
  • Added backport release-x.y labels to auto-backport this PR, as appropriate.

How has this code been tested

Tested this out with a cluster with valid emails as Secrets.

Screenshot from 2022-02-14 12-18-22
Screenshot from 2022-02-14 12-17-26

Adds a simple mail portal template for rendering emails stored as
secrets in a cluster.

Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
Adds a command to run a small local webserver that renders emails stored
as secrets in a cluster.

Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
Adds unit tests for enterprise mail command.

Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
We are opting to make the command visible for discoverability, but mark
it explicitly as experimental.

Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
Adds the 1.17 go generate directive.

Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
@@ -51,6 +51,7 @@ func (c *Cmd) AfterApply(kongCtx *kong.Context) error {
// Cmd contains commands for managing enterprise.
type Cmd struct {
Install installCmd `cmd:"" group:"enterprise" help:"Install enterprise."`
Mail mailCmd `cmd:"" group:"enterprise" help:"[EXPERIMENTAL] Run a local mail portal."`
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Opted to make visible as it will likely be recommended route for quickstart, but marked explicitly as EXPERIMENTAL. Probably should think about potentially making a config flag that turns experimental features on or off soon...

@@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build generate
Copy link
Member

Choose a reason for hiding this comment

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

Guessing this came in through going to go 1.17? I seem to remember something similar happening in my provider-aws PR awhile back.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@hasheddan hasheddan merged commit bf81ce4 into upbound:main Feb 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants