@@ -54,102 +54,106 @@ type OpenLibertyApplicationSpec struct {
54
54
// +operator-sdk:csv:customresourcedefinitions:order=8,type=spec,displayName="Expose",xDescriptors="urn:alm:descriptor:com.tectonic.ui:booleanSwitch"
55
55
Expose * bool `json:"expose,omitempty"`
56
56
57
+ // Enable management of password encryption key sharing amongst Liberty containers. Defaults to false.
58
+ // +operator-sdk:csv:customresourcedefinitions:order=9,type=spec,displayName="Manage Password Encryption",xDescriptors="urn:alm:descriptor:com.tectonic.ui:booleanSwitch"
59
+ ManagePasswordEncryption * bool `json:"managePasswordEncryption,omitempty"`
60
+
57
61
// Enable management of LTPA key sharing amongst Liberty containers. Defaults to false.
58
- // +operator-sdk:csv:customresourcedefinitions:order=9 ,type=spec,displayName="Manage LTPA",xDescriptors="urn:alm:descriptor:com.tectonic.ui:booleanSwitch"
62
+ // +operator-sdk:csv:customresourcedefinitions:order=10 ,type=spec,displayName="Manage LTPA",xDescriptors="urn:alm:descriptor:com.tectonic.ui:booleanSwitch"
59
63
ManageLTPA * bool `json:"manageLTPA,omitempty"`
60
64
61
65
// Enable management of TLS certificates. Defaults to true.
62
- // +operator-sdk:csv:customresourcedefinitions:order=10 ,type=spec,displayName="Manage TLS",xDescriptors="urn:alm:descriptor:com.tectonic.ui:booleanSwitch"
66
+ // +operator-sdk:csv:customresourcedefinitions:order=11 ,type=spec,displayName="Manage TLS",xDescriptors="urn:alm:descriptor:com.tectonic.ui:booleanSwitch"
63
67
ManageTLS * bool `json:"manageTLS,omitempty"`
64
68
65
69
// Number of pods to create. Defaults to 1. Not applicable when .spec.autoscaling or .spec.createKnativeService is specified.
66
- // +operator-sdk:csv:customresourcedefinitions:order=11 ,type=spec,displayName="Replicas",xDescriptors="urn:alm:descriptor:com.tectonic.ui:podCount"
70
+ // +operator-sdk:csv:customresourcedefinitions:order=12 ,type=spec,displayName="Replicas",xDescriptors="urn:alm:descriptor:com.tectonic.ui:podCount"
67
71
Replicas * int32 `json:"replicas,omitempty"`
68
72
69
- // +operator-sdk:csv:customresourcedefinitions:order=12 ,type=spec,displayName="Auto Scaling"
73
+ // +operator-sdk:csv:customresourcedefinitions:order=13 ,type=spec,displayName="Auto Scaling"
70
74
Autoscaling * OpenLibertyApplicationAutoScaling `json:"autoscaling,omitempty"`
71
75
72
76
// Resource requests and limits for the application container.
73
- // +operator-sdk:csv:customresourcedefinitions:order=13 ,type=spec,displayName="Resource Requirements",xDescriptors="urn:alm:descriptor:com.tectonic.ui:resourceRequirements"
77
+ // +operator-sdk:csv:customresourcedefinitions:order=14 ,type=spec,displayName="Resource Requirements",xDescriptors="urn:alm:descriptor:com.tectonic.ui:resourceRequirements"
74
78
Resources * corev1.ResourceRequirements `json:"resources,omitempty"`
75
79
76
- // +operator-sdk:csv:customresourcedefinitions:order=14 ,type=spec,displayName="Probes"
80
+ // +operator-sdk:csv:customresourcedefinitions:order=15 ,type=spec,displayName="Probes"
77
81
Probes * OpenLibertyApplicationProbes `json:"probes,omitempty"`
78
82
79
- // +operator-sdk:csv:customresourcedefinitions:order=15 ,type=spec,displayName="Deployment"
83
+ // +operator-sdk:csv:customresourcedefinitions:order=16 ,type=spec,displayName="Deployment"
80
84
Deployment * OpenLibertyApplicationDeployment `json:"deployment,omitempty"`
81
85
82
- // +operator-sdk:csv:customresourcedefinitions:order=16 ,type=spec,displayName="StatefulSet"
86
+ // +operator-sdk:csv:customresourcedefinitions:order=17 ,type=spec,displayName="StatefulSet"
83
87
StatefulSet * OpenLibertyApplicationStatefulSet `json:"statefulSet,omitempty"`
84
88
85
- // +operator-sdk:csv:customresourcedefinitions:order=17 ,type=spec,displayName="Service"
89
+ // +operator-sdk:csv:customresourcedefinitions:order=18 ,type=spec,displayName="Service"
86
90
Service * OpenLibertyApplicationService `json:"service,omitempty"`
87
91
88
- // +operator-sdk:csv:customresourcedefinitions:order=18 ,type=spec,displayName="Route"
92
+ // +operator-sdk:csv:customresourcedefinitions:order=19 ,type=spec,displayName="Route"
89
93
Route * OpenLibertyApplicationRoute `json:"route,omitempty"`
90
94
91
95
// Configures the Semeru Cloud Compiler to handle Just-In-Time (JIT) compilation requests from the application.
92
- // +operator-sdk:csv:customresourcedefinitions:order=19 ,type=spec,displayName="Semeru Cloud Compiler"
96
+ // +operator-sdk:csv:customresourcedefinitions:order=20 ,type=spec,displayName="Semeru Cloud Compiler"
93
97
SemeruCloudCompiler * OpenLibertyApplicationSemeruCloudCompiler `json:"semeruCloudCompiler,omitempty"`
94
98
95
- // +operator-sdk:csv:customresourcedefinitions:order=20 ,type=spec,displayName="Network Policy"
99
+ // +operator-sdk:csv:customresourcedefinitions:order=21 ,type=spec,displayName="Network Policy"
96
100
NetworkPolicy * OpenLibertyApplicationNetworkPolicy `json:"networkPolicy,omitempty"`
97
101
98
- // +operator-sdk:csv:customresourcedefinitions:order=21 ,type=spec,displayName="Serviceability"
102
+ // +operator-sdk:csv:customresourcedefinitions:order=22 ,type=spec,displayName="Serviceability"
99
103
Serviceability * OpenLibertyApplicationServiceability `json:"serviceability,omitempty"`
100
104
101
- // +operator-sdk:csv:customresourcedefinitions:order=22 ,type=spec,displayName="Single Sign-On"
105
+ // +operator-sdk:csv:customresourcedefinitions:order=23 ,type=spec,displayName="Single Sign-On"
102
106
SSO * OpenLibertyApplicationSSO `json:"sso,omitempty"`
103
107
104
- // +operator-sdk:csv:customresourcedefinitions:order=23 ,type=spec,displayName="Monitoring"
108
+ // +operator-sdk:csv:customresourcedefinitions:order=24 ,type=spec,displayName="Monitoring"
105
109
Monitoring * OpenLibertyApplicationMonitoring `json:"monitoring,omitempty"`
106
110
107
111
// An array of environment variables for the application container.
108
112
// +listType=map
109
113
// +listMapKey=name
110
- // +operator-sdk:csv:customresourcedefinitions:order=24 ,type=spec,displayName="Environment Variables"
114
+ // +operator-sdk:csv:customresourcedefinitions:order=25 ,type=spec,displayName="Environment Variables"
111
115
Env []corev1.EnvVar `json:"env,omitempty"`
112
116
113
117
// List of sources to populate environment variables in the application container.
114
118
// +listType=atomic
115
- // +operator-sdk:csv:customresourcedefinitions:order=25 ,type=spec,displayName="Environment Variables from Sources"
119
+ // +operator-sdk:csv:customresourcedefinitions:order=26 ,type=spec,displayName="Environment Variables from Sources"
116
120
EnvFrom []corev1.EnvFromSource `json:"envFrom,omitempty"`
117
121
118
122
// Represents a volume with data that is accessible to the application container.
119
123
// +listType=map
120
124
// +listMapKey=name
121
- // +operator-sdk:csv:customresourcedefinitions:order=26 ,type=spec,displayName="Volumes"
125
+ // +operator-sdk:csv:customresourcedefinitions:order=27 ,type=spec,displayName="Volumes"
122
126
Volumes []corev1.Volume `json:"volumes,omitempty"`
123
127
124
128
// Represents where to mount the volumes into the application container.
125
129
// +listType=atomic
126
- // +operator-sdk:csv:customresourcedefinitions:order=27 ,type=spec,displayName="Volume Mounts"
130
+ // +operator-sdk:csv:customresourcedefinitions:order=28 ,type=spec,displayName="Volume Mounts"
127
131
VolumeMounts []corev1.VolumeMount `json:"volumeMounts,omitempty"`
128
132
129
133
// List of containers to run before other containers in a pod.
130
134
// +listType=map
131
135
// +listMapKey=name
132
- // +operator-sdk:csv:customresourcedefinitions:order=28 ,type=spec,displayName="Init Containers"
136
+ // +operator-sdk:csv:customresourcedefinitions:order=29 ,type=spec,displayName="Init Containers"
133
137
InitContainers []corev1.Container `json:"initContainers,omitempty"`
134
138
135
139
// List of sidecar containers. These are additional containers to be added to the pods.
136
140
// +listType=map
137
141
// +listMapKey=name
138
- // +operator-sdk:csv:customresourcedefinitions:order=29 ,type=spec,displayName="Sidecar Containers"
142
+ // +operator-sdk:csv:customresourcedefinitions:order=30 ,type=spec,displayName="Sidecar Containers"
139
143
SidecarContainers []corev1.Container `json:"sidecarContainers,omitempty"`
140
144
141
- // +operator-sdk:csv:customresourcedefinitions:order=30 ,type=spec,displayName="Affinity"
145
+ // +operator-sdk:csv:customresourcedefinitions:order=31 ,type=spec,displayName="Affinity"
142
146
Affinity * OpenLibertyApplicationAffinity `json:"affinity,omitempty"`
143
147
144
148
// Security context for the application container.
145
- // +operator-sdk:csv:customresourcedefinitions:order=31 ,type=spec,displayName="Security Context"
149
+ // +operator-sdk:csv:customresourcedefinitions:order=32 ,type=spec,displayName="Security Context"
146
150
SecurityContext * corev1.SecurityContext `json:"securityContext,omitempty"`
147
151
148
- // +operator-sdk:csv:customresourcedefinitions:order=32 ,type=spec,displayName="Topology Spread Constraints"
152
+ // +operator-sdk:csv:customresourcedefinitions:order=33 ,type=spec,displayName="Topology Spread Constraints"
149
153
TopologySpreadConstraints * OpenLibertyApplicationTopologySpreadConstraints `json:"topologySpreadConstraints,omitempty"`
150
154
151
155
// Disable information about services being injected into the application pod's environment variables. Default to false.
152
- // +operator-sdk:csv:customresourcedefinitions:order=33 ,type=spec,displayName="Disable Service Links",xDescriptors="urn:alm:descriptor:com.tectonic.ui:booleanSwitch"
156
+ // +operator-sdk:csv:customresourcedefinitions:order=34 ,type=spec,displayName="Disable Service Links",xDescriptors="urn:alm:descriptor:com.tectonic.ui:booleanSwitch"
153
157
DisableServiceLinks * bool `json:"disableServiceLinks,omitempty"`
154
158
155
159
// Tolerations to be added to application pods. Tolerations allow the scheduler to schedule pods on nodes with matching taints.
@@ -769,6 +773,11 @@ func (cr *OpenLibertyApplication) GetExpose() *bool {
769
773
return cr .Spec .Expose
770
774
}
771
775
776
+ // GetManagePasswordEncryption returns the Password Encryption key sharing status
777
+ func (cr * OpenLibertyApplication ) GetManagePasswordEncryption () * bool {
778
+ return cr .Spec .ManagePasswordEncryption
779
+ }
780
+
772
781
// GetManageLTPA returns the LTPA key sharing status
773
782
func (cr * OpenLibertyApplication ) GetManageLTPA () * bool {
774
783
return cr .Spec .ManageLTPA
0 commit comments