Skip to content

Commit 020ebf6

Browse files
committed
Populate OM input-resources with discovered resources
Generated with Claude Code
1 parent 026d756 commit 020ebf6

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

pkg/cmd/mom/input_resources_command.go

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,33 @@ func runInputResources(ctx context.Context) (*libraryinputresources.InputResourc
1717
return &libraryinputresources.InputResources{
1818
ApplyConfigurationResources: libraryinputresources.ResourceList{
1919
ExactResources: []libraryinputresources.ExactResourceID{
20-
// TODO: Fill in discovered resources
20+
// Operator CR
21+
libraryinputresources.ExactLowLevelOperator("kubecontrollermanagers"),
22+
23+
// Config resources
24+
libraryinputresources.ExactConfigResource("infrastructures"),
25+
libraryinputresources.ExactConfigResource("networks"),
26+
libraryinputresources.ExactConfigResource("featuregates"),
27+
libraryinputresources.ExactConfigResource("nodes"),
28+
libraryinputresources.ExactConfigResource("proxies"),
29+
libraryinputresources.ExactConfigResource("apiservers"),
30+
libraryinputresources.ExactConfigResource("clusterversions"),
31+
32+
// Namespaces
33+
libraryinputresources.ExactNamespace("openshift-config"),
34+
libraryinputresources.ExactNamespace("openshift-config-managed"),
35+
libraryinputresources.ExactNamespace("openshift-kube-controller-manager"),
36+
libraryinputresources.ExactNamespace("openshift-kube-controller-manager-operator"),
37+
libraryinputresources.ExactNamespace("kube-system"),
38+
libraryinputresources.ExactNamespace("openshift-infra"),
39+
40+
// ConfigMaps that may be synced or referenced
41+
libraryinputresources.ExactConfigMap("openshift-config", "cloud-provider-config"),
42+
libraryinputresources.ExactConfigMap("openshift-config-managed", "kube-controller-cert-syncer-kubeconfig"),
43+
libraryinputresources.ExactConfigMap("kube-system", "cluster-config-v1"),
44+
45+
// Secrets that may be synced or referenced
46+
libraryinputresources.ExactSecret("openshift-config", "cloud-credentials"),
2147
},
2248
},
2349
}, nil

0 commit comments

Comments
 (0)