-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(v1alpha2): remove unused structs and functions from v1alpha1. Rename v1alpha1 structs to follow new naming. Move v1alpha1 structs to separate files
- Loading branch information
1 parent
c398f73
commit 564efc2
Showing
30 changed files
with
1,125 additions
and
391 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// Copyright 2020-2021 Clastix Labs | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
package v1alpha1 | ||
|
||
type AdditionalMetadataSpec struct { | ||
AdditionalLabels map[string]string `json:"additionalLabels,omitempty"` | ||
AdditionalAnnotations map[string]string `json:"additionalAnnotations,omitempty"` | ||
} |
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,12 @@ | ||
// Copyright 2020-2021 Clastix Labs | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
package v1alpha1 | ||
|
||
import rbacv1 "k8s.io/api/rbac/v1" | ||
|
||
type AdditionalRoleBindingsSpec struct { | ||
ClusterRoleName string `json:"clusterRoleName"` | ||
// kubebuilder:validation:Minimum=1 | ||
Subjects []rbacv1.Subject `json:"subjects"` | ||
} |
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,11 @@ | ||
// Copyright 2020-2021 Clastix Labs | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
package v1alpha1 | ||
|
||
// +kubebuilder:validation:Pattern="^([0-9]{1,3}.){3}[0-9]{1,3}(/([0-9]|[1-2][0-9]|3[0-2]))?$" | ||
type AllowedIP string | ||
|
||
type ExternalServiceIPsSpec struct { | ||
Allowed []AllowedIP `json:"allowed"` | ||
} |
This file was deleted.
Oops, something went wrong.
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,17 @@ | ||
// Copyright 2020-2021 Clastix Labs | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
package v1alpha1 | ||
|
||
// OwnerSpec defines tenant owner name and kind | ||
type OwnerSpec struct { | ||
Name string `json:"name"` | ||
Kind Kind `json:"kind"` | ||
} | ||
|
||
// +kubebuilder:validation:Enum=User;Group | ||
type Kind string | ||
|
||
func (k Kind) String() string { | ||
return string(k) | ||
} |
Oops, something went wrong.