File tree Expand file tree Collapse file tree
operator/src/main/java/it/aboutbits/postgresql/core Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -61,5 +61,4 @@ gradle-app.setting
6161# Quinoa
6262.quinoa /
6363
64- generated /out /
65- operator /out /
64+ ** /out /
Original file line number Diff line number Diff line change @@ -13,6 +13,3 @@ quarkusPlatformGroupId=io.quarkus.platform
1313quarkusPlatformArtifactId =quarkus-bom
1414quarkusPlatformVersion =3.35.3
1515systemProp.quarkus.analytics.disabled =true
16-
17- # Workaround for Windows: avoid forked process where -D args with {{ }} get mangled by cmd.exe
18- systemProp.gradle.quarkus.gradle-worker.no-process =true
Original file line number Diff line number Diff line change 1+ package it .aboutbits .postgresql .core ;
2+
3+ import io .fabric8 .generator .annotation .Required ;
4+ import io .fabric8 .generator .annotation .ValidationRule ;
5+ import lombok .Getter ;
6+ import lombok .Setter ;
7+ import org .jspecify .annotations .NullMarked ;
8+
9+ /// A reference to a file inside
10+ ///
11+ /// This class is used wherever a CRD spec needs to point to a specific file
12+ /// The [#path] field identifies the file location
13+ /// inside the secret.
14+ ///
15+ /// ### Example usage in a CR manifest
16+ ///
17+ /// ```yaml
18+ /// spec:
19+ /// adminSecretFileRef:
20+ /// path: "/mnt/db-password"
21+ /// ```
22+ @ Getter
23+ @ Setter
24+ @ NullMarked
25+ public class FileRef {
26+ /// The path to the file.
27+ /// Must not be blank.
28+ @ Required
29+ @ ValidationRule (
30+ value = "self.trim().size() > 0" ,
31+ message = "The path must not be empty."
32+ )
33+ private String path = "" ;
34+ }
You can’t perform that action at this time.
0 commit comments