Class KubeOperator
java.lang.Object
org.qubership.integration.platform.variables.management.kubernetes.KubeOperator
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionKubeOperator(io.kubernetes.client.openapi.ApiClient client, String namespace) -
Method Summary
Modifier and TypeMethodDescriptionaddSecretData(String secretName, Map<String, String> data, boolean init) voidcreateSecret(String name, org.apache.commons.lang3.tuple.Pair<String, String> label, Map<String, String> data) getAllSecretsWithLabel(org.apache.commons.lang3.tuple.Pair<String, String> label) getSecretByName(String name) getSecretByName(String name, boolean failIfNotExist) io.kubernetes.client.openapi.models.V1SecretgetSecretObjectByName(String name) voidpatchSecret(String secretName, JsonPatch patch) removeSecretData(String secretName, Set<String> keys) okhttp3.CallremoveSecretDataAsync(String secretName, Set<String> keys, SecretUpdateCallback callback) booleansecretExists(String name) voidsetSecretByName(String name, org.apache.commons.lang3.tuple.Pair<String, String> label, Map<String, String> data, boolean failIfExists) updateSecretData(String secretName, Map<String, String> data)
-
Field Details
-
SECRET_LABELS_PATH
- See Also:
-
SECRET_DATA_PATH
- See Also:
-
-
Constructor Details
-
KubeOperator
public KubeOperator() -
KubeOperator
-
-
Method Details
-
getAllSecretsWithLabel
public ConcurrentMap<String,ConcurrentMap<String, getAllSecretsWithLabelString>> (org.apache.commons.lang3.tuple.Pair<String, String> label) -
getSecretObjectByName
-
getSecretByName
-
getSecretByName
public ConcurrentMap<String,String> getSecretByName(String name, boolean failIfNotExist) throws KubeApiException - Throws:
KubeApiException
-
secretExists
- Throws:
KubeApiException
-
createSecret
-
patchSecret
-
addSecretData
-
removeSecretData
-
removeSecretDataAsync
public okhttp3.Call removeSecretDataAsync(String secretName, Set<String> keys, SecretUpdateCallback callback) -
setSecretByName
public void setSecretByName(String name, org.apache.commons.lang3.tuple.Pair<String, String> label, Map<String, throws KubeApiExceptionString> data, boolean failIfExists) - Throws:
KubeApiException
-
updateSecretData
-