Skip to content

Commit 91af423

Browse files
committed
Checkpoint k8s artifact renaming work
1 parent 7cb67f8 commit 91af423

File tree

8 files changed

+15
-16
lines changed

8 files changed

+15
-16
lines changed

kubernetes/internal/create-weblogic-domain.sh

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,10 @@ function initAndValidateOutputDir {
9898
create-weblogic-domain-inputs.yaml \
9999
weblogic-domain-persistent-volume.yaml \
100100
weblogic-domain-persistent-volume-claim.yaml \
101+
weblogic-domain-traefik-${clusterName}.yaml \
102+
weblogic-domain-traefik-security-${clusterName}.yaml \
101103
create-weblogic-domain-job.yaml \
102-
domain-custom-resource.yaml \
103-
traefik.yaml
104+
domain-custom-resource.yaml
104105
}
105106

106107
#
@@ -310,12 +311,12 @@ function initialize {
310311
validationError "The template file ${dcrInput} for creating the domain custom resource was not found"
311312
fi
312313

313-
traefikSecurityInput="${scriptDir}/traefik-security-template.yaml"
314+
traefikSecurityInput="${scriptDir}/weblogic-domain-traefik-security-template.yaml"
314315
if [ ! -f ${traefikSecurityInput} ]; then
315316
validationError "The file ${traefikSecurityInput} for generating the traefik RBAC was not found"
316317
fi
317318

318-
traefikInput="${scriptDir}/traefik-template.yaml"
319+
traefikInput="${scriptDir}/weblogic-domain-traefik-template.yaml"
319320
if [ ! -f ${traefikInput} ]; then
320321
validationError "The template file ${traefikInput} for generating the traefik deployment was not found"
321322
fi
@@ -385,8 +386,8 @@ function createYamlFiles {
385386
domainPVCOutput="${domainOutputDir}/weblogic-domain-persistent-volume-claim.yaml"
386387
jobOutput="${domainOutputDir}/create-weblogic-domain-job.yaml"
387388
dcrOutput="${domainOutputDir}/domain-custom-resource.yaml"
388-
traefikSecurityOutput="${domainOutputDir}/traefik-security.yaml"
389-
traefikOutput="${domainOutputDir}/traefik.yaml"
389+
traefikSecurityOutput="${domainOutputDir}/weblogic-domain-traefik-security-${clusterName}.yaml"
390+
traefikOutput="${domainOutputDir}/weblogic-domain-traefik-${clusterName}.yaml"
390391

391392
enabledPrefix="" # uncomment the feature
392393
disabledPrefix="# " # comment out the feature

kubernetes/internal/traefik-security-template.yaml renamed to kubernetes/internal/weblogic-domain-traefik-security-template.yaml

File renamed without changes.
File renamed without changes.

site/name-changes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ The names of several of the generated YAML files have changed.
9191
| persistent-volume.yaml | weblogic-domain-persistent-volume.yaml |
9292
| persistent-volume-claim.yaml | weblogic-domain-persistent-volume-claim.yaml |
9393
| rbac.yaml | weblogic-operator-security.yaml |
94-
| traefik-deployment.yaml | traefik.yaml |
95-
| traefik-rbac.yaml | traefik-security.yaml |
94+
| traefik-deployment.yaml | weblogic-domain-traefik-${clusterName}.yaml |
95+
| traefik-rbac.yaml | weblogic-domain-traefik-security-${clusterName}.yaml |
9696
| weblogic-operator.yaml | same |
9797

9898
## Input File Contents

src/integration-tests/bash/cleanup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,8 @@ function orderlyDelete {
204204
kubectl -n $curns delete secret ${curdomain}-weblogic-credentials --ignore-not-found
205205

206206
echo @@ Deleting ${curdomain} traefik in namespace $curns
207-
kubectlDeleteF "${USER_PROJECTS_DIR}/weblogic-domains/${curdomain}/traefik.yaml"
208-
kubectlDeleteF "${USER_PROJECTS_DIR}/weblogic-domains/${curdomain}/traefik-security.yaml"
207+
kubectlDeleteF "${USER_PROJECTS_DIR}/weblogic-domains/${curdomain}/weblogic-domain-traefik-cluster-1.yaml"
208+
kubectlDeleteF "${USER_PROJECTS_DIR}/weblogic-domains/${curdomain}/weblogic-domain-traefik-security-cluster-1.yaml"
209209

210210
echo @@ Deleting configmap ${curdomain}-create-weblogic-domain-job-cm in namespace $curns
211211
kubectl -n $curns delete cm ${curdomain}-create-weblogic-domain-job-cm --ignore-not-found

src/test/java/oracle/kubernetes/operator/create/DomainFiles.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ public class DomainFiles {
1616
private static final String CREATE_WEBLOGIC_DOMAIN_INPUTS_YAML = "create-weblogic-domain-inputs.yaml";
1717
private static final String DOMAIN_CUSTOM_RESOURCE_YAML = "domain-custom-resource.yaml";
1818
private static final String CREATE_WEBLOGIC_DOMAIN_JOB_YAML = "create-weblogic-domain-job.yaml";
19-
private static final String TRAEFIK_YAML = "traefik.yaml";
20-
private static final String TRAEFIK_SECURITY_YAML = "traefik-security.yaml";
2119
private static final String WEBLOGIC_DOMAIN_PERSISTENT_VOLUME_YAML = "weblogic-domain-persistent-volume.yaml";
2220
private static final String WEBLOGIC_DOMAIN_PERSISTENT_VOLUME_CLAIM_YAML = "weblogic-domain-persistent-volume-claim.yaml";
2321

@@ -44,11 +42,11 @@ public Path getDomainCustomResourceYamlPath() {
4442
}
4543

4644
public Path getTraefikYamlPath() {
47-
return getWeblogicDomainPath().resolve(TRAEFIK_YAML);
45+
return getWeblogicDomainPath().resolve("weblogic-domain-traefik-" + inputs.getClusterName() + ".yaml");
4846
}
4947

5048
public Path getTraefikSecurityYamlPath() {
51-
return getWeblogicDomainPath().resolve(TRAEFIK_SECURITY_YAML);
49+
return getWeblogicDomainPath().resolve("weblogic-domain-traefik-security-" + inputs.getClusterName() + ".yaml");
5250
}
5351

5452
public Path getWeblogicDomainPersistentVolumeYamlPath() {

src/test/java/oracle/kubernetes/operator/create/ParsedTraefikSecurityYaml.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import io.kubernetes.client.models.V1beta1ClusterRoleBinding;
1010

1111
/**
12-
* Parses a generated traefik-security.yaml file into a set of typed k8s java objects
12+
* Parses a generated weblogic-domain-traefik-security-inputs.getClusterName().yaml file into a set of typed k8s java objects
1313
*/
1414
public class ParsedTraefikSecurityYaml extends ParsedKubernetesYaml {
1515

src/test/java/oracle/kubernetes/operator/create/ParsedTraefikYaml.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import io.kubernetes.client.models.V1ServiceAccount;
1212

1313
/**
14-
* Parses a generated traefik.yaml file into a set of typed k8s java objects
14+
* Parses a generated weblogic-domain-traefik-inputs.getClusterName().yaml file into a set of typed k8s java objects
1515
*/
1616
public class ParsedTraefikYaml extends ParsedKubernetesYaml {
1717

0 commit comments

Comments
 (0)