Skip to content

Commit ee51639

Browse files
committed
Backport support for Kubernetes 1.22 and 1.23
1 parent f1a1f5c commit ee51639

File tree

84 files changed

+5517
-5298
lines changed

Some content is hidden

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

84 files changed

+5517
-5298
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2017, 2021, Oracle and/or its affiliates.
1+
# Copyright (c) 2017, 2022, 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
#
44
# HOW TO BUILD THIS IMAGE
@@ -25,7 +25,7 @@ RUN set -eux; \
2525
ENV LANG="en_US.UTF-8" \
2626
JAVA_HOME="/usr/local/java" \
2727
PATH="/operator:$JAVA_HOME/bin:$PATH" \
28-
JAVA_URL="https://download.java.net/java/GA/jdk16.0.2/d4a915d82b4c4fbb9bde534da945d746/7/GPL/openjdk-16.0.2_linux-x64_bin.tar.gz"
28+
JAVA_URL="https://download.java.net/java/GA/jdk17.0.2/dfd4a8d0985749f896bed50d7138ee7f/8/GPL/openjdk-17.0.2_linux-x64_bin.tar.gz"
2929

3030
# Install Java and make the operator run with a non-root user id (1000 is the `oracle` user)
3131
RUN set -eux; \
@@ -61,4 +61,4 @@ HEALTHCHECK --interval=1m --timeout=10s \
6161

6262
WORKDIR /operator/
6363

64-
CMD ["/operator/operator.sh"]
64+
CMD ["/operator/operator.sh"]

build-tools/dependency-check/dependency-check-suppression.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<suppressions xmlns="https://jeremylong.github.io/DependencyCheck/dependency-suppression.1.3.xsd">
3+
<suppress>
4+
<packageUrl regex="true">^pkg:maven/jakarta\.ws\.rs/jakarta\.ws\.rs-api@.*$</packageUrl>
5+
<cpe>cpe:/a:eclipse:eclipse_ide</cpe>
6+
</suppress>
37
<suppress>
48
<packageUrl regex="true">^pkg:maven/io\.kubernetes/client\-java@.*$</packageUrl>
59
<cpe>cpe:/a:kubernetes:kubernetes</cpe>
@@ -16,6 +20,10 @@
1620
<packageUrl regex="true">^pkg:maven/io\.kubernetes/client\-java\-proto@.*$</packageUrl>
1721
<cpe>cpe:/a:kubernetes:kubernetes</cpe>
1822
</suppress>
23+
<suppress>
24+
<packageUrl regex="true">^pkg:maven/com\.google\.protobuf/protobuf\-java@.*$</packageUrl>
25+
<cpe>cpe:/a:google:protobuf-java</cpe>
26+
</suppress>
1927
<suppress>
2028
<packageUrl regex="true">^pkg:maven/oracle\.kubernetes/weblogic\-kubernetes\-operator@.*$</packageUrl>
2129
<cpe>cpe:/a:kubernetes:kubernetes</cpe>

documentation/3.4/content/quickstart/install.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ weight: 4
1010
First, set up Helm:
1111

1212
```shell
13-
$ helm repo add traefik https://containous.github.io/traefik-helm-chart/ --force-update
13+
$ helm repo add traefik https://helm.traefik.io/traefik --force-update
1414
```
1515

1616
#### Create a Traefik ingress controller.

documentation/3.4/content/samples/tanzu-kubernetes-service/_index.md

Lines changed: 75 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ TKG is a managed Kubernetes Service that lets you quickly deploy and manage Kube
1313

1414
#### Contents
1515

16-
- [Prerequisites](#prerequisites)
17-
- [Create a Tanzu Kubernetes cluster](#create-a-tanzu-kubernetes-cluster)
18-
- [Oracle Container Registry](#oracle-container-registry)
19-
- [Install WebLogic Kubernetes Operator](#install-weblogic-kubernetes-operator)
20-
- [Create an image](#create-an-image)
21-
- [Create WebLogic domain](#create-weblogic-domain)
22-
- [Invoke the web application](#invoke-the-web-application)
16+
- [Prerequisites](#prerequisites)
17+
- [Create a Tanzu Kubernetes cluster](#create-a-tanzu-kubernetes-cluster)
18+
- [Oracle Container Registry](#oracle-container-registry)
19+
- [Install WebLogic Kubernetes Operator](#install-weblogic-kubernetes-operator)
20+
- [Create an image](#create-an-image)
21+
- [Create WebLogic domain](#create-weblogic-domain)
22+
- [Invoke the web application](#invoke-the-web-application)
2323

2424
#### Prerequisites
2525

@@ -146,12 +146,12 @@ weblogic-operator-775b668c8f-nwwnn 1/1 Running 0 32s
146146

147147
#### Create an image
148148

149-
- [Image creation prerequisites](#image-creation-prerequisites)
150-
- [Image creation - Introduction](#image-creation---introduction)
151-
- [Understanding your first archive](#understanding-your-first-archive)
152-
- [Staging a ZIP file of the archive](#staging-a-zip-file-of-the-archive)
153-
- [Staging model files](#staging-model-files)
154-
- [Creating the image with WIT](#creating-the-image-with-wit)
149+
- [Image creation prerequisites](#image-creation-prerequisites)
150+
- [Image creation - Introduction](#image-creation---introduction)
151+
- [Understanding your first archive](#understanding-your-first-archive)
152+
- [Staging a ZIP file of the archive](#staging-a-zip-file-of-the-archive)
153+
- [Staging model files](#staging-model-files)
154+
- [Creating the image with WIT](#creating-the-image-with-wit)
155155

156156
##### Image creation prerequisites
157157
1. The `JAVA_HOME` environment variable must be set and must reference a valid JDK 8 or 11 installation.
@@ -217,9 +217,9 @@ The following sections contain the steps for creating the image `model-in-image:
217217
The sample includes a predefined archive directory in `/tmp/mii-sample/archives/archive-v1` that you will use to create an archive ZIP file for the image.
218218

219219
The archive top directory, named `wlsdeploy`, contains a directory named `applications`, which includes an ‘exploded’ sample JSP web application in the directory, `myapp-v1`. Three useful aspects to remember about WDT archives are:
220-
- A model image can contain multiple WDT archives.
221-
- WDT archives can contain multiple applications, libraries, and other components.
222-
- WDT archives have a [well defined directory structure](https://oracle.github.io/weblogic-deploy-tooling/concepts/archive/), which always has `wlsdeploy` as the top directory.
220+
- A model image can contain multiple WDT archives.
221+
- WDT archives can contain multiple applications, libraries, and other components.
222+
- WDT archives have a [well defined directory structure](https://oracle.github.io/weblogic-deploy-tooling/concepts/archive/), which always has `wlsdeploy` as the top directory.
223223

224224
The application displays important details about the WebLogic Server instance that it’s running on: namely its domain name, cluster name, and server name, as well as the names of any data sources that are targeted to the server.
225225

@@ -262,36 +262,36 @@ Here is the WLS `model.10.yaml`:
262262

263263
```yaml
264264
domainInfo:
265-
AdminUserName: '@@SECRET:__weblogic-credentials__:username@@'
266-
AdminPassword: '@@SECRET:__weblogic-credentials__:password@@'
267-
ServerStartMode: 'prod'
265+
AdminUserName: '@@SECRET:__weblogic-credentials__:username@@'
266+
AdminPassword: '@@SECRET:__weblogic-credentials__:password@@'
267+
ServerStartMode: 'prod'
268268

269269
topology:
270-
Name: '@@ENV:CUSTOM_DOMAIN_NAME@@'
271-
AdminServerName: 'admin-server'
272-
Cluster:
273-
'cluster-1':
274-
DynamicServers:
275-
ServerTemplate: 'cluster-1-template'
276-
ServerNamePrefix: 'managed-server'
277-
DynamicClusterSize: '@@PROP:CLUSTER_SIZE@@'
278-
MaxDynamicClusterSize: '@@PROP:CLUSTER_SIZE@@'
279-
MinDynamicClusterSize: '0'
280-
CalculatedListenPorts: false
281-
Server:
282-
'admin-server':
283-
ListenPort: 7001
284-
ServerTemplate:
285-
'cluster-1-template':
286-
Cluster: 'cluster-1'
287-
ListenPort: 8001
270+
Name: '@@ENV:CUSTOM_DOMAIN_NAME@@'
271+
AdminServerName: 'admin-server'
272+
Cluster:
273+
'cluster-1':
274+
DynamicServers:
275+
ServerTemplate: 'cluster-1-template'
276+
ServerNamePrefix: 'managed-server'
277+
DynamicClusterSize: '@@PROP:CLUSTER_SIZE@@'
278+
MaxDynamicClusterSize: '@@PROP:CLUSTER_SIZE@@'
279+
MinDynamicClusterSize: '0'
280+
CalculatedListenPorts: false
281+
Server:
282+
'admin-server':
283+
ListenPort: 7001
284+
ServerTemplate:
285+
'cluster-1-template':
286+
Cluster: 'cluster-1'
287+
ListenPort: 8001
288288

289289
appDeployments:
290-
Application:
291-
myapp:
292-
SourcePath: 'wlsdeploy/applications/myapp-v1'
293-
ModuleType: ear
294-
Target: 'cluster-1'
290+
Application:
291+
myapp:
292+
SourcePath: 'wlsdeploy/applications/myapp-v1'
293+
ModuleType: ear
294+
Target: 'cluster-1'
295295
```
296296
297297
The model files:
@@ -316,10 +316,10 @@ A Model in Image image can contain multiple properties files, archive ZIP files,
316316

317317
At this point, you have staged all of the files needed for the image `model-in-image:WLS-v1`; they include:
318318

319-
- `/tmp/mii-sample/model-images/weblogic-deploy.zip`
320-
- `/tmp/mii-sample/model-images/model-in-image__WLS-v1/model.10.yaml`
321-
- `/tmp/mii-sample/model-images/model-in-image__WLS-v1/model.10.properties`
322-
- `/tmp/mii-sample/model-images/model-in-image__WLS-v1/archive.zip`
319+
- `/tmp/mii-sample/model-images/weblogic-deploy.zip`
320+
- `/tmp/mii-sample/model-images/model-in-image__WLS-v1/model.10.yaml`
321+
- `/tmp/mii-sample/model-images/model-in-image__WLS-v1/model.10.properties`
322+
- `/tmp/mii-sample/model-images/model-in-image__WLS-v1/archive.zip`
323323

324324
If you don’t see the `weblogic-deploy.zip` file, then you missed a step in the [prerequisites](#image-creation-prerequisites).
325325

@@ -346,11 +346,11 @@ If you don’t see the `imagetool` directory, then you missed a step in the prer
346346

347347
This command runs the WebLogic Image Tool in its Model in Image mode, and does the following:
348348

349-
- Builds the final image as a layer on the `container-registry.oracle.com/middleware/weblogic:12.2.1.4` base image.
350-
- Copies the WDT ZIP file that’s referenced in the WIT cache into the image.
351-
- Note that you cached WDT in WIT using the keyword `latest` when you set up the cache during the sample prerequisites steps.
352-
- This lets WIT implicitly assume it’s the desired WDT version and removes the need to pass a `-wdtVersion` flag.
353-
- Copies the specified WDT model, properties, and application archives to image location `/u01/wdt/models`.
349+
- Builds the final image as a layer on the `container-registry.oracle.com/middleware/weblogic:12.2.1.4` base image.
350+
- Copies the WDT ZIP file that’s referenced in the WIT cache into the image.
351+
- Note that you cached WDT in WIT using the keyword `latest` when you set up the cache during the sample prerequisites steps.
352+
- This lets WIT implicitly assume it’s the desired WDT version and removes the need to pass a `-wdtVersion` flag.
353+
- Copies the specified WDT model, properties, and application archives to image location `/u01/wdt/models`.
354354

355355
When the command succeeds, it should end with output like the following:
356356

@@ -360,15 +360,15 @@ When the command succeeds, it should end with output like the following:
360360

361361
Also, if you run the `docker images` command, then you will see an image named `model-in-image:WLS-v1`.
362362

363-
> Note: If you have Kubernetes cluster worker nodes that are remote to your local machine, then you need to put the image in a location that these nodes can access. See [Ensuring your Kubernetes cluster can access images](#ensuring-your-kubernetes-cluster-can-access-images).
363+
> Note: If you have Kubernetes cluster worker nodes that are remote to your local machine, then you need to put the image in a location that these nodes can access. See [Ensuring your Kubernetes cluster can access images]({{< relref "/samples/domains/model-in-image/_index.md#ensuring-your-kubernetes-cluster-can-access-images" >}}).
364364

365365

366366
#### Create WebLogic domain
367367

368368
In this section, you will deploy the new image to namespace `sample-domain1-ns`, including the following steps:
369369

370370
- Create a namespace for the WebLogic domain.
371-
- Upgrade the operator to manage the WebLogic domain namespace.
371+
- Upgrade the operator to manage the WebLogic domain namespace.
372372
- Create a Secret containing your WebLogic administrator user name and password.
373373
- Create a Secret containing your Model in Image runtime encryption password:
374374
- All Model in Image domains must supply a runtime encryption Secret with a `password` value.
@@ -418,25 +418,25 @@ $ kubectl -n sample-domain1-ns label secret \
418418
weblogic.domainUID=sample-domain1
419419
```
420420

421-
Some important details about these secrets:
421+
Some important details about these secrets:
422422

423-
- The WebLogic credentials secret:
423+
- The WebLogic credentials secret:
424424
- It is required and must contain `username` and `password` fields.
425425
- It must be referenced by the `spec.webLogicCredentialsSecret` field in your Domain.
426426
- It also must be referenced by macros in the `domainInfo.AdminUserName` and `domainInfo.AdminPassWord` fields in your model YAML file.
427427

428-
- The Model WDT runtime secret:
428+
- The Model WDT runtime secret:
429429
- This is a special secret required by Model in Image.
430430
- It must contain a `password` field.
431431
- It must be referenced using the `spec.model.runtimeEncryptionSecret` field in its Domain.
432432
- It must remain the same for as long as the domain is deployed to Kubernetes but can be changed between deployments.
433433
- It is used to encrypt data as it's internally passed using log files from the domain's introspector job and on to its WebLogic Server pods.
434434

435-
- Deleting and recreating the secrets:
435+
- Deleting and recreating the secrets:
436436
- You delete a secret before creating it, otherwise the create command will fail if the secret already exists.
437437
- This allows you to change the secret when using the `kubectl create secret` command.
438438

439-
- You name and label secrets using their associated domain UID for two reasons:
439+
- You name and label secrets using their associated domain UID for two reasons:
440440
- To make it obvious which secrets belong to which domains.
441441
- To make it easier to clean up a domain. Typical cleanup scripts use the `weblogic.domainUID` label as a convenience for finding all resources associated with a domain.
442442

@@ -447,12 +447,12 @@ Now, you create a Domain YAML file. A Domain is the key resource that tells the
447447
Copy the following to a file called `/tmp/mii-sample/mii-initial.yaml` or similar, or use the file `/tmp/mii-sample/domain-resources/WLS/mii-initial-d1-WLS-v1.yaml` that is included in the sample source.
448448

449449

450-
{{%expand "Click here to view the WLS Domain YAML file." %}}
450+
{{%expand "Click here to view the WLS Domain YAML file." %}}
451451
```yaml
452452
#
453453
# This is an example of how to define a Domain resource.
454454
#
455-
apiVersion: "weblogic.oracle/v8"
455+
apiVersion: "weblogic.oracle/v9"
456456
kind: Domain
457457
metadata:
458458
name: sample-domain1
@@ -565,10 +565,10 @@ Copy the following to a file called `/tmp/mii-sample/mii-initial.yaml` or simila
565565
#secrets:
566566
#- sample-domain1-datasource-secret
567567
```
568-
{{% /expand %}}
568+
{{% /expand %}}
569569

570570

571-
> **Note**: Before you deploy the domain custom resource, determine if you have Kubernetes cluster worker nodes that are remote to your local machine. If so, you need to put the Domain's image in a location that these nodes can access and you may also need to modify your Domain YAML file to reference the new location. See [Ensuring your Kubernetes cluster can access images]({{< relref "/samples/domains/model-in-image/_index.md#ensuring-your-kubernetes-cluster-can-access-images" >}}).
571+
> **Note**: Before you deploy the domain custom resource, determine if you have Kubernetes cluster worker nodes that are remote to your local machine. If so, you need to put the Domain's image in a location that these nodes can access and you may also need to modify your Domain YAML file to reference the new location. See [Ensuring your Kubernetes cluster can access images]({{< relref "/samples/domains/model-in-image/_index.md#ensuring-your-kubernetes-cluster-can-access-images" >}}).
572572
573573
Run the following command to create the domain custom resource:
574574

@@ -682,26 +682,31 @@ Create ingress for accessing the application deployed in the cluster and to acce
682682
$ cat ingress.yaml
683683
```
684684
```yaml
685-
apiVersion: networking.k8s.io/v1beta1
685+
apiVersion: networking.k8s.io/v1
686686
kind: Ingress
687687
metadata:
688688
name: sample-nginx-ingress-pathrouting
689689
namespace: sample-domain1-ns
690-
annotations:
691-
kubernetes.io/ingress.class: nginx
692690
spec:
691+
ingressClassName: nginx
693692
rules:
694693
- host:
695694
http:
696695
paths:
697696
- path: /
697+
pathType: Prefix
698698
backend:
699-
serviceName: sample-domain1-cluster-cluster-1
700-
servicePort: 8001
699+
service:
700+
name: sample-domain1-cluster-cluster-1
701+
port:
702+
number: 8001
701703
- path: /console
704+
pathType: Prefix
702705
backend:
703-
serviceName: sample-domain1-admin-server
704-
servicePort: 7001
706+
service:
707+
name: sample-domain1-admin-server
708+
port:
709+
number: 7001
705710
```
706711
```shell
707712
$ kubectl apply -f ingress.yaml
@@ -767,4 +772,4 @@ Found 0 local data sources:
767772

768773
*****************************************************************
769774
</pre></body></html>
770-
```
775+
```

documentation/3.4/content/userguide/istio/istio.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ To see the Istio build version that is installed, use the `istioctl version` com
6666

6767
```shell script
6868
$ istioctl version
69-
client version: 1.10.4
70-
control plane version: 1.10.4
71-
data plane version: 1.10.4 (1 proxies)
69+
client version: 1.11.1
70+
control plane version: 1.11.1
71+
data plane version: 1.11.1 (1 proxies)
7272
```
7373

7474
#### Setting up an operator with Istio support

0 commit comments

Comments
 (0)