Class K8sSecretService
java.lang.Object
org.qubership.integration.platform.variables.management.service.secrets.K8sSecretService
- All Implemented Interfaces:
SecretService
-
Constructor Summary
ConstructorsConstructorDescriptionK8sSecretService(KubeOperator kubeOperator, ActionsLogService actionLogger, com.fasterxml.jackson.dataformat.yaml.YAMLMapper yamlMapper, String label, String kubeSecretV2Name) -
Method Summary
Modifier and TypeMethodDescriptionaddEntries(String secretName, Map<String, String> data, boolean init) booleancreateSecret(String secretName) getSecretData(String secretName, boolean failIfNotExist) getSecretTemplate(String secretName) removeEntries(String secretName, Set<String> keys) okhttp3.CallremoveEntriesAsync(String secretName, Set<String> keys, SecretUpdateCallback callback) updateEntries(String secretName, Map<String, String> data) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.qubership.integration.platform.variables.management.service.secrets.SecretService
isDefaultSecret
-
Constructor Details
-
K8sSecretService
@Autowired public K8sSecretService(KubeOperator kubeOperator, ActionsLogService actionLogger, @Qualifier("yamlMapper") com.fasterxml.jackson.dataformat.yaml.YAMLMapper yamlMapper, @Value("${kubernetes.variables-secret.label}") String label, @Value("${kubernetes.variables-secret.name}") String kubeSecretV2Name)
-
-
Method Details
-
getAllSecretsData
- Specified by:
getAllSecretsDatain interfaceSecretService
-
getSecretData
- Specified by:
getSecretDatain interfaceSecretService
-
createSecret
- Specified by:
createSecretin interfaceSecretService
-
addEntries
- Specified by:
addEntriesin interfaceSecretService
-
updateEntries
- Specified by:
updateEntriesin interfaceSecretService
-
removeEntries
- Specified by:
removeEntriesin interfaceSecretService
-
removeEntriesAsync
public okhttp3.Call removeEntriesAsync(String secretName, Set<String> keys, SecretUpdateCallback callback) - Specified by:
removeEntriesAsyncin interfaceSecretService
-
getSecretTemplate
- Specified by:
getSecretTemplatein interfaceSecretService
-
getDefaultSecretName
- Specified by:
getDefaultSecretNamein interfaceSecretService
-