-
Notifications
You must be signed in to change notification settings - Fork 72
Expand file tree
/
Copy pathserviceaccountreference.go
More file actions
64 lines (57 loc) · 2.58 KB
/
serviceaccountreference.go
File metadata and controls
64 lines (57 loc) · 2.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/*
Copyright 2022.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// Code generated by controller-gen-v0.20. DO NOT EDIT.
package v1
// ServiceAccountReferenceApplyConfiguration represents a declarative configuration of the ServiceAccountReference type for use
// with apply.
//
// ServiceAccountReference identifies the serviceAccount used to install a ClusterExtension.
//
// Deprecated: This type is deprecated and will be removed in a future API version.
// operator-controller now uses its own ServiceAccount for all operations.
type ServiceAccountReferenceApplyConfiguration struct {
// name is a required, immutable reference to the name of the ServiceAccount used for installation
// and management of the content for the package specified in the packageName field.
//
// This ServiceAccount must exist in the installNamespace.
//
// The name field follows the DNS subdomain standard as defined in [RFC 1123].
// It must contain only lowercase alphanumeric characters, hyphens (-) or periods (.),
// start and end with an alphanumeric character, and be no longer than 253 characters.
//
// Some examples of valid values are:
// - some-serviceaccount
// - 123-serviceaccount
// - 1-serviceaccount-2
// - someserviceaccount
// - some.serviceaccount
//
// Some examples of invalid values are:
// - -some-serviceaccount
// - some-serviceaccount-
//
// [RFC 1123]: https://tools.ietf.org/html/rfc1123
Name *string `json:"name,omitempty"`
}
// ServiceAccountReferenceApplyConfiguration constructs a declarative configuration of the ServiceAccountReference type for use with
// apply.
func ServiceAccountReference() *ServiceAccountReferenceApplyConfiguration {
return &ServiceAccountReferenceApplyConfiguration{}
}
// WithName sets the Name field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Name field is set to the value of the last call.
func (b *ServiceAccountReferenceApplyConfiguration) WithName(value string) *ServiceAccountReferenceApplyConfiguration {
b.Name = &value
return b
}