Skip to content

Commit

Permalink
task: add tests and move DB conditions into a single util (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosthe19916 authored Dec 4, 2024
1 parent 881b088 commit debf50b
Show file tree
Hide file tree
Showing 20 changed files with 712 additions and 249 deletions.
25 changes: 17 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
preset: [ "okd" ]
preset: [ "openshift", "microshift" ]
fail-fast: false
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -74,22 +74,31 @@ jobs:
df -h
- name: Download crc
run: |
wget https://developers.redhat.com/content-gateway/file/pub/openshift-v4/clients/crc/2.40.0/crc-linux-amd64.tar.xz
wget https://developers.redhat.com/content-gateway/file/pub/openshift-v4/clients/crc/2.44.0/crc-linux-amd64.tar.xz
mkdir -p bin/ && tar -xJf crc-linux-amd64.tar.xz --strip-components=1 -C bin/
sudo mv ./bin/crc /usr/local/bin/crc && rm -r bin/
- name: Set the crc config
run: |
crc config set consent-telemetry no
crc config set network-mode user
echo eyJhdXRocyI6eyJjbG91ZC5vcGVuc2hpZnQuY29tIjp7ImF1dGgiOiJiM0JsYm5Ob2FXWjBMWEpsYkdWaGMyVXRaR1YySzI5amJWOWhZMk5sYzNOZk16RTFaRE16TWpJM09HVXpOR000WTJKbFkyVmxOMlU0TVRoa1pEazNNRGc2VERKSldUVlVUVlZQUTA5VlRraFdTRTFRUjBaRFdEaFBTRUpVTVVaU1RrZEtOMU5EUVZFMlFrOUlPRWRHVERjMVVFeE9UVTB5VFRsUldFZzFSbGMyT1E9PSIsImVtYWlsIjoidHJ1c3QuZ2l0LmJvdEBnbWFpbC5jb20ifSwicXVheS5pbyI6eyJhdXRoIjoiYjNCbGJuTm9hV1owTFhKbGJHVmhjMlV0WkdWMksyOWpiVjloWTJObGMzTmZNekUxWkRNek1qSTNPR1V6TkdNNFkySmxZMlZsTjJVNE1UaGtaRGszTURnN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joidHJ1c3QuZ2l0LmJvdEBnbWFpbC5jb20ifX19 | base64 --decode > pull-secret.txt
crc config set preset ${{ matrix.preset }}
- name: Setup the crc
run: sudo -su $USER crc setup
- name: Start the crc
crc config set pull-secret-file pull-secret.txt
crc config set network-mode user
crc config set consent-telemetry no
- name: Setup and Start the crc
run: |
sudo -su $USER crc setup
sudo -su $USER crc start
sleep 60
- name: Copy OpenShift client
run: sudo cp /home/$USER/.crc/bin/oc/oc /usr/bin/
- name: Copy the kubeconfig file to required location
run: |
mkdir -p /home/$USER/.kube
cp /home/$USER/.crc/machines/crc/kubeconfig /home/$USER/.kube/config
oc get pods -A
- name: Test
run: |
export HOST_KUBERNETES_CONFIG_FILE=${HOME}/.kube/config
export HOST_KUBERNETES_CONFIG_FILE=/home/$USER/.kube/config
echo "Using ${HOST_KUBERNETES_CONFIG_FILE} as host k8s"
mvn verify
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/org/trustify/operator/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ public class Constants {
public static final String DB_NAME = "trustify";
public static final Integer DB_PORT= 5432;

public static final String DEFAULT_PVC_SIZE = "10G";

public static final String CERTIFICATES_FOLDER = "/mnt/certificates";
public static final String WORKSPACES_FOLDER = "/mnt/workspace";
}
11 changes: 11 additions & 0 deletions src/main/java/org/trustify/operator/TrustifyConfig.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package org.trustify.operator;

import io.smallrye.config.ConfigMapping;
import io.smallrye.config.WithName;

@ConfigMapping(prefix = "trustify")
public interface TrustifyConfig {

@WithName("default-pvc-size")
String defaultPvcSize();
}
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
package org.trustify.operator.cdrs.v2alpha1.db;

import org.trustify.operator.cdrs.v2alpha1.Trustify;
import org.trustify.operator.cdrs.v2alpha1.TrustifySpec;

import java.util.Optional;
import org.trustify.operator.cdrs.v2alpha1.server.utils.ServerUtils;

public abstract class DBActivationCondition {

protected boolean isMet(Trustify cr) {
return !Optional.ofNullable(cr.getSpec().databaseSpec())
.map(TrustifySpec.DatabaseSpec::externalDatabase)
.orElse(false);
return ServerUtils.isServerDBRequired(cr);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import org.trustify.operator.Constants;
import org.trustify.operator.cdrs.v2alpha1.Trustify;
import org.trustify.operator.cdrs.v2alpha1.TrustifySpec;
import org.trustify.operator.cdrs.v2alpha1.db.utils.DBUtils;
import org.trustify.operator.utils.CRDUtils;

import java.util.Arrays;
Expand Down Expand Up @@ -56,17 +57,8 @@ public Result<Deployment> match(Deployment actual, Trustify cr, Context<Trustify
}

@Override
public boolean isMet(DependentResource<Deployment, Trustify> dependentResource, Trustify primary, Context<Trustify> context) {
return context.getSecondaryResource(Deployment.class, new DBDeploymentDiscriminator())
.map(deployment -> {
final var status = deployment.getStatus();
if (status != null) {
final var readyReplicas = status.getReadyReplicas();
return readyReplicas != null && readyReplicas >= 1;
}
return false;
})
.orElse(false);
public boolean isMet(DependentResource<Deployment, Trustify> dependentResource, Trustify cr, Context<Trustify> context) {
return DBUtils.isDeploymentReady(dependentResource, cr, context);
}

@SuppressWarnings("unchecked")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
import io.javaoperatorsdk.operator.processing.dependent.kubernetes.CRUDKubernetesDependentResource;
import io.javaoperatorsdk.operator.processing.dependent.kubernetes.KubernetesDependent;
import jakarta.enterprise.context.ApplicationScoped;
import jakarta.inject.Inject;
import org.trustify.operator.Constants;
import org.trustify.operator.TrustifyConfig;
import org.trustify.operator.cdrs.v2alpha1.Trustify;
import org.trustify.operator.cdrs.v2alpha1.TrustifySpec;
import org.trustify.operator.utils.CRDUtils;
Expand All @@ -21,6 +23,9 @@ public class DBPersistentVolumeClaim extends CRUDKubernetesDependentResource<Per

public static final String LABEL_SELECTOR = "app.kubernetes.io/managed-by=trustify-operator,component=db";

@Inject
TrustifyConfig trustifyConfig;

public DBPersistentVolumeClaim() {
super(PersistentVolumeClaim.class);
}
Expand All @@ -36,7 +41,7 @@ private PersistentVolumeClaim newPersistentVolumeClaim(Trustify cr, Context<Trus
.getMandatory(Constants.CONTEXT_LABELS_KEY, Map.class);

String pvcStorageSize = CRDUtils.getValueFromSubSpec(cr.getSpec().databaseSpec(), TrustifySpec.DatabaseSpec::pvcSize)
.orElse(Constants.DEFAULT_PVC_SIZE);
.orElse(trustifyConfig.defaultPvcSize());

return new PersistentVolumeClaimBuilder()
.withNewMetadata()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import io.javaoperatorsdk.operator.processing.dependent.Creator;
import io.javaoperatorsdk.operator.processing.dependent.Matcher;
import io.javaoperatorsdk.operator.processing.dependent.kubernetes.CRUDKubernetesDependentResource;
import io.javaoperatorsdk.operator.processing.dependent.kubernetes.KubernetesDependent;
import jakarta.enterprise.context.ApplicationScoped;
import org.trustify.operator.Constants;
import org.trustify.operator.cdrs.v2alpha1.Trustify;
Expand All @@ -14,9 +15,12 @@
import java.util.Map;
import java.util.Random;

@KubernetesDependent(labelSelector = DBSecret.LABEL_SELECTOR, resourceDiscriminator = DBSecretDiscriminator.class)
@ApplicationScoped
public class DBSecret extends CRUDKubernetesDependentResource<Secret, Trustify> implements Creator<Secret, Trustify> {

public static final String LABEL_SELECTOR = "app.kubernetes.io/managed-by=trustify-operator,component=db";

public DBSecret() {
super(Secret.class);
}
Expand All @@ -42,6 +46,7 @@ private Secret newSecret(Trustify cr, Context<Trustify> context) {
.withName(getSecretName(cr))
.withNamespace(cr.getMetadata().getNamespace())
.withLabels(labels)
.addToLabels("component", "db")
.withOwnerReferences(CRDUtils.getOwnerReference(cr))
.endMetadata()
.addToStringData(Constants.DB_SECRET_USERNAME, generateRandomString(10))
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package org.trustify.operator.cdrs.v2alpha1.db;

import io.fabric8.kubernetes.api.model.Secret;
import io.javaoperatorsdk.operator.api.reconciler.Context;
import io.javaoperatorsdk.operator.api.reconciler.ResourceDiscriminator;
import io.javaoperatorsdk.operator.processing.event.ResourceID;
import io.javaoperatorsdk.operator.processing.event.source.informer.InformerEventSource;
import org.trustify.operator.cdrs.v2alpha1.Trustify;
import org.trustify.operator.controllers.TrustifyReconciler;

import java.util.Optional;

public class DBSecretDiscriminator implements ResourceDiscriminator<Secret, Trustify> {
@Override
public Optional<Secret> distinguish(Class<Secret> resource, Trustify cr, Context<Trustify> context) {
String secret = DBSecret.getSecretName(cr);
ResourceID resourceID = new ResourceID(secret, cr.getMetadata().getNamespace());
var informerEventSource = (InformerEventSource<Secret, Trustify>) context.eventSourceRetriever().getResourceEventSourceFor(Secret.class, TrustifyReconciler.SECRET_EVENT_SOURCE);
return informerEventSource.get(resourceID);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package org.trustify.operator.cdrs.v2alpha1.db.utils;

import io.fabric8.kubernetes.api.model.apps.Deployment;
import io.javaoperatorsdk.operator.api.reconciler.Context;
import io.javaoperatorsdk.operator.api.reconciler.dependent.DependentResource;
import org.trustify.operator.cdrs.v2alpha1.Trustify;
import org.trustify.operator.cdrs.v2alpha1.db.DBDeploymentDiscriminator;

public class DBUtils {

public static boolean isDeploymentReady(DependentResource<Deployment, Trustify> dependentResource, Trustify primary, Context<Trustify> context) {
return context.getSecondaryResource(Deployment.class, new DBDeploymentDiscriminator())
.map(deployment -> {
final var status = deployment.getStatus();
if (status != null) {
final var readyReplicas = status.getReadyReplicas();
return readyReplicas != null && readyReplicas >= 1;
}
return false;
})
.orElse(false);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
import io.javaoperatorsdk.operator.processing.dependent.kubernetes.CRUDKubernetesDependentResource;
import io.javaoperatorsdk.operator.processing.dependent.kubernetes.KubernetesDependent;
import jakarta.enterprise.context.ApplicationScoped;
import jakarta.inject.Inject;
import org.trustify.operator.Constants;
import org.trustify.operator.TrustifyConfig;
import org.trustify.operator.cdrs.v2alpha1.Trustify;
import org.trustify.operator.cdrs.v2alpha1.TrustifySpec;
import org.trustify.operator.utils.CRDUtils;
Expand All @@ -21,6 +23,9 @@ public class ServerStoragePersistentVolumeClaim extends CRUDKubernetesDependentR

public static final String LABEL_SELECTOR = "app.kubernetes.io/managed-by=trustify-operator,component=server";

@Inject
TrustifyConfig trustifyConfig;

public ServerStoragePersistentVolumeClaim() {
super(PersistentVolumeClaim.class);
}
Expand All @@ -38,7 +43,7 @@ private PersistentVolumeClaim newPersistentVolumeClaim(Trustify cr, Context<Trus
String pvcStorageSize = Optional.ofNullable(cr.getSpec().storageSpec())
.flatMap(storageSpec -> Optional.ofNullable(storageSpec.filesystemStorageSpec()))
.map(TrustifySpec.FilesystemStorageSpec::pvcSize)
.orElse(Constants.DEFAULT_PVC_SIZE);
.orElse(trustifyConfig.defaultPvcSize());

return new PersistentVolumeClaimBuilder()
.withNewMetadata()
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package org.trustify.operator.cdrs.v2alpha1.server.utils;

import org.trustify.operator.cdrs.v2alpha1.Trustify;
import org.trustify.operator.cdrs.v2alpha1.TrustifySpec;

import java.util.Optional;

public class ServerUtils {

public static boolean isServerDBRequired(Trustify cr) {
return !Optional.ofNullable(cr.getSpec().databaseSpec())
.map(TrustifySpec.DatabaseSpec::externalDatabase)
.orElse(false);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,10 @@ private List<EnvVar> getEnvVars(Trustify cr) {
new EnvVarBuilder()
.withName("UI_INGRESS_PROXY_BODY_SIZE")
.withValue("50m")
.build(),
new EnvVarBuilder()
.withName("NODE_EXTRA_CA_CERTS")
.withValue("/opt/app-root/src/ca.crt")
.build()
);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package org.trustify.operator.controllers;

import io.fabric8.kubernetes.api.model.ConfigMap;
import io.fabric8.kubernetes.api.model.PersistentVolumeClaim;
import io.fabric8.kubernetes.api.model.Secret;
import io.fabric8.kubernetes.api.model.Service;
import io.fabric8.kubernetes.api.model.apps.Deployment;
import io.javaoperatorsdk.operator.api.config.informer.InformerConfiguration;
Expand Down Expand Up @@ -88,7 +90,9 @@ public class TrustifyReconciler implements Reconciler<Trustify>, ContextInitiali

private static final Logger logger = Logger.getLogger(TrustifyReconciler.class);

public static final String CONFIG_MAP_EVENT_SOURCE = "configMapSource";
public static final String PVC_EVENT_SOURCE = "pcvSource";
public static final String SECRET_EVENT_SOURCE = "secretSource";
public static final String DEPLOYMENT_EVENT_SOURCE = "deploymentSource";
public static final String SERVICE_EVENT_SOURCE = "serviceSource";

Expand All @@ -110,7 +114,7 @@ public UpdateControl<Trustify> reconcile(Trustify cr, Context context) {
.map(wrs -> {
if (wrs.allDependentResourcesReady()) {
if (cr.getStatus().isAvailable()) {
logger.infof("Trustify {} is ready to be used", cr.getMetadata().getName());
logger.infof("Trustify %s is ready to be used", cr.getMetadata().getName());
}

TrustifyStatusCondition status = new TrustifyStatusCondition();
Expand All @@ -136,16 +140,22 @@ public UpdateControl<Trustify> reconcile(Trustify cr, Context context) {

@Override
public Map<String, EventSource> prepareEventSources(EventSourceContext<Trustify> context) {
var configMapInformerConfiguration = InformerConfiguration.from(ConfigMap.class, context).build();
var pcvInformerConfiguration = InformerConfiguration.from(PersistentVolumeClaim.class, context).build();
var secretInformerConfiguration = InformerConfiguration.from(Secret.class, context).build();
var deploymentInformerConfiguration = InformerConfiguration.from(Deployment.class, context).build();
var serviceInformerConfiguration = InformerConfiguration.from(Service.class, context).build();

var configMapInformerConfigurationInformerEventSource = new InformerEventSource<>(configMapInformerConfiguration, context);
var pcvInformerEventSource = new InformerEventSource<>(pcvInformerConfiguration, context);
var secretInformerEventSource = new InformerEventSource<>(secretInformerConfiguration, context);
var deploymentInformerEventSource = new InformerEventSource<>(deploymentInformerConfiguration, context);
var serviceInformerEventSource = new InformerEventSource<>(serviceInformerConfiguration, context);

return Map.of(
CONFIG_MAP_EVENT_SOURCE, configMapInformerConfigurationInformerEventSource,
PVC_EVENT_SOURCE, pcvInformerEventSource,
SECRET_EVENT_SOURCE, secretInformerEventSource,
DEPLOYMENT_EVENT_SOURCE, deploymentInformerEventSource,
SERVICE_EVENT_SOURCE, serviceInformerEventSource
);
Expand Down
5 changes: 5 additions & 0 deletions src/main/resources/application.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
trustify:
default-pvc-size: 10G
"%test":
trustify:
default-pvc-size: 1G
# Operator config
related:
image:
Expand Down
Loading

0 comments on commit debf50b

Please sign in to comment.