forked from quarkusio/quarkus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PlatformConfiguration.java
87 lines (47 loc) · 1.96 KB
/
PlatformConfiguration.java
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
package io.quarkus.kubernetes.deployment;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import io.dekorate.kubernetes.annotation.ImagePullPolicy;
import io.dekorate.kubernetes.annotation.ServiceType;
public interface PlatformConfiguration extends EnvVarHolder {
Optional<String> getPartOf();
Optional<String> getName();
Optional<String> getVersion();
Optional<String> getNamespace();
Map<String, String> getLabels();
Map<String, String> getAnnotations();
boolean isAddBuildTimestamp();
Optional<String> getWorkingDir();
Optional<List<String>> getCommand();
Optional<List<String>> getArguments();
Optional<String> getServiceAccount();
Optional<String> getHost();
Map<String, PortConfig> getPorts();
ServiceType getServiceType();
ImagePullPolicy getImagePullPolicy();
Optional<List<String>> getImagePullSecrets();
ProbeConfig getLivenessProbe();
ProbeConfig getReadinessProbe();
PrometheusConfig getPrometheusConfig();
Map<String, MountConfig> getMounts();
Map<String, SecretVolumeConfig> getSecretVolumes();
Map<String, ConfigMapVolumeConfig> getConfigMapVolumes();
Map<String, GitRepoVolumeConfig> getGitRepoVolumes();
Map<String, PvcVolumeConfig> getPvcVolumes();
Map<String, AwsElasticBlockStoreVolumeConfig> getAwsElasticBlockStoreVolumes();
Map<String, AzureFileVolumeConfig> getAzureFileVolumes();
Map<String, AzureDiskVolumeConfig> getAzureDiskVolumes();
Map<String, ContainerConfig> getInitContainers();
Map<String, ContainerConfig> getSidecars();
Map<String, HostAliasConfig> getHostAliases();
ResourcesConfig getResources();
default boolean isExpose() {
return false;
}
default String getConfigName() {
return getClass().getSimpleName().replaceAll("Config$", "").toLowerCase();
}
public Optional<String> getAppSecret();
public Optional<String> getAppConfigMap();
}