-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathv1.clusterimagecatalogs.postgresql.cnpg.io.g.cs
More file actions
206 lines (183 loc) · 11 KB
/
v1.clusterimagecatalogs.postgresql.cnpg.io.g.cs
File metadata and controls
206 lines (183 loc) · 11 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
#nullable enable
using k8s;
using k8s.Models;
using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.Text.Json;
using System.Text.Json.Nodes;
using System.Text.Json.Serialization;
namespace KubernetesCRDModelGen.Models.postgresql.cnpg.io;
/// <summary>ClusterImageCatalog is the Schema for the clusterimagecatalogs API</summary>
[global::System.CodeDom.Compiler.GeneratedCode("KubernetesCRDModelGen", "1.5.2+8c7b4a3647c1e77cd3e3152af5701ec2357dafe9")]
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
[KubernetesEntity(Group = KubeGroup, Kind = KubeKind, ApiVersion = KubeApiVersion, PluralName = KubePluralName)]
public partial class V1ClusterImageCatalogList : IKubernetesObject<V1ListMeta>, IItems<V1ClusterImageCatalog>
{
public const string KubeApiVersion = "v1";
public const string KubeKind = "ClusterImageCatalogList";
public const string KubeGroup = "postgresql.cnpg.io";
public const string KubePluralName = "clusterimagecatalogs";
/// <summary>APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources</summary>
[JsonPropertyName("apiVersion")]
public string ApiVersion { get; set; } = "postgresql.cnpg.io/v1";
/// <summary>Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds</summary>
[JsonPropertyName("kind")]
public string Kind { get; set; } = "ClusterImageCatalogList";
/// <summary>ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.</summary>
[JsonPropertyName("metadata")]
public V1ListMeta? Metadata { get; set; }
/// <summary>List of V1ClusterImageCatalog objects.</summary>
[JsonPropertyName("items")]
public IList<V1ClusterImageCatalog>? Items { get; set; }
}
/// <summary>
/// ExtensionEnvVar defines an environment variable for a specific extension
/// image volume.
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCode("KubernetesCRDModelGen", "1.5.2+8c7b4a3647c1e77cd3e3152af5701ec2357dafe9")]
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public partial class V1ClusterImageCatalogSpecImagesExtensionsEnv
{
/// <summary>
/// Name of the environment variable to be injected into the
/// PostgreSQL process.
/// </summary>
[JsonPropertyName("name")]
public required string Name { get; set; }
/// <summary>
/// Value of the environment variable. CloudNativePG performs a direct
/// replacement of this value, with support for placeholder expansion.
/// The ${`image_root`} placeholder resolves to the absolute mount path
/// of the extension's volume (e.g., `/extensions/my-extension`). This
/// is particularly useful for allowing applications or libraries to
/// locate specific directories within the mounted image.
/// Unrecognized placeholders are rejected. To include a literal ${...}
/// in the value, escape it as $${...}.
/// </summary>
[JsonPropertyName("value")]
public required string Value { get; set; }
}
/// <summary>The image containing the extension.</summary>
[global::System.CodeDom.Compiler.GeneratedCode("KubernetesCRDModelGen", "1.5.2+8c7b4a3647c1e77cd3e3152af5701ec2357dafe9")]
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public partial class V1ClusterImageCatalogSpecImagesExtensionsImage
{
/// <summary>
/// Policy for pulling OCI objects. Possible values are:
/// Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails.
/// Never: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present.
/// IfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails.
/// Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
/// </summary>
[JsonPropertyName("pullPolicy")]
public string? PullPolicy { get; set; }
/// <summary>
/// Required: Image or artifact reference to be used.
/// Behaves in the same way as pod.spec.containers[*].image.
/// Pull secrets will be assembled in the same way as for the container image by looking up node credentials, SA image pull secrets, and pod spec image pull secrets.
/// More info: https://kubernetes.io/docs/concepts/containers/images
/// This field is optional to allow higher level config management to default or override
/// container images in workload controllers like Deployments and StatefulSets.
/// </summary>
[JsonPropertyName("reference")]
public string? Reference { get; set; }
}
/// <summary>
/// ExtensionConfiguration is the configuration used to add
/// PostgreSQL extensions to the Cluster.
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCode("KubernetesCRDModelGen", "1.5.2+8c7b4a3647c1e77cd3e3152af5701ec2357dafe9")]
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public partial class V1ClusterImageCatalogSpecImagesExtensions
{
/// <summary>
/// A list of directories within the image to be appended to the
/// PostgreSQL process's `PATH` environment variable.
/// </summary>
[JsonPropertyName("bin_path")]
public IList<string>? BinPath { get; set; }
/// <summary>
/// The list of directories inside the image which should be added to dynamic_library_path.
/// If not defined, defaults to "/lib".
/// </summary>
[JsonPropertyName("dynamic_library_path")]
public IList<string>? DynamicLibraryPath { get; set; }
/// <summary>
/// Env is a list of custom environment variables to be set in the
/// PostgreSQL process for this extension. It is the responsibility of the
/// cluster administrator to ensure the variables are correct for the
/// specific extension. Note that changes to these variables require
/// a manual cluster restart to take effect.
/// </summary>
[JsonPropertyName("env")]
public IList<V1ClusterImageCatalogSpecImagesExtensionsEnv>? Env { get; set; }
/// <summary>
/// The list of directories inside the image which should be added to extension_control_path.
/// If not defined, defaults to "/share".
/// </summary>
[JsonPropertyName("extension_control_path")]
public IList<string>? ExtensionControlPath { get; set; }
/// <summary>The image containing the extension.</summary>
[JsonPropertyName("image")]
public V1ClusterImageCatalogSpecImagesExtensionsImage? Image { get; set; }
/// <summary>The list of directories inside the image which should be added to ld_library_path.</summary>
[JsonPropertyName("ld_library_path")]
public IList<string>? LdLibraryPath { get; set; }
/// <summary>The name of the extension, required</summary>
[JsonPropertyName("name")]
public required string Name { get; set; }
}
/// <summary>CatalogImage defines the image and major version</summary>
[global::System.CodeDom.Compiler.GeneratedCode("KubernetesCRDModelGen", "1.5.2+8c7b4a3647c1e77cd3e3152af5701ec2357dafe9")]
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public partial class V1ClusterImageCatalogSpecImages
{
/// <summary>The configuration of the extensions to be added</summary>
[JsonPropertyName("extensions")]
public IList<V1ClusterImageCatalogSpecImagesExtensions>? Extensions { get; set; }
/// <summary>The image reference</summary>
[JsonPropertyName("image")]
public required string Image { get; set; }
/// <summary>The PostgreSQL major version of the image. Must be unique within the catalog.</summary>
[JsonPropertyName("major")]
public required int Major { get; set; }
}
/// <summary>
/// Specification of the desired behavior of the ClusterImageCatalog.
/// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCode("KubernetesCRDModelGen", "1.5.2+8c7b4a3647c1e77cd3e3152af5701ec2357dafe9")]
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public partial class V1ClusterImageCatalogSpec
{
/// <summary>List of CatalogImages available in the catalog</summary>
[JsonPropertyName("images")]
public required IList<V1ClusterImageCatalogSpecImages> Images { get; set; }
}
/// <summary>ClusterImageCatalog is the Schema for the clusterimagecatalogs API</summary>
[global::System.CodeDom.Compiler.GeneratedCode("KubernetesCRDModelGen", "1.5.2+8c7b4a3647c1e77cd3e3152af5701ec2357dafe9")]
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
[KubernetesEntity(Group = KubeGroup, Kind = KubeKind, ApiVersion = KubeApiVersion, PluralName = KubePluralName)]
public partial class V1ClusterImageCatalog : IKubernetesObject<V1ObjectMeta>, ISpec<V1ClusterImageCatalogSpec>
{
public const string KubeApiVersion = "v1";
public const string KubeKind = "ClusterImageCatalog";
public const string KubeGroup = "postgresql.cnpg.io";
public const string KubePluralName = "clusterimagecatalogs";
/// <summary>APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources</summary>
[JsonPropertyName("apiVersion")]
public string ApiVersion { get; set; } = "postgresql.cnpg.io/v1";
/// <summary>Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds</summary>
[JsonPropertyName("kind")]
public string Kind { get; set; } = "ClusterImageCatalog";
/// <summary>Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata</summary>
[JsonPropertyName("metadata")]
public V1ObjectMeta Metadata { get; set; }
/// <summary>
/// Specification of the desired behavior of the ClusterImageCatalog.
/// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
/// </summary>
[JsonPropertyName("spec")]
public required V1ClusterImageCatalogSpec Spec { get; set; }
}