Class SecuredVariableService
java.lang.Object
org.qubership.integration.platform.variables.management.service.SecretService
org.qubership.integration.platform.variables.management.service.SecuredVariableService
-
Field Summary
FieldsFields inherited from class org.qubership.integration.platform.variables.management.service.SecretService
actionLogger, jsonMapper, operator, SECRET_NOT_FOUND_ERROR_MESSAGE_FORMAT, yamlMapper -
Constructor Summary
ConstructorsConstructorDescriptionSecuredVariableService(com.fasterxml.jackson.dataformat.yaml.YAMLMapper yamlMapper, com.fasterxml.jackson.databind.ObjectMapper objectMapper, KubeOperator operator, ActionsLogService actionLogger, String kubeSecretsLabel, String kubeSecretV2Name, DevModeUtil devModeUtil, CommonVariablesService commonVariablesService, com.fasterxml.jackson.databind.ObjectMapper objectMapperWithSorting) -
Method Summary
Modifier and TypeMethodDescriptionaddVariables(String secretName, Map<String, String> newVariables) addVariables(String secretName, Map<String, String> newVariables, boolean importMode) addVariablesToDefaultSecret(Map<String, String> newVariables) voiddeleteVariables(String secretName, Set<String> variablesNames) voiddeleteVariables(String secretName, Set<String> variablesNames, boolean logOperation) deleteVariablesForMultipleSecrets(Map<String, Set<String>> variablesPerSecret) voiddeleteVariablesFromDefaultSecret(Set<String> variablesNames) protected Map<String, SecretEntity> getVariablesForDefaultSecret(boolean failIfSecretNotExist) getVariablesForSecret(String secretName, boolean failIfSecretNotExist) importVariablesRequest(org.springframework.web.multipart.MultipartFile file) updateVariableInDefaultSecret(String name, String value) updateVariables(String secretName, Map<String, String> variablesToUpdate) Methods inherited from class org.qubership.integration.platform.variables.management.service.SecretService
createSecuredVariablesSecret, createSecuredVariablesSecret, getSecretTemplate, isDefaultSecret
-
Field Details
-
EMPTY_SECURED_VARIABLE_NAME_ERROR_MESSAGE
- See Also:
-
-
Constructor Details
-
SecuredVariableService
@Autowired public SecuredVariableService(@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, DevModeUtil devModeUtil, @Lazy CommonVariablesService commonVariablesService, @Qualifier("objectMapperWithSorting") com.fasterxml.jackson.databind.ObjectMapper objectMapperWithSorting)
-
-
Method Details
-
getAllSecretsVariablesNames
-
getVariablesForDefaultSecret
-
getVariablesForSecret
-
addVariablesToDefaultSecret
-
addVariables
-
addVariables
-
deleteVariablesFromDefaultSecret
-
deleteVariables
-
deleteVariables
-
deleteVariablesForMultipleSecrets
-
updateVariableInDefaultSecret
-
updateVariables
-
importVariablesRequest
-
getSecuredVariablesSecrets
-