Disable Catalog Packages
TOC
Feature OverviewDisable Packages in a ConfigMap RepositoryDisable Packages in the Built-in CatalogVerificationNotesLearn MoreFeature Overview
Use disabled package rules when a catalog contains resources that should not be visible to users or resolver clients. Rules can disable a whole package or only specific versions.
There are two configuration entry points:
Disable Packages in a ConfigMap Repository
Add disabledPackages to the repository ConfigMap.
In this example:
unsafe-taskis completely hidden.- Only versions
0.1and0.2oflegacy-taskare hidden. - Other repositories and other package names are not affected.
ConfigMap-backed rules are source-local. If another repository also contains
legacy-task, it remains visible unless that repository has its own disable
rule.
Disable Packages in the Built-in Catalog
For the built-in catalog or static filesystem sources, the Helm chart value is
config.disabledPackages.
When artifacthub-shim is installed through the ACP cluster plugin, configure the
same rules in spec.config.extraConfigValues. The plugin injects
extraConfigValues into the chart config: block, so the value must not include
the top-level config: key.
Minimal ModuleInfo example:
Do not put disabledPackages directly under spec.config in ModuleInfo; that
field is not rendered into the chart values. After the plugin upgrade rolls out,
the generated artifacthub-shim-config ConfigMap should contain the rule under
ARTIFACTHUB_SHIM_DISABLED_PACKAGES.
Verification
For ConfigMap-backed repositories, check that the updated ConfigMap was accepted and that the source is ready:
Expected Events are RepositoryConfigAccepted and RepositorySourceReady.
Then verify from the DevOps Hub UI or from the workload that uses
resolver: hub that the disabled package or version is no longer selectable or
resolvable.
For built-in or static filesystem catalog rules, check the chart-managed pod
rollout and the artifacthub-shim logs:
The logs include source status lines that show which repositories are Ready, Invalid, or Degraded after the rule is applied.
Notes
- Disabled packages are removed from list, search, detail, and resolver API responses.
- ConfigMap delete, label removal, or disabled package changes remove the affected repository content from the next snapshot.
- Transient Git failures may keep serving the last successful source shard, but explicit disable rules do not keep serving disabled content.