Skip to content

Commit 679495b

Browse files
committed
fix linter
Signed-off-by: ezgidemirel <ezgidemirel91@gmail.com>
1 parent 91d8c92 commit 679495b

2 files changed

Lines changed: 7 additions & 10 deletions

File tree

cmd/crossplane/core/init.go

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ type initCommand struct {
4747

4848
EnableWebhooks bool `aliases:"webhook-enabled" default:"true" env:"ENABLE_WEBHOOKS,WEBHOOK_ENABLED" help:"Enable webhook configuration."`
4949

50-
WebhookServiceName string `env:"WEBHOOK_SERVICE_NAME" help:"The name of the Service object that the webhook service will be run."`
51-
WebhookServiceNamespace string `env:"WEBHOOK_SERVICE_NAMESPACE" help:"The namespace of the Service object that the webhook service will be run."`
52-
WebhookServicePort int32 `env:"WEBHOOK_SERVICE_PORT" help:"The port of the Service that the webhook service will be run."`
53-
TLSCASecretName string `env:"TLS_CA_SECRET_NAME" help:"The name of the Secret that the initializer will fill with TLS CA certificate."`
54-
TLSServerSecretName string `env:"TLS_SERVER_SECRET_NAME" help:"The name of the Secret that the initializer will fill with TLS server certificates."`
55-
TLSClientSecretName string `env:"TLS_CLIENT_SECRET_NAME" help:"The name of the Secret that the initializer will fill with TLS client certificates."`
50+
WebhookServiceName string `env:"WEBHOOK_SERVICE_NAME" help:"The name of the Service object that the webhook service will be run."`
51+
WebhookServiceNamespace string `env:"WEBHOOK_SERVICE_NAMESPACE" help:"The namespace of the Service object that the webhook service will be run."`
52+
WebhookServicePort int32 `env:"WEBHOOK_SERVICE_PORT" help:"The port of the Service that the webhook service will be run."`
53+
TLSCASecretName string `env:"TLS_CA_SECRET_NAME" help:"The name of the Secret that the initializer will fill with TLS CA certificate."`
54+
TLSServerSecretName string `env:"TLS_SERVER_SECRET_NAME" help:"The name of the Secret that the initializer will fill with TLS server certificates."`
55+
TLSClientSecretName string `env:"TLS_CLIENT_SECRET_NAME" help:"The name of the Secret that the initializer will fill with TLS client certificates."`
5656
}
5757

5858
// Run starts the initialization process.
@@ -116,9 +116,7 @@ func (c *initCommand) Run(s *runtime.Scheme, log logging.Logger) error {
116116
initializer.NewCoreCRDsMigrator("usages.apiextensions.crossplane.io", "v1beta1"),
117117
initializer.NewCoreCRDsMigrator("functions.pkg.crossplane.io", "v1beta1"),
118118
initializer.NewCoreCRDsMigrator("functionrevisions.pkg.crossplane.io", "v1beta1"),
119-
)
120-
121-
steps = append(steps, initializer.NewLockObject(),
119+
initializer.NewLockObject(),
122120
initializer.NewPackageInstaller(c.Providers, c.Configurations, c.Functions),
123121
initializer.StepFunc(initializer.DefaultDeploymentRuntimeConfig),
124122
initializer.DefaultManagedResourceActivationPolicy(c.Activations...),

internal/xpkg/validate.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,3 @@ func NewFunctionValidator() Validator {
4747
parser.ObjectLinterFns(IsFunction, PackageValidSemver),
4848
parser.ObjectLinterFns())
4949
}
50-

0 commit comments

Comments
 (0)