mirror of
https://github.com/projectcapsule/capsule.git
synced 2026-03-03 18:20:19 +00:00
14 lines
334 B
Go
14 lines
334 B
Go
// Copyright 2020-2023 Project Capsule Authors.
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package api
|
|
|
|
// +kubebuilder:validation:Pattern="^([0-9]{1,3}.){3}[0-9]{1,3}(/([0-9]|[1-2][0-9]|3[0-2]))?$"
|
|
type AllowedIP string
|
|
|
|
// +kubebuilder:object:generate=true
|
|
|
|
type ExternalServiceIPsSpec struct {
|
|
Allowed []AllowedIP `json:"allowed"`
|
|
}
|