-
Notifications
You must be signed in to change notification settings - Fork 42
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
Conversation
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."` |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Description of your changes
Adds
up enterprise mail
EXPERIMENTAL command for viewing emails that are stored asSecret
s in a Kubernetes cluster using a small mail portal provided by a local server.I have:
make reviewable
to ensure this PR is ready for review.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
Secret
s.