Skip to content

Commit

Permalink
[Orch] Set CRDs in cases of revoking config (#1505)
Browse files Browse the repository at this point in the history
  • Loading branch information
JLineaweaver authored Nov 5, 2024
1 parent 3718019 commit 2120b7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/remoteconfig/orchestrator_k8s_crd.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ func (r *RemoteConfigUpdater) crdUpdateInstanceStatus(dda v2alpha1.DatadogAgent,
}

// Orchestrator Explorer
newddaStatus.RemoteConfigConfiguration.Features.OrchestratorExplorer.CustomResources = []string{}
if cfg.CRDs != nil {
newddaStatus.RemoteConfigConfiguration.Features.OrchestratorExplorer.CustomResources = []string{}
// Overwrite custom resources by the new ones
if cfg.CRDs.Crds != nil {
newddaStatus.RemoteConfigConfiguration.Features.OrchestratorExplorer.CustomResources = *cfg.CRDs.Crds
Expand Down

0 comments on commit 2120b7b

Please sign in to comment.