Skip to content

Owls 94624 - Disable validation for AUXILIARY_IMAGE_PATH as the default location can be overridden in custom command and fix default for domain.spec.auxiliaryImageVolumes.mountPath. #2659

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion documentation/domains/Domain.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
"type": "string"
},
"mountPath": {
"description": "The mount path. The files in the path are populated from the same named directory in the images supplied by each container in `serverPod.auxiliaryImages`. Each volume must be configured with a different mount path. Required.",
"description": "The mount path. The files in the path are populated from the same named directory in the images supplied by each container in `serverPod.auxiliaryImages`. Each volume must be configured with a different mount path. Defaults to \u0027/auxiliary\u0027.",
"type": "string"
},
"name": {
Expand Down
2 changes: 1 addition & 1 deletion documentation/domains/Domain.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ The current status of the operation of the WebLogic domain. Updated automaticall
| Name | Type | Description |
| --- | --- | --- |
| `medium` | string | The emptyDir volume medium. This is an advanced setting that rarely needs to be configured. Defaults to unset, which means the volume's files are stored on the local node's file system for the life of the pod. |
| `mountPath` | string | The mount path. The files in the path are populated from the same named directory in the images supplied by each container in `serverPod.auxiliaryImages`. Each volume must be configured with a different mount path. Required. |
| `mountPath` | string | The mount path. The files in the path are populated from the same named directory in the images supplied by each container in `serverPod.auxiliaryImages`. Each volume must be configured with a different mount path. Defaults to '/auxiliary'. |
| `name` | string | The name of the volume. Required. |
| `sizeLimit` | string | The emptyDir volume size limit. Defaults to unset. |

Expand Down
2 changes: 1 addition & 1 deletion documentation/domains/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1025,7 +1025,7 @@
"type": "string"
},
"mountPath": {
"description": "The mount path. The files in the path are populated from the same named directory in the images supplied by each container in `serverPod.auxiliaryImages`. Each volume must be configured with a different mount path. Required.",
"description": "The mount path. The files in the path are populated from the same named directory in the images supplied by each container in `serverPod.auxiliaryImages`. Each volume must be configured with a different mount path. Defaults to \u0027/auxiliary\u0027.",
"type": "string"
},
"name": {
Expand Down
4 changes: 2 additions & 2 deletions kubernetes/crd/domain-crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
weblogic.sha256: 812f53bce216b79c4c74d4a094af4908fe381a1409dc491f9a986e09939774cf
weblogic.sha256: 62b7ad1ba2e8d59aa1ffe2bc083b55fb25b43bb4939f48f61c4a7973e604d2fa
name: domains.weblogic.oracle
spec:
group: weblogic.oracle
Expand Down Expand Up @@ -8614,7 +8614,7 @@ spec:
description: The mount path. The files in the path are populated
from the same named directory in the images supplied by each
container in `serverPod.auxiliaryImages`. Each volume must
be configured with a different mount path. Required.
be configured with a different mount path. Defaults to '/auxiliary'.
type: string
name:
description: The name of the volume. Required.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class AuxiliaryImageVolume {

@Description("The mount path. The files in the path are populated from the same named directory in the images "
+ "supplied by each container in `serverPod.auxiliaryImages`. Each volume must be configured with "
+ "a different mount path. Required.")
+ "a different mount path. Defaults to '/auxiliary'.")
@NotNull
private String mountPath;

Expand Down
5 changes: 0 additions & 5 deletions operator/src/main/resources/scripts/utils_base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -238,11 +238,6 @@ function initAuxiliaryImage() {
"AUXILIARY_IMAGE_PATH is '$AUXILIARY_IMAGE_PATH' and AUXILIARY_IMAGE_TARGET_PATH is '${AUXILIARY_IMAGE_TARGET_PATH}'."
traceDirs before AUXILIARY_IMAGE_PATH

if [ ! -d ${AUXILIARY_IMAGE_PATH} ] || [ -z "$(ls -A ${AUXILIARY_IMAGE_PATH})" ]; then
trace SEVERE "Auxiliary Image: Dir '${AUXILIARY_IMAGE_PATH}' doesn't exist or is empty. Exiting."
return
fi

trace FINE "Auxiliary Image: About to execute AUXILIARY_IMAGE_COMMAND='$AUXILIARY_IMAGE_COMMAND' ."
results=$(eval $AUXILIARY_IMAGE_COMMAND 2>&1)
if [ $? -ne 0 ]; then
Expand Down