Class SecretService
java.lang.Object
org.qubership.integration.platform.variables.management.service.SecretService
- Direct Known Subclasses:
SecuredVariableService
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ActionsLogServiceprotected final com.fasterxml.jackson.databind.ObjectMapperprotected final KubeOperatorstatic final Stringprotected final com.fasterxml.jackson.dataformat.yaml.YAMLMapper -
Constructor Summary
ConstructorsConstructorDescriptionSecretService(com.fasterxml.jackson.dataformat.yaml.YAMLMapper yamlMapper, com.fasterxml.jackson.databind.ObjectMapper objectMapper, KubeOperator operator, ActionsLogService actionLogger, String kubeSecretsLabel, String kubeSecretV2Name) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidcreateSecuredVariablesSecret(String name, Map<String, String> securedVariables) getSecretTemplate(String secretName) booleanisDefaultSecret(String secretName)
-
Field Details
-
SECRET_NOT_FOUND_ERROR_MESSAGE_FORMAT
- See Also:
-
yamlMapper
protected final com.fasterxml.jackson.dataformat.yaml.YAMLMapper yamlMapper -
jsonMapper
protected final com.fasterxml.jackson.databind.ObjectMapper jsonMapper -
operator
-
actionLogger
-
-
Constructor Details
-
SecretService
@Autowired public SecretService(@Qualifier("yamlMapper") com.fasterxml.jackson.dataformat.yaml.YAMLMapper yamlMapper, @Qualifier("primaryObjectMapper") com.fasterxml.jackson.databind.ObjectMapper objectMapper, KubeOperator operator, ActionsLogService actionLogger, @Value("${kubernetes.variables-secret.label}") String kubeSecretsLabel, @Value("${kubernetes.variables-secret.name}") String kubeSecretV2Name)
-
-
Method Details
-
createSecuredVariablesSecret
-
createSecuredVariablesSecret
-
getSecretTemplate
-
isDefaultSecret
-