-
Notifications
You must be signed in to change notification settings - Fork 459
/
types_controllerdeployment.go
37 lines (31 loc) · 1.37 KB
/
types_controllerdeployment.go
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
// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Gardener contributors
//
// SPDX-License-Identifier: Apache-2.0
package v1beta1
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
)
// +genclient
// +genclient:nonNamespaced
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// ControllerDeployment contains information about how this controller is deployed.
type ControllerDeployment struct {
metav1.TypeMeta `json:",inline"`
// Standard object metadata.
metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
// Type is the deployment type.
Type string `json:"type" protobuf:"bytes,2,opt,name=type"`
// ProviderConfig contains type-specific configuration. It contains assets that deploy the controller.
ProviderConfig runtime.RawExtension `json:"providerConfig" protobuf:"bytes,3,opt,name=providerConfig"`
}
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// ControllerDeploymentList is a collection of ControllerDeployments.
type ControllerDeploymentList struct {
metav1.TypeMeta `json:",inline"`
// Standard list object metadata.
// +optional
metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
// Items is the list of ControllerDeployments.
Items []ControllerDeployment `json:"items" protobuf:"bytes,2,rep,name=items"`
}