@@ -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 ... ),
0 commit comments