Skip to content

Commit ba57074

Browse files
author
Naadir Jeewa
committed
add types
1 parent 22b58f3 commit ba57074

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

api/v1alpha4/identity_types.go

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/*
2+
Copyright 2021 The Kubernetes Authors.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
17+
package v1alpha4
18+
19+
// IdentityReference is a reference to an infrastructure
20+
// provider identity to be used to provision cluster resources.
21+
type IdentityReference struct {
22+
// Kind of the identity. Must be supported by the infrastructure
23+
// provider and may be either cluster or namespace-scoped.
24+
// +kubebuilder:validation:MinLength=1
25+
Kind string
26+
27+
// Name of the infrastructure identity to be used.
28+
// Must be either a cluster-scoped resource, or namespaced-scoped
29+
// resource the same namespace as the resource(s) being provisioned.
30+
Name string `json:"kind"`
31+
}

0 commit comments

Comments
 (0)