We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
HostRule
When creating a HostRule resource by consuming AKO as a Go library, the TLS field is required. However the CRD identifies it as optional.
desired := &aviv1beta1.HostRule{ ObjectMeta: metav1.ObjectMeta{ Name: "app1", Labels: map[string]string{ "app": "gslb", }, }, Spec: aviv1beta1.HostRuleSpec{ VirtualHost: aviv1beta1.HostRuleVirtualHost{ FqdnType: aviv1beta1.Exact, Fqdn: "app.default.example.com", EnableVirtualHost: ptr.To(true), Gslb: aviv1beta1.HostRuleGSLB{ Fqdn: "app.example.com", }, }, }, }
_, err := akoclient.AkoV1beta1().HostRules("my-namespace").Create(ctx, desired, metav1.CreateOptions{})
The resource is applied successfully.
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
When creating a
HostRule
resource by consuming AKO as a Go library, the TLS field is required. However the CRD identifies it as optional.Reproduction steps
HostRule
resource which does not explicitly define a TLS section:Expected behavior
The resource is applied successfully.
Additional context
No response
The text was updated successfully, but these errors were encountered: