Skip to content

Commit

Permalink
fix: add deprecation for the health check enricher (#576)
Browse files Browse the repository at this point in the history
  • Loading branch information
lholmquist committed Jul 22, 2021
1 parent 0dc01a1 commit b20701e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/resource-enrichers/health-check-enricher.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
// Enricher for adding a Health Check, based on the kube-probe module, to the Deployment Config

const _ = require('lodash');
const logger = require('../common-log')();

const DEFAULT_PROBE = {
readinessProbe: {
Expand Down Expand Up @@ -52,6 +53,11 @@ async function addHealthCheckInfo (config, resourceList) {
// If not, then just return the resource
return resource;
}

// DEPRECATE THIS ENRICHER
// The kube-probe module is being deprecated, so this should also be deprecated then removed
logger.warning('The Health Check enricher is Deprecated and will be removed in the next major version');

// If so, then add the stuff
const updatedDefault = _.merge(
{},
Expand Down

0 comments on commit b20701e

Please sign in to comment.