mirror of
https://github.com/projectcapsule/capsule.git
synced 2026-03-04 10:40:30 +00:00
chore(deps): update dependency golangci/golangci-lint to v2.2.1 (#1521)
* chore(deps): update dependency golangci/golangci-lint to v2.2.1 * chore(deps): update github/codeql-action action to v3.29.1 (#1519) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update github/codeql-action digest to 4c57370 (#1518) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency b1nary-gr0up/nwa to v0.7.4 (#1520) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency golangci/golangci-lint to v2.2.1 chore(deps): update dependency golangci/golangci-lint to v2.2.1 Signed-off-by: Hristo Hristov <me@hhristov.info> --------- Signed-off-by: Hristo Hristov <me@hhristov.info> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Hristo Hristov <me@hhristov.info>
This commit is contained in:
@@ -17,7 +17,8 @@ import (
|
||||
|
||||
type DefaultAllowedListSpec struct {
|
||||
SelectorAllowedListSpec `json:",inline"`
|
||||
Default string `json:"default,omitempty"`
|
||||
|
||||
Default string `json:"default,omitempty"`
|
||||
}
|
||||
|
||||
func (in *DefaultAllowedListSpec) MatchDefault(value string) bool {
|
||||
@@ -92,7 +93,8 @@ func (in *AllowedListSpec) RegexMatch(value string) (ok bool) {
|
||||
// +kubebuilder:object:generate=true
|
||||
type SelectionListWithDefaultSpec struct {
|
||||
SelectionListWithSpec `json:",inline"`
|
||||
Default string `json:"default,omitempty"`
|
||||
|
||||
Default string `json:"default,omitempty"`
|
||||
}
|
||||
|
||||
func (in *SelectionListWithDefaultSpec) MatchDefault(value string) bool {
|
||||
|
||||
@@ -86,6 +86,7 @@ func ValidateForbidden(metadata map[string]string, forbiddenList ForbiddenListSp
|
||||
|
||||
for key := range metadata {
|
||||
var forbidden, matched bool
|
||||
|
||||
forbidden = forbiddenList.ExactMatch(key)
|
||||
matched = forbiddenList.RegexMatch(key)
|
||||
|
||||
|
||||
@@ -3,9 +3,7 @@
|
||||
|
||||
package api
|
||||
|
||||
import (
|
||||
k8stypes "k8s.io/apimachinery/pkg/types"
|
||||
)
|
||||
import k8stypes "k8s.io/apimachinery/pkg/types"
|
||||
|
||||
// Name must be unique within a namespace. Is required when creating resources, although
|
||||
// some resources may allow a client to request the generation of an appropriate name
|
||||
@@ -23,10 +21,11 @@ func (n Name) String() string {
|
||||
}
|
||||
|
||||
type StatusNameUID struct {
|
||||
// UID of the tracked Tenant to pin point tracking
|
||||
k8stypes.UID `json:"uid,omitempty" protobuf:"bytes,5,opt,name=uid"`
|
||||
|
||||
// Name
|
||||
Name Name `json:"name,omitempty"`
|
||||
// Namespace
|
||||
Namespace Name `json:"namespace,omitempty"`
|
||||
// UID of the tracked Tenant to pin point tracking
|
||||
k8stypes.UID `json:"uid,omitempty" protobuf:"bytes,5,opt,name=uid"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user