Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,14 @@ type OverlayExtensionConfigList struct {
// +kubebuilder:validation:XValidation:rule="!has(oldSelf.extensionIPRange) || has(self.extensionIPRange)", message="ExtensionIPRange is required once set"
type OverlayExtensionConfigSpec struct {
// ExtensionIPRange field defines a CIDR that should be able to reach routing domain ip addresses.
// +kubebuilder:validation:Optional
// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="Value is immutable"
// +kubebuilder:validation:MaxLength=43
// 43 is max length of IPv6 CIDR string
ExtensionIPRange string `json:"extensionIPRange,omitempty"`

// AppGatewaySubnetID field defines a subnet delegated to Application Gateway that should be able to reach routing domain ip addresses.
// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="Value is immutable"
AppGatewaySubnetID string `json:"appGatewaySubnetID,omitempty"`
}

type OECState string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,71 +12,82 @@ spec:
listKind: OverlayExtensionConfigList
plural: overlayextensionconfigs
shortNames:
- oec
- oec
singular: overlayextensionconfig
scope: Namespaced
versions:
- additionalPrinterColumns:
- jsonPath: .spec.extensionIPRange
name: OverlayExtensionConfig IP range
priority: 1
type: string
name: v1alpha1
schema:
openAPIV3Schema:
description: OverlayExtensionConfig is the Schema for the overlayextensionconfigs
API
properties:
apiVersion:
description: |-
APIVersion defines the versioned schema of this representation of an object.
Servers should convert recognized schemas to the latest internal value, and
may reject unrecognized values.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
type: string
kind:
description: |-
Kind is a string value representing the REST resource this object represents.
Servers may infer this from the endpoint the client submits requests to.
Cannot be updated.
In CamelCase.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
type: string
metadata:
type: object
spec:
description: OverlayExtensionConfigSpec defines the desired state of OverlayExtensionConfig.
properties:
extensionIPRange:
description: |-
ExtensionIPRange field defines a CIDR that should be able to reach routing domain ip addresses.
43 is max length of IPv6 CIDR string
maxLength: 43
type: string
x-kubernetes-validations:
- message: Value is immutable
rule: self == oldSelf
type: object
x-kubernetes-validations:
- message: ExtensionIPRange is required once set
rule: '!has(oldSelf.extensionIPRange) || has(self.extensionIPRange)'
status:
description: OverlayExtensionConfigStatus defines the observed state of
OverlayExtensionConfig
properties:
message:
type: string
state:
default: None
enum:
- None
- Pending
- Succeeded
- Failed
type: string
type: object
type: object
served: true
storage: true
subresources:
status: {}
- additionalPrinterColumns:
- jsonPath: .spec.extensionIPRange
name: OverlayExtensionConfig IP range
priority: 1
type: string
name: v1alpha1
schema:
openAPIV3Schema:
description:
OverlayExtensionConfig is the Schema for the overlayextensionconfigs
API
properties:
apiVersion:
description: |-
APIVersion defines the versioned schema of this representation of an object.
Servers should convert recognized schemas to the latest internal value, and
may reject unrecognized values.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
type: string
kind:
description: |-
Kind is a string value representing the REST resource this object represents.
Servers may infer this from the endpoint the client submits requests to.
Cannot be updated.
In CamelCase.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
type: string
metadata:
type: object
spec:
description: OverlayExtensionConfigSpec defines the desired state of OverlayExtensionConfig.
properties:
appGatewaySubnetID:
description:
AppGatewaySubnetID field defines a subnet delegated to
Application Gateway that should be able to reach routing domain
ip addresses.
type: string
x-kubernetes-validations:
- message: Value is immutable
rule: self == oldSelf
extensionIPRange:
description: |-
ExtensionIPRange field defines a CIDR that should be able to reach routing domain ip addresses.
43 is max length of IPv6 CIDR string
maxLength: 43
type: string
x-kubernetes-validations:
- message: Value is immutable
rule: self == oldSelf
type: object
x-kubernetes-validations:
- message: ExtensionIPRange is required once set
rule: "!has(oldSelf.extensionIPRange) || has(self.extensionIPRange)"
status:
description:
OverlayExtensionConfigStatus defines the observed state of
OverlayExtensionConfig
properties:
message:
type: string
state:
default: None
enum:
- None
- Pending
- Succeeded
- Failed
type: string
type: object
type: object
served: true
storage: true
subresources:
status: {}
Loading