This repository has been archived by the owner on Oct 10, 2023. It is now read-only.
/
azurefilecsiconfig_types.go
67 lines (51 loc) · 2.01 KB
/
azurefilecsiconfig_types.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
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
65
66
67
// Copyright 2022 VMware, Inc. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package v1alpha1
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
// EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN!
// NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized.
// AzureFileCSIConfigSpec defines the desired state of AzureFileCSIConfig
type AzureFileCSIConfigSpec struct {
AzureFileCSI AzureFileCSI `json:"azureFileCSIDriver"`
}
// AzureFileCSIConfigStatus defines the observed state of AzureFileCSIConfig
type AzureFileCSIConfigStatus struct {
// Name of the secret created by csi controller
//+ kubebuilder:validation:Optional
SecretRef *string `json:"secretRef,omitempty"`
}
//+kubebuilder:object:root=true
//+kubebuilder:subresource:status
// AzureFileCSIConfig is the Schema for the azurefilecsiconfigs
type AzureFileCSIConfig struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec AzureFileCSIConfigSpec `json:"spec,omitempty"`
Status AzureFileCSIConfigStatus `json:"status,omitempty"`
}
//+kubebuilder:object:root=true
// AzureFileCSIConfigList contains a list of AzureFileCSIConfig
type AzureFileCSIConfigList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []AzureFileCSIConfig `json:"items"`
}
// AzureFileCSI is the Schema for the AzureFileCSIConfig
type AzureFileCSI struct {
// The namespace csi components are to be deployed in
// +kubebuilder:validation:Required
Namespace string `json:"namespace"`
// +kubebuilder:validation:Optional
HTTPProxy string `json:"httpProxy,omitempty"`
// +kubebuilder:validation:Optional
HTTPSProxy string `json:"httpsProxy,omitempty"`
// +kubebuilder:validation:Optional
NoProxy string `json:"noProxy,omitempty"`
// +kubebuilder:validation:Optional
DeploymentReplicas *int32 `json:"deploymentReplicas,omitempty"`
}
func init() {
SchemeBuilder.Register(&AzureFileCSIConfig{}, &AzureFileCSIConfigList{})
}