Skip to content

Commit 1ccead5

Browse files
committed
Continued removals
1 parent 35d9367 commit 1ccead5

File tree

7 files changed

+1
-263
lines changed

7 files changed

+1
-263
lines changed

operator/src/main/java/oracle/kubernetes/operator/helpers/SecretType.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,5 @@
99
public enum SecretType {
1010
WebLogicCredentials,
1111
ImagePull,
12-
ConfigOverride,
13-
RuntimeEncryption,
14-
OpssWalletPassword,
15-
OpssWalletFile
12+
ConfigOverride
1613
}

operator/src/main/java/oracle/kubernetes/operator/logging/MessageKeys.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,6 @@ public class MessageKeys {
133133
public static final String BAD_VOLUME_MOUNT_PATH = "WLSDO-0004";
134134
public static final String RESERVED_ENVIRONMENT_VARIABLES = "WLSDO-0005";
135135
public static final String ILLEGAL_SECRET_NAMESPACE = "WLSDO-0006";
136-
public static final String ILLEGAL_SIT_CONFIG_MII = "WLSDO-0007";
137-
public static final String MODEL_CONFIGMAP_NOT_FOUND = "WLSDO-0008";
138-
public static final String SECRET_NOT_SPECIFIED = "WLSDO-0009";
139-
public static final String OPSS_SECRET_NOT_SPECIFIED = "WLSDO-0010";
140136
public static final String NO_CLUSTER_IN_DOMAIN = "WLSDO-0011";
141137
public static final String NO_MANAGED_SERVER_IN_DOMAIN = "WLSDO-0012";
142138

operator/src/main/java/oracle/kubernetes/weblogic/domain/model/DomainValidationMessages.java

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -91,23 +91,7 @@ static String noSuchSecret(String secretName, String namespace, SecretType type)
9191
return getMessage(MessageKeys.SECRET_NOT_FOUND, secretName, namespace, type);
9292
}
9393

94-
static String missingRequiredSecret(String secret) {
95-
return getMessage(MessageKeys.SECRET_NOT_SPECIFIED, secret);
96-
}
97-
98-
static String missingRequiredOpssSecret(String secret) {
99-
return getMessage(MessageKeys.OPSS_SECRET_NOT_SPECIFIED, secret);
100-
}
101-
10294
static String illegalSecretNamespace(String namespace) {
10395
return getMessage(MessageKeys.ILLEGAL_SECRET_NAMESPACE, namespace);
10496
}
105-
106-
static String illegalSitConfigForMii(String configOverrides) {
107-
return getMessage(MessageKeys.ILLEGAL_SIT_CONFIG_MII, configOverrides);
108-
}
109-
110-
static String noSuchModelConfigMap(String configMapName, String namespace) {
111-
return getMessage(MessageKeys.MODEL_CONFIGMAP_NOT_FOUND, configMapName, namespace);
112-
}
11397
}

operator/src/main/java/oracle/kubernetes/weblogic/domain/model/IntrospectorJobEnvVars.java

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -25,39 +25,11 @@ public class IntrospectorJobEnvVars {
2525
*/
2626
public static final String CREDENTIALS_SECRET_NAME = "CREDENTIALS_SECRET_NAME";
2727

28-
/**
29-
* The credentials used by the introspection job - opss key passphrase.
30-
*/
31-
public static final String OPSS_KEY_SECRET_NAME = "OPSS_KEY_SECRET_NAME";
32-
33-
/**
34-
* The credentials used by the introspection job - opss wallet file.
35-
*/
36-
public static final String OPSS_WALLETFILE_SECRET_NAME = "OPSS_WALLETFILE_SECRET_NAME";
37-
38-
39-
/**
40-
* The credentials used by the introspection job - wdt encryption passphrase.
41-
*/
42-
public static final String WDT_ENCRYPTION_PASSPHRASE_NAME = "WDT_ENCRYPTION_PASSPHRASE_NAME";
43-
44-
/**
45-
* The credentials used by the introspection job - runtime encryption secret name.
46-
*/
47-
public static final String RUNTIME_ENCRYPTION_SECRET_NAME = "RUNTIME_ENCRYPTION_SECRET_NAME";
48-
49-
5028
/**
5129
* The domain source type.
5230
*/
5331
public static final String DOMAIN_SOURCE_TYPE = "DOMAIN_SOURCE_TYPE";
5432

55-
/**
56-
* The wdt domain type.
57-
*/
58-
public static final String WDT_DOMAIN_TYPE = "WDT_DOMAIN_TYPE";
59-
60-
6133
/**
6234
* Returns true if the specified environment variable name is reserved by the operator for communication with
6335
* the introspection job.

operator/src/main/java/oracle/kubernetes/weblogic/domain/model/Opss.java

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

operator/src/main/resources/Operator.properties

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -160,16 +160,8 @@ WLSKO-0154=Job {0} failed due to reason: DeadlineExceeded. \
160160
The job may be retried by the operator up to {3} \
161161
times with longer ActiveDeadlineSeconds value in each subsequent retry. \
162162
Use tuning parameter 'domainPresenceFailureRetryMaxCount' to configure max retries.
163-
WLSKO-0155=Unexpected exception, {0}, while parsing introspect job log [{1}].
164163
WLSKO-0156=Access denied for operator service account for operation {0} on resource {1} in namespace {2}.
165164
WLSKO-0157=Domain {0} is not valid: {1}
166-
WLSKO-0158=Expected CustomResourceDefinition domains.weblogic.oracle not found. But the operator's service \
167-
account does not have the permission to {0}. Create or update the CRD and re-install the operator.
168-
WLSKO-0159=Skipped the verification of the CustomResourceDefinition domains.weblogic.oracle because \
169-
the operator's service account does not have the permission to access the existing CustomResourceDefinition.
170-
WLSKO-0160=Verifying that operator service account can perform operation {1} on required resource {0}.
171-
WLSKO-0161=Skipped the creation of the namespace watcher because the operator's service account \
172-
does not have the permission to access the namespaces in the Kubernetes cluster.
173165
WLSKO-162=Unable to read internal certificate at path {0}
174166
WLSKO-163=No external certificate configured for REST endpoint. Endpoint will be disabled.
175167
WLSKO-0164=Replica request of {0} less than the minimum dynamic server count of {1} configured for cluster {2}
@@ -187,10 +179,6 @@ WLSDO-0003=No volume mount contains path for log home ''{0}''
187179
WLSDO-0004=The mount path ''{0}'', in entry ''{1}'' of domain resource ''additionalVolumeMounts'', is not valid
188180
WLSDO-0005=Environment {0} {1}, specified under ''{2}'', {3} reserved for use by the operator
189181
WLSDO-0006=Bad namespace for weblogicCredentialsSecret: ''{0}''. If specified, must be same as domain namespace.
190-
WLSDO-0007=Configuration overridesConfigMap ''{0}'' is not supported if ''domainHomeSourceType'' is configured as ''FromModel''.
191-
WLSDO-0008=ConfigMap ''{0}'' specified by ''spec.configuration.model.configMap'' not found in namespace ''{1}''.
192-
WLSDO-0009=The secret ''{0}'' must be specified if ''domainHomeSourceType'' is configured as ''FromModel''.
193-
WLSDO-0010=The secret ''{0}'' must be specified if ''domainHomeSourceType'' is configured as ''FromModel'' and spec.configuration.model.domainType is configured as ''JRF''.
194182
WLSDO-0011=Cluster ''{0}'' specified in the domain resource does not exist in the WebLogic domain home configuration.
195183
WLSDO-0012=Managed Server ''{0}'' specified in the domain resource does not exist in the WebLogic domain home configuration.
196184

operator/src/main/resources/scripts/introspectDomain.py

Lines changed: 0 additions & 114 deletions
Original file line numberDiff line numberDiff line change
@@ -802,120 +802,6 @@ def addUserConfigAndKey(self):
802802
finally:
803803
nmDisconnect()
804804

805-
class MII_DomainConfigGenerator(Generator):
806-
807-
def __init__(self, env):
808-
Generator.__init__(self, env, env.DOMAIN_ZIP)
809-
self.env = env
810-
self.domain_home = self.env.getDomainHome()
811-
def generate(self):
812-
self.open()
813-
try:
814-
self.addDomainConfig()
815-
self.close()
816-
self.addGeneratedFile()
817-
finally:
818-
self.close()
819-
820-
def addDomainConfig(self):
821-
em_ear_path = self.env.getEmPath()
822-
empath = ''
823-
if em_ear_path is not None and os.path.exists(em_ear_path):
824-
empath = em_ear_path
825-
# Note: only config type is needed fmwconfig, security is excluded because it's in the primordial and contain
826-
# all the many policies files
827-
packcmd = "tar -pczf /tmp/domain.tar.gz %s/config/config.xml %s/config/jdbc/ %s/config/jms %s/config/coherence " \
828-
"%s/config/diagnostics %s/config/startup %s/config/configCache %s/config/nodemanager " \
829-
"%s/config/security %s" % (
830-
self.domain_home, self.domain_home, self.domain_home, self.domain_home, self.domain_home,
831-
self.domain_home, self.domain_home, self.domain_home, self.domain_home, empath)
832-
os.system(packcmd)
833-
domain_data = self.env.readBinaryFile("/tmp/domain.tar.gz")
834-
b64 = ""
835-
for s in base64.encodestring(domain_data).splitlines():
836-
b64 = b64 + s
837-
self.writeln(b64)
838-
domainzip_hash = md5.new(domain_data).hexdigest()
839-
fh = open("/tmp/domainzip_hash", "w")
840-
fh.write(domainzip_hash)
841-
fh.close()
842-
trace('done zipping up domain ')
843-
844-
845-
class MII_OpssWalletFileGenerator(Generator):
846-
847-
def __init__(self, env):
848-
Generator.__init__(self, env, env.EWALLET)
849-
self.env = env
850-
self.domain_home = self.env.getDomainHome()
851-
def generate(self):
852-
self.open()
853-
try:
854-
self.addWallet()
855-
self.close()
856-
self.addGeneratedFile()
857-
finally:
858-
self.close()
859-
860-
def addWallet(self):
861-
wallet_data = self.env.readBinaryFile("/tmp/opsswallet/ewallet.p12")
862-
b64 = ""
863-
for s in base64.encodestring(wallet_data).splitlines():
864-
b64 = b64 + s
865-
self.writeln(b64)
866-
trace("done writing opss key")
867-
868-
869-
class MII_PrimordialDomainGenerator(Generator):
870-
871-
def __init__(self, env):
872-
Generator.__init__(self, env, env.PRIMORDIAL_DOMAIN_ZIP)
873-
self.env = env
874-
self.domain_home = self.env.getDomainHome()
875-
def generate(self):
876-
self.open()
877-
try:
878-
self.addPrimordialDomain()
879-
self.close()
880-
self.addGeneratedFile()
881-
finally:
882-
self.close()
883-
884-
def addPrimordialDomain(self):
885-
primordial_domain_data = self.env.readBinaryFile("/tmp/prim_domain.tar.gz")
886-
b64 = ""
887-
for s in base64.encodestring(primordial_domain_data).splitlines():
888-
b64 = b64 + s
889-
self.writeln(b64)
890-
trace("done writing primordial domain")
891-
892-
893-
class MII_IntrospectCMFileGenerator(Generator):
894-
895-
def __init__(self, env, inventory, fromfile):
896-
Generator.__init__(self, env, inventory)
897-
self.env = env
898-
self.fromfile = fromfile
899-
900-
def generate(self):
901-
self.open()
902-
try:
903-
rc = self.addFile()
904-
self.close()
905-
if rc is not None:
906-
self.addGeneratedFile()
907-
finally:
908-
self.close()
909-
910-
def addFile(self):
911-
if os.path.exists(self.fromfile):
912-
file_str = self.env.readFile(self.fromfile)
913-
self.writeln(file_str)
914-
return "hasfile"
915-
else:
916-
return None
917-
918-
919805
class SitConfigGenerator(Generator):
920806

921807
def __init__(self, env):

0 commit comments

Comments
 (0)