dev.galasa.kubernetes.internal.resources.SecretImpl Maven / Gradle / Ivy
/*
* Licensed Materials - Property of IBM
*
* (c) Copyright IBM Corp. 2020.
*/
package dev.galasa.kubernetes.internal.resources;
import dev.galasa.kubernetes.ISecret;
import dev.galasa.kubernetes.KubernetesManagerException;
import dev.galasa.kubernetes.internal.KubernetesNamespaceImpl;
import io.kubernetes.client.openapi.models.V1Secret;
import io.kubernetes.client.util.Yaml;
/**
* Secret implementation
*
* @author Michael Baylis
*
*/
public class SecretImpl implements ISecret {
private final V1Secret secret;
public SecretImpl(KubernetesNamespaceImpl namespace, V1Secret secret) {
this.secret = secret;
}
@Override
public String getName() {
return secret.getMetadata().getName();
}
@Override
public TYPE getType() {
return TYPE.Secret;
}
@Override
public String getYaml() {
return Yaml.dump(this.secret);
}
@Override
public void refresh() throws KubernetesManagerException {
throw new UnsupportedOperationException("Not developed yet"); //TODO
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy