Skip to content

Commit 8ef2643

Browse files
authored
JIRA WDT-452 - Remove runtime encryption secret from Verrazzano model.yaml (#705)
1 parent 8cfcabf commit 8ef2643

File tree

3 files changed

+0
-17
lines changed

3 files changed

+0
-17
lines changed

core/src/main/python/wlsdeploy/tool/util/targets/vz_config_helper.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
HAS_CLUSTERS = 'hasClusters'
4141
HAS_DATABASES = 'hasDatabases'
4242
REPLICAS = 'replicas'
43-
RUNTIME_ENCRYPTION_SECRET = 'runtimeEncryptionSecret'
4443
WEBLOGIC_CREDENTIALS_SECRET = 'webLogicCredentialsSecret'
4544

4645

@@ -115,8 +114,6 @@ def _build_template_hash(model, model_context, aliases):
115114

116115
# configuration / model
117116
template_hash[DOMAIN_TYPE] = model_context.get_domain_type()
118-
template_hash[RUNTIME_ENCRYPTION_SECRET] = domain_uid +\
119-
target_configuration_helper.RUNTIME_ENCRYPTION_SECRET_SUFFIX
120117

121118
# clusters
122119

core/src/main/python/wlsdeploy/util/target_configuration_helper.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@
2626
__class_name = 'target_configuration_helper'
2727
__logger = PlatformLogger('wlsdeploy.tool.util')
2828

29-
# secret name for runtime encryption
30-
RUNTIME_ENCRYPTION_SECRET_NAME = 'runtime-encryption'
31-
RUNTIME_ENCRYPTION_SECRET_SUFFIX = '-' + RUNTIME_ENCRYPTION_SECRET_NAME
32-
3329
# Kubernetes secret for admin name and password is <domainUid>-weblogic-credentials
3430
WEBLOGIC_CREDENTIALS_SECRET_NAME = 'weblogic-credentials'
3531
WEBLOGIC_CREDENTIALS_SECRET_SUFFIX = '-' + WEBLOGIC_CREDENTIALS_SECRET_NAME
@@ -155,15 +151,6 @@ def generate_k8s_script(model_context, token_dictionary, model_dictionary):
155151
k8s_script.write("# " + message + nl)
156152
k8s_script.write(command_string + nl)
157153

158-
# for vz additional output type, add the runtime encryption secret
159-
output_types = model_context.get_target_configuration().get_additional_output_types()
160-
if VZ_EXTRA_CONFIG in output_types:
161-
message = exception_helper.get_message("WLSDPLY-01663", PASSWORD_TAG, RUNTIME_ENCRYPTION_SECRET_NAME)
162-
command_string = "create_k8s_secret %s %s " % (RUNTIME_ENCRYPTION_SECRET_NAME, PASSWORD_TAG)
163-
k8s_script.write(nl)
164-
k8s_script.write("# " + message + nl)
165-
k8s_script.write(command_string + nl)
166-
167154
k8s_script.close()
168155

169156

core/src/main/resources/oracle/weblogic/deploy/targets/vz/model.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ spec:
3333
configuration:
3434
model:
3535
domainType: {{{domainType}}}
36-
runtimeEncryptionSecret: {{{runtimeEncryptionSecret}}}
3736
connections:
3837
- ingress:
3938
- name: {{{domainPrefix}}}-ingress

0 commit comments

Comments
 (0)