Skip to content

Commit 63d3064

Browse files
committed
fix: linting issues
1 parent 717e9fa commit 63d3064

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

install/deploy/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ func main() {
3838
apiServer := kubeconfig.ApplyT(func(kubeconfig string) (apiServer string, err error) {
3939
apiServer = cfg.Get("api-server")
4040
if apiServer == "" {
41-
apiServer, err = extractApiServer(kubeconfig)
41+
apiServer, err = extractAPIServer(kubeconfig)
4242
}
4343
return
4444
}).(pulumi.StringOutput)
4545

4646
// Install Romeo
4747
rist, err := parts.NewRomeoInstall(ctx, "install", &parts.RomeoInstallArgs{
4848
Namespace: pulumi.String(cfg.Get("namespace")),
49-
ApiServer: apiServer,
49+
APIServer: apiServer,
5050
}, opts...)
5151
if err != nil {
5252
return err
@@ -68,7 +68,7 @@ type PartialKubeconfig struct {
6868
} `yaml:"clusters"`
6969
}
7070

71-
func extractApiServer(kubeconfig string) (string, error) {
71+
func extractAPIServer(kubeconfig string) (string, error) {
7272
kc := PartialKubeconfig{}
7373
if err := yaml.Unmarshal([]byte(kubeconfig), &kc); err != nil {
7474
return "", err

install/deploy/parts/romeo.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ type (
4444
// Namespace in which to sets up the Romeo environments.
4545
Namespace pulumi.StringPtrInput
4646

47-
// ApiServer URL to reach the Kubernetes cluster at.
47+
// APIServer URL to reach the Kubernetes cluster at.
4848
// Will be used to create the kubeconfig (output).
49-
ApiServer pulumi.StringInput
49+
APIServer pulumi.StringInput
5050
}
5151
)
5252

@@ -57,7 +57,7 @@ func NewRomeoInstall(ctx *pulumi.Context, name string, args *RomeoInstallArgs, o
5757
if args == nil {
5858
return nil, errors.New("romeo install does not support default arguments")
5959
}
60-
if args.ApiServer == pulumi.String("") {
60+
if args.APIServer == pulumi.String("") {
6161
return nil, errors.New("api-server is required")
6262
}
6363

@@ -252,7 +252,7 @@ func (rist *RomeoInstall) provision(ctx *pulumi.Context, args *RomeoInstallArgs,
252252

253253
func (rist *RomeoInstall) outputs(args *RomeoInstallArgs) {
254254
rist.Namespace = rist.ns.Name
255-
rist.Kubeconfig = pulumi.All(rist.sec.Data, args.ApiServer, rist.ns.Name).ApplyT(func(all []any) string {
255+
rist.Kubeconfig = pulumi.All(rist.sec.Data, args.APIServer, rist.ns.Name).ApplyT(func(all []any) string {
256256
data := all[0].(map[string]string)
257257
apiServer := all[1].(string)
258258
ns := all[2].(string)

0 commit comments

Comments
 (0)