Skip to content

Commit 263b294

Browse files
author
Fred Campos
committed
revert and ammend as per PR request
1 parent 0161244 commit 263b294

3 files changed

Lines changed: 35 additions & 5 deletions

File tree

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,4 @@ gradle-app.setting
6161
# Quinoa
6262
.quinoa/
6363

64-
generated/out/
65-
operator/out/
64+
**/out/

gradle.properties

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,3 @@ quarkusPlatformGroupId=io.quarkus.platform
1313
quarkusPlatformArtifactId=quarkus-bom
1414
quarkusPlatformVersion=3.35.3
1515
systemProp.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
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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+
}

0 commit comments

Comments
 (0)