Skip to content

Commit ac06497

Browse files
committed
Merge remote-tracking branch 'origin/main' into cleanup-persistent-storage-and-README
2 parents 4fe362c + a03fa9e commit ac06497

File tree

94 files changed

+561
-938
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+561
-938
lines changed

.github/release.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# .github/release.yml
2+
# Template for release notes (used by .github/workflows/release.yml)
3+
4+
changelog:
5+
exclude:
6+
labels:
7+
- ignore-for-release
8+
- dependencies
9+
authors:
10+
- dependabot
11+
categories:
12+
- title: Major Changes
13+
labels:
14+
- breaking-change
15+
- title: Additional Features
16+
labels:
17+
- enhancement
18+
- title: Bug Fixes
19+
labels:
20+
- "*"

.github/workflows/publish-gh-pages.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ jobs:
5252
5353
cd $GITHUB_WORKSPACE/branch-4.0/documentation
5454
echo "Building documentation for latest minor version..."
55+
latest_tag=$(git ls-remote https://github.com/oracle/weblogic-kubernetes-operator.git --h --sort origin "refs/tags/v*" | cut -f2 | grep v4.0 | tail -1 | cut -c12-)
56+
echo "Latest tag is $latest_tag..."
57+
echo $latest_tag >| $GITHUB_WORKSPACE/branch-4.0/documentation/site/layouts/shortcodes/latestVersion.html
5558
hugo -s site -d "$GITHUB_WORKSPACE/WORK" -b https://oracle.github.io/weblogic-kubernetes-operator
5659
echo "Copying static files into place..."
5760
cp -R domains "$GITHUB_WORKSPACE/WORK"

.github/workflows/release.yml

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
name: Release
2+
on:
3+
push:
4+
tags:
5+
- v*
6+
7+
env:
8+
REGISTRY: ghcr.io
9+
BASE_IMAGE_NAME: ghcr.io/oracle/weblogic-kubernetes-operator
10+
11+
jobs:
12+
build:
13+
name: Build
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: "Set environmental variables"
17+
run: |
18+
VERSION=${GITHUB_REF_NAME#v}
19+
echo "VERSION=$VERSION" >> $GITHUB_ENV
20+
echo "IMAGE_NAME=${{ env.REGISTRY }}/${{ env.BASE_IMAGE_NAME }}:$VERSION" >> $GITHUB_ENV
21+
22+
- name: Checkout branch
23+
uses: actions/checkout@v3
24+
25+
- name: Set up JDK
26+
uses: actions/setup-java@v3
27+
with:
28+
distribution: 'temurin'
29+
java-version: 17
30+
31+
- name: Cache Maven packages
32+
uses: actions/cache@v3
33+
with:
34+
path: ~/.m2
35+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
36+
restore-keys: ${{ runner.os }}-m2
37+
38+
- name: Build
39+
env:
40+
GITHUB_TOKEN: ${{ secrets.PUBLISH_SECRET }}
41+
run: mvn clean package -Dtag=${{ env.VERSION }}
42+
43+
- name: Create Draft Release
44+
id: draft-release
45+
run: |
46+
echo 'PR_URL<<EOF' >> $GITHUB_ENV
47+
gh release create ${{ github.ref_name }} \
48+
--draft \
49+
--generate-notes \
50+
--target release/4.1 \
51+
--title 'Operator ${{ env.VERSION }}' \
52+
--repo https://github.com/oracle/weblogic-kubernetes-operator
53+
echo 'EOF' >> $GITHUB_ENV
54+
env:
55+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56+
57+
- name: Set up QEMU
58+
uses: docker/setup-qemu-action@v2
59+
60+
- name: Set up Buildx
61+
uses: docker/setup-buildx-action@v2
62+
63+
- name: Log in to the Container registry
64+
uses: docker/login-action@v2
65+
with:
66+
registry: ${{ env.REGISTRY }}
67+
username: ${{ github.actor }}
68+
password: ${{ secrets.GITHUB_TOKEN }}
69+
70+
- name: Build and push container image
71+
uses: docker/build-push-action@v4
72+
with:
73+
context: .
74+
platforms: linux/amd64,linux/arm64
75+
push: true
76+
tags: ${{ env.IMAGE_NAME }}
77+
78+
- name: Checkout gh-pages
79+
uses: actions/checkout@v3
80+
with:
81+
ref: gh-pages
82+
path: gh-pages
83+
token: ${{ secrets.PUBLISH_SECRET }}
84+
85+
- name: Generate and publish Helm chart
86+
run: |
87+
curl -fL -o helm.tar.gz "https://get.helm.sh/helm-v3.12.1-linux-amd64.tar.gz"
88+
tar -xf helm.tar.gz
89+
export PATH="$PWD/linux-amd64:$PATH"
90+
sed -i 's#4.1.0-RELEASE-MARKER#${{ env.BASE_IMAGE_NAME }}:$VERSION#g' $GITHUB_WORKSPACE/kubernetes/charts/weblogic-operator/values.yaml
91+
mkdir $GITHUB_WORKSPACE/WORK
92+
helm package --app-version $VERSION --version $VERSION $GITHUB_WORKSPACE/kubernetes/charts/weblogic-operator -d $GITHUB_WORKSPACE/WORK
93+
cp $GITHUB_WORKSPACE/WORK/*.tgz $GITHUB_WORKSPACE/gh-pages/charts/
94+
helm repo index $GITHUB_WORKSPACE/gh-pages/charts/ --url https://oracle.github.io/weblogic-kubernetes-operator/charts
95+
cd $GITHUB_WORKSPACE/gh-pages
96+
git config --global user.name "github-actions[bot]"
97+
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
98+
git add --all
99+
git commit -m "Helm chart update from release GitHub Action"
100+
git push origin gh-pages

Dockerfile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
# Copyright (c) 2017, 2023, Oracle and/or its affiliates.
22
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
33
#
4-
# HOW TO BUILD AND PUSH THIS IMAGE
5-
# -----------------------
6-
# Run:
7-
# $ ./buildAndPushImage.sh -t <image-name>
8-
#
94
# -------------------------
105
FROM ghcr.io/oracle/oraclelinux:9-slim AS jre-build
116

README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,6 @@ You can:
2424

2525
The fastest way to experience the operator is to follow the [Quick Start guide](https://oracle.github.io/weblogic-kubernetes-operator/quickstart/), or you can peruse our [documentation](https://oracle.github.io/weblogic-kubernetes-operator), read our [blogs](https://blogs.oracle.com/weblogicserver/how-to-weblogic-server-on-kubernetes), or try out the [samples](https://oracle.github.io/weblogic-kubernetes-operator/samples/).
2626

27-
***
28-
The [current release of the operator](https://github.com/oracle/weblogic-kubernetes-operator/releases) is 4.0.6.
29-
This release was published on April 8, 2023.
30-
***
31-
3227
## Documentation
3328

3429
Documentation for the operator is [available here](https://oracle.github.io/weblogic-kubernetes-operator).

buildAndPushImage.sh

Lines changed: 0 additions & 90 deletions
This file was deleted.

documentation/domains/Domain.json

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -312,12 +312,8 @@
312312
},
313313
"domainType": {
314314
"default": "JRF",
315-
"description": "WebLogic Deploy Tooling domain type. Legal values: WLS, JRF. Defaults to JRF.",
316-
"type": "string",
317-
"enum": [
318-
"WLS",
319-
"JRF"
320-
]
315+
"description": "WebLogic Deploy Tooling domain type. Known values are: WLS, RestrictedJRF, JRF. Defaults to JRF.",
316+
"type": "string"
321317
},
322318
"opss": {
323319
"description": "Settings for OPSS security.",
@@ -872,10 +868,6 @@
872868
"resources": {
873869
"description": "Resources represents the minimum resources the volume should have. More info https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources. ResourceRequirements describes the compute resource requirements.",
874870
"$ref": "https://github.com/garethr/kubernetes-json-schema/blob/master/v1.13.5/_definitions.json#/definitions/io.k8s.api.core.v1.ResourceRequirements"
875-
},
876-
"volumeMode": {
877-
"description": "VolumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec.",
878-
"type": "string"
879871
}
880872
}
881873
},
@@ -901,10 +893,6 @@
901893
"capacity": {
902894
"description": "Capacity is the description of the persistent volume\u0027s resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity",
903895
"$ref": "#/definitions/Map"
904-
},
905-
"volumeMode": {
906-
"description": "VolumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec.",
907-
"type": "string"
908896
}
909897
}
910898
},

documentation/domains/Domain.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ The current status of the operation of the WebLogic domain. Updated automaticall
305305
| `createIfNotExists` | string | Specifies if the operator should create only the domain or the domain with RCU (for JRF-based domains). Legal values: domain, domainAndRCU. Defaults to domain. |
306306
| `domainCreationConfigMap` | string | Name of a ConfigMap containing the WebLogic Deploy Tooling model. |
307307
| `domainCreationImages` | Array of [Domain Creation Image](#domain-creation-image) | Domain creation images containing WebLogic Deploy Tooling model, application archive, and WebLogic Deploy Tooling installation files. These files will be used to create the domain during introspection. This feature internally uses a Kubernetes emptyDir volume and Kubernetes init containers to share the files from the additional images |
308-
| `domainType` | string | WebLogic Deploy Tooling domain type. Legal values: WLS, JRF. Defaults to JRF. |
308+
| `domainType` | string | WebLogic Deploy Tooling domain type. Known values are: WLS, RestrictedJRF, JRF. Defaults to JRF. |
309309
| `opss` | [Opss](#opss) | Settings for OPSS security. |
310310

311311
### Persistent Volume
@@ -365,15 +365,13 @@ The current status of the operation of the WebLogic domain. Updated automaticall
365365
| `nfs` | [NFS Volume Source](k8s1.13.5.md#nfs-volume-source) | nfs represents an NFS mount on the host. Provisioned by an admin. More info:<br/>https://kubernetes.io/docs/concepts/storage/volumes#nfs<br/>Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling. |
366366
| `persistentVolumeReclaimPolicy` | string | PersistentVolumeReclaimPolicy defines what happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming |
367367
| `storageClassName` | string | StorageClassName is the name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. |
368-
| `volumeMode` | string | VolumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec. |
369368

370369
### Persistent Volume Claim Spec
371370

372371
| Name | Type | Description |
373372
| --- | --- | --- |
374373
| `resources` | [Resource Requirements](k8s1.13.5.md#resource-requirements) | Resources represents the minimum resources the volume should have. More info https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources. ResourceRequirements describes the compute resource requirements. |
375374
| `storageClassName` | string | StorageClassName is the name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. |
376-
| `volumeMode` | string | VolumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec. |
377375
| `volumeName` | string | VolumeName is the binding reference to the PersistentVolume backing this claim. |
378376

379377
### WDT Timeouts

documentation/site/content/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ using the operator to deploy and run a WebLogic domain container-packaged web ap
3232
#### Current production release
3333

3434
The [current release of the operator](https://github.com/oracle/weblogic-kubernetes-operator/releases) is {{< latestVersion >}}.
35-
This release was published on April 8, 2023. See the [operator prerequisites]({{< relref "/introduction/prerequisites/introduction.md" >}}) and [supported environments]({{< relref "/introduction/platforms/environments.md" >}}).
35+
See the [operator prerequisites]({{< relref "/introduction/prerequisites/introduction.md" >}}) and [supported environments]({{< relref "/introduction/platforms/environments.md" >}}).
3636

3737
***
3838

documentation/site/content/base-images/custom-images.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ Finally, you can use the WIT `inspect` command to [inspect images]({{< relref "/
8080
- Optionally, includes a WDT installation and model files in the image
8181
(for Model in Image domains).
8282
- _Important_:
83-
- **Note:** Patching an Oracle Home using the WIT `update`
83+
- **NOTE**: Patching an Oracle Home using the WIT `update`
8484
command results in a larger WebLogic Server image
8585
due to the immutable layering in container images. For small updates, such as a one-off patch,
8686
the increase in the image size may be negligible. However, for larger updates, the increase in size will be _significant_.
@@ -144,7 +144,7 @@ sample assumes that you have installed WIT in `/tmp/imagetool`; you can choose t
144144

145145
1. Download your desired WebLogic Server installer from the Oracle Technology Network [WebLogic Server installers](https://www.oracle.com/middleware/technologies/weblogic-server-installers-downloads.html) page or from the [Oracle Software Delivery Cloud](https://edelivery.oracle.com/osdc/faces/Home.jspx) (OSDC).
146146

147-
**Note:** The WebLogic Server installers will not be fully patched.
147+
**NOTE**: The WebLogic Server installers will not be fully patched.
148148
In a subsequent step, you'll use
149149
the WIT `--patches` or `--recommendedPatches` options
150150
to apply one-off and recommended Oracle patches.
@@ -214,7 +214,7 @@ Oracle has extended support of WebLogic Server 12.2.1.3, for six months _only_,
214214
--passwordEnv=MYPWD
215215
```
216216

217-
**Notes:**
217+
**NOTES**:
218218
- To enable WIT to download patches,
219219
you must supply your My Oracle Support (Oracle Single Sign-On) credentials
220220
using the `--user` and `--passwordEnv` parameters (or one of the other password CLA options).
@@ -494,7 +494,7 @@ to create the domain home in Domain in Image.
494494
495495
{{% /expand %}}
496496
497-
**Notes**:
497+
**NOTES**:
498498
499499
- The sample script and its `domain.properties` file include a sample WebLogic administration password.
500500
These files must be protected and the sample password must be changed.
@@ -507,7 +507,7 @@ to create the domain home in Domain in Image.
507507
508508
#### Create a custom image with your model inside the image
509509
510-
**NOTE**: Model in Image without auxiliary images (the WDT model and installation files are included in the same image with the WebLogic Server installation) will be deprecated in WebLogic Kubernetes Operator version 4.0.7. Oracle recommends that you use Model in Image _with_ auxiliary images. See [Auxiliary images]({{< relref "/managing-domains/model-in-image/auxiliary-images.md" >}}).
510+
**NOTE**: Model in Image without auxiliary images (the WDT model and installation files are included in the same image with the WebLogic Server installation) is deprecated in WebLogic Kubernetes Operator version 4.0.7. Oracle recommends that you use Model in Image _with_ auxiliary images. See [Auxiliary images]({{< relref "/managing-domains/model-in-image/auxiliary-images.md" >}}).
511511
512512
{{% notice warning %}}
513513
The example in this section references a base image,
@@ -581,16 +581,17 @@ Example steps for creating a custom WebLogic image with a Model in Image file la
581581
--chown oracle:root
582582
```
583583
584-
__Note__: If using a Fusion Middleware Infrastructure base image,
584+
**NOTE**: If using a Fusion Middleware Infrastructure base image,
585585
then specify a `--wdtDomainType` of `JRF` or `RestrictedJRF`,
586586
`JRF-v1` instead of `WLS-v1` for the image tag,
587587
and substitute each occurrence of `model-in-image__WLS-v1` with `model-in-image__JRF-v1`.
588+
**Also note** that JRF support in Model in Image domains is deprecated in operator version 4.1.0; For JRF domains, use the [Domain on PV]({{< relref "/managing-domains/choosing-a-model/_index.md" >}}) domain home source type instead.
588589
589590
1. For an example Domain YAML file that sets up Model in Image to reference the image,
590591
see `/tmp/mii-sample/domain-resources/WLS/mii-initial-d1-WLS-v1.yaml`
591592
(or `./JRF/mii-initial-d1-JRF-v1.yaml` if using Fusion Middleware Infrastructure `JRF` mode).
592593
593-
__Notes__:
594+
**NOTES**:
594595
595596
- The default values for `domain.spec.configuration.model.wdtInstallHome` and `.modelHome`
596597
reference the location of the WDT installation and model files that WIT copied into the image.

0 commit comments

Comments
 (0)