-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
26 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
controllers/akodeploymentconfig/akodeploymentconfig_controller_types.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Copyright 2020 VMware, Inc. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
package akodeploymentconfig | ||
|
||
import ( | ||
akov1beta1 "github.com/vmware/load-balancer-and-ingress-services-for-kubernetes/pkg/apis/ako/v1beta1" | ||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||
) | ||
|
||
// AviInfraSetting is a top-level type | ||
type AviInfraSetting struct { | ||
metav1.TypeMeta `json:",inline"` | ||
metav1.ObjectMeta `json:"metadata,omitempty"` | ||
Spec AviInfraSettingSpec `json:"spec,omitempty"` | ||
} | ||
|
||
// AviInfraSettingSpec consists of the main AviInfraSetting settings | ||
// Redefine AviInfraSettingSpec so that NSXSettings value is not required when reconciling AKODeploymentConfig | ||
type AviInfraSettingSpec struct { | ||
Network akov1beta1.AviInfraSettingNetwork `json:"network,omitempty"` | ||
SeGroup akov1beta1.AviInfraSettingSeGroup `json:"seGroup,omitempty"` | ||
L7Settings akov1beta1.AviInfraL7Settings `json:"l7Settings,omitempty"` | ||
NSXSettings *akov1beta1.AviInfraNSXSettings `json:"nsxSettings,omitempty"` | ||
} |