Skip to content

Commit

Permalink
fix: panic in render app deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
tinyzimmer committed Oct 20, 2023
1 parent 3c5bd39 commit 52a1673
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/resources/app/app_deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func newAppContainerForCR(instance *appv1.VDICluster) corev1.Container {
if instance.EnableCORS() {
args = append(args, "--enable-cors")
}
if instance.Spec.App.TLS != nil && instance.Spec.App.TLS.Disable {
if instance.Spec.App != nil && instance.Spec.App.TLS != nil && instance.Spec.App.TLS.Disable {
args = append(args, "--disable-tls")
}
return corev1.Container{
Expand Down

0 comments on commit 52a1673

Please sign in to comment.