-
Notifications
You must be signed in to change notification settings - Fork 423
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
missing the envoy-gateaway-config for certgen command #4935
Comments
the certgen command just read the opt1: init with true for the gateway/api/v1alpha1/envoygateway_helpers.go Lines 168 to 176 in 67bf63c
to // DefaultEnvoyGatewayProvider returns a new EnvoyGatewayProvider with default configuration parameters.
func DefaultEnvoyGatewayProvider() *EnvoyGatewayProvider {
return &EnvoyGatewayProvider{
Type: ProviderTypeKubernetes,
Kubernetes: &EnvoyGatewayKubernetesProvider{
LeaderElection: DefaultLeaderElection(),
OverwriteControlPlaneCerts: true,
},
}
} opt2: support gateway/internal/cmd/certgen.go Lines 80 to 90 in 67bf63c
the line 90, set the parameter with secrets, err := kubernetes.CreateOrUpdateSecrets(ctx, cli, kubernetes.CertsToSecret(cfg.Namespace, certs), true) opt3: mount the |
@arkodg with opt 3, we have an issue: the job is executed in a pre-install/update hook, so it would execute before the configmap is created/updated and would either fail or run with the previous versions's config. Since this functionality is anyway (?) specific to cert-gen, maybe we can just make it a flag for that command? |
good point, yeah flag works |
for command flag +1 |
+1 for flag |
Description:
Currently, the certgen job does not mount the envoy-gateway-config, so it can not read the extension config from envoy-gateway-config.
Repro steps:
Environment:
Logs:
The text was updated successfully, but these errors were encountered: