Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docs/gathered-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ Response see https://docs.openshift.com/container-platform/4.3/rest_api/index.ht

fetches the image pruner configuration

* Previous location in the older archives: config/imagepruner.json
* Location in archive: config/clusteroperator/imageregistry.operator.openshift.io/imagepruner/cluster.json
* Id in config: image_pruners

Expand All @@ -71,6 +72,7 @@ fetches the cluster Image Registry configuration
**Conditional data**: If the Image Registry configuration uses any PersistentVolumeClaim for the storage, the corresponding
PersistentVolume definition is gathered

* Previous location in the older archives: config/imageregistry.json
* Location in archive: config/clusteroperator/imageregistry.operator.openshift.io/config/cluster.json
* Id in config: image_registries
* Since versions:
Expand Down Expand Up @@ -159,6 +161,8 @@ collects all the ClusterOperators definitions and their resources.
The Kubernetes api https://github.com/openshift/client-go/blob/master/config/clientset/versioned/typed/config/v1/clusteroperator.go#L62
Response see https://docs.openshift.com/container-platform/4.3/rest_api/index.html#clusteroperatorlist-v1config-openshift-io

* Previous location of operators related resources in the older archives: config/clusteroperator/{kind}-{name}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure if this was ever released, but it's probably true that we got some archives (with this structure) from CI/testing clusters.

* Location of operators related resources: config/clusteroperator/{group}/{kind}/{name}
* Location of operators in archive: config/clusteroperator/
* See: docs/insights-archive-sample/config/clusteroperator
* Id in config: operators
Expand Down Expand Up @@ -208,6 +212,7 @@ For example config/configmaps/NAMESPACENAME/CONFIGMAPNAME/CONFIGMAPKEY1
The Kubernetes api https://github.com/kubernetes/client-go/blob/master/kubernetes/typed/core/v1/configmap.go#L80
Response see https://docs.openshift.com/container-platform/4.3/rest_api/index.html#configmaplist-v1core

* Previous location in the older archives: config/configmaps/{configmap-name}/
* Location in archive: config/configmaps/{namespace-name}/{configmap-name}/
* See: docs/insights-archive-sample/config/configmaps
* Id in config: config_maps
Expand Down
1 change: 1 addition & 0 deletions pkg/gatherers/clusterconfig/config_maps.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import (
// The Kubernetes api https://github.com/kubernetes/client-go/blob/master/kubernetes/typed/core/v1/configmap.go#L80
// Response see https://docs.openshift.com/container-platform/4.3/rest_api/index.html#configmaplist-v1core
//
// * Previous location in the older archives: config/configmaps/{configmap-name}/
// * Location in archive: config/configmaps/{namespace-name}/{configmap-name}/
// * See: docs/insights-archive-sample/config/configmaps
// * Id in config: config_maps
Expand Down
1 change: 1 addition & 0 deletions pkg/gatherers/clusterconfig/image_pruners.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import (

// GatherClusterImagePruner fetches the image pruner configuration
//
// * Previous location in the older archives: config/imagepruner.json
// * Location in archive: config/clusteroperator/imageregistry.operator.openshift.io/imagepruner/cluster.json
// * Id in config: image_pruners
func (g *Gatherer) GatherClusterImagePruner(ctx context.Context) ([]record.Record, []error) {
Expand Down
1 change: 1 addition & 0 deletions pkg/gatherers/clusterconfig/image_registries.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import (
// **Conditional data**: If the Image Registry configuration uses any PersistentVolumeClaim for the storage, the corresponding
// PersistentVolume definition is gathered
//
// * Previous location in the older archives: config/imageregistry.json
// * Location in archive: config/clusteroperator/imageregistry.operator.openshift.io/config/cluster.json
// * Id in config: image_registries
// * Since versions:
Expand Down
2 changes: 2 additions & 0 deletions pkg/gatherers/clusterconfig/operators.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ type clusterOperatorResource struct {
// The Kubernetes api https://github.com/openshift/client-go/blob/master/config/clientset/versioned/typed/config/v1/clusteroperator.go#L62
// Response see https://docs.openshift.com/container-platform/4.3/rest_api/index.html#clusteroperatorlist-v1config-openshift-io
//
// * Previous location of operators related resources in the older archives: config/clusteroperator/{kind}-{name}
// * Location of operators related resources: config/clusteroperator/{group}/{kind}/{name}
// * Location of operators in archive: config/clusteroperator/
// * See: docs/insights-archive-sample/config/clusteroperator
// * Id in config: operators
Expand Down