2023-09-19 17:28:41 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2023-09-19 17:52:55 +00:00
|
|
|
"antoine-roux.tk/projects/go/pulumi-library/pkg/application"
|
2023-09-19 17:28:41 +00:00
|
|
|
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
pulumi.Run(func(ctx *pulumi.Context) error {
|
|
|
|
|
|
|
|
nginxApplication, err := application.NewApplication(ctx, &application.Configuration{
|
|
|
|
Name: "nginx",
|
|
|
|
Namespace: "pulumi-test",
|
|
|
|
Image: "nginx",
|
|
|
|
Env: map[string]string{
|
|
|
|
"version": "1.0.0",
|
|
|
|
},
|
|
|
|
})
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
|
|
|
|
ctx.Export("name", nginxApplication.DeploymentName)
|
|
|
|
|
|
|
|
return nil
|
|
|
|
})
|
|
|
|
}
|