Repository navigation
DevHub plugin catalog #3422
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
gazarenkov
merged 37 commits into
redhat-developer:main
from
gazarenkov:devhub-plugin-catalog
Sep 8, 2026
Merged
DevHub plugin catalog #3422
Changes from all commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
0680888
fetcher
gazarenkov 1329517
fetcher
gazarenkov d8dcc1f
deps
gazarenkov 7f4feaa
Merge remote-tracking branch 'upstream/main' into devhub-plugin-catalog
gazarenkov 47b948a
devhub catalog support
gazarenkov 38fd936
docs
gazarenkov e381b55
missed files
gazarenkov 5587899
DISABLE_CATALOG_CONTROLLER
gazarenkov d420ddc
bundle
gazarenkov 56cbbd3
Merge remote-tracking branch 'upstream/main' into devhub-plugin-catalog
gazarenkov f973d40
bundle
gazarenkov b49b055
Remove .go.1 backup files from repo
gazarenkov 772d28b
fix
gazarenkov 92d6a7a
Merge remote-tracking branch 'upstream/main' into devhub-plugin-catalog
gazarenkov cb0c2c8
bundles
gazarenkov d5241d6
fixes
gazarenkov 78535df
fixes
gazarenkov 8ec906f
fixes
gazarenkov 6361ce8
fixes
gazarenkov 9543319
fixes
gazarenkov 0559863
Merge remote-tracking branch 'upstream/main' into devhub-plugin-catalog
gazarenkov 33938c3
fixes
gazarenkov 40f43d9
add files
gazarenkov 084f7a9
Merge remote-tracking branch 'upstream/main' into devhub-plugin-catalog
gazarenkov e600ab0
fix
gazarenkov 57912df
Merge remote-tracking branch 'upstream/main' into devhub-plugin-catalog
gazarenkov d6b839b
fix
gazarenkov e04ae7a
Merge remote-tracking branch 'upstream/main' into devhub-plugin-catalog
gazarenkov 0ca33d9
fix
gazarenkov 145363f
fix
gazarenkov 8395328
fix
gazarenkov 7ca8d6e
fix
gazarenkov 9c6cf17
bundle
gazarenkov e32ed46
Merge remote-tracking branch 'upstream/main' into devhub-plugin-catalog
gazarenkov c99fdbc
bundle
gazarenkov 16b4c96
Merge remote-tracking branch 'upstream/main' into devhub-plugin-catalog
gazarenkov 1009830
bundle
gazarenkov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,88 @@ | ||
| package v1alpha5 | ||
|
|
||
| import ( | ||
| corev1 "k8s.io/api/core/v1" | ||
| metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||
| "k8s.io/apimachinery/pkg/runtime" | ||
| ) | ||
|
|
||
| // DevHubPluginCatalogSpec defines the desired state of DevHubPluginCatalog | ||
| type DevHubPluginCatalogSpec struct { | ||
| // Source defines where to fetch the catalog from | ||
| // +kubebuilder:validation:Required | ||
| Source CatalogSource `json:"source"` | ||
| } | ||
|
|
||
| // CatalogSource defines the source of the plugin catalog | ||
| type CatalogSource struct { | ||
| // Ref is the OCI artifact reference containing the catalog | ||
| // Example: oci://registry.redhat.io/rhdh/plugin-catalog:1.5 | ||
| // +kubebuilder:validation:Required | ||
| Ref string `json:"ref"` | ||
|
|
||
| // PullSecret is a reference to a Secret containing registry credentials | ||
| // +optional | ||
| PullSecret *corev1.LocalObjectReference `json:"pullSecret,omitempty"` | ||
|
|
||
| // CertificateAuthority is a reference to a ConfigMap key containing CA certificate | ||
| // +optional | ||
| CertificateAuthority *corev1.ConfigMapKeySelector `json:"certificateAuthority,omitempty"` | ||
|
|
||
| // SkipTLSVerify skips TLS certificate verification (not recommended for production) | ||
| // +optional | ||
| // +kubebuilder:default=false | ||
| SkipTLSVerify bool `json:"skipTLSVerify,omitempty"` | ||
| } | ||
|
|
||
| // DevHubPluginCatalogStatus defines the observed state of DevHubPluginCatalog | ||
| type DevHubPluginCatalogStatus struct { | ||
| // Conditions represent the latest available observations of the catalog's state | ||
| // +optional | ||
| Conditions []metav1.Condition `json:"conditions,omitempty"` | ||
| } | ||
|
|
||
| // Condition types for DevHubPluginCatalog | ||
| const ( | ||
| // ConditionTypeReady indicates whether the catalog has been successfully processed | ||
| ConditionTypeReady = "Ready" | ||
| ) | ||
|
|
||
| // Condition reasons for DevHubPluginCatalog | ||
| const ( | ||
| ConditionReasonProcessing = "Processing" | ||
| ConditionReasonSucceeded = "Succeeded" | ||
| ConditionReasonFailed = "Failed" | ||
| ) | ||
|
|
||
| // +kubebuilder:object:root=true | ||
| // +kubebuilder:resource:scope=Namespaced,shortName=dhpc | ||
| // +kubebuilder:subresource:status | ||
| // +kubebuilder:printcolumn:name="Ref",type=string,JSONPath=`.spec.source.ref` | ||
| // +kubebuilder:printcolumn:name="Ready",type=string,JSONPath=`.status.conditions[?(@.type=="Ready")].status` | ||
| // +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp` | ||
|
|
||
| // DevHubPluginCatalog is the Schema for the devhubplugincatalogs API. | ||
| // It defines a source for plugin catalogs that can be fetched from OCI registries. | ||
| type DevHubPluginCatalog struct { | ||
| metav1.TypeMeta `json:",inline"` | ||
| metav1.ObjectMeta `json:"metadata,omitempty"` | ||
|
|
||
| Spec DevHubPluginCatalogSpec `json:"spec,omitempty"` | ||
| Status DevHubPluginCatalogStatus `json:"status,omitempty"` | ||
| } | ||
|
|
||
| // +kubebuilder:object:root=true | ||
|
|
||
| // DevHubPluginCatalogList contains a list of DevHubPluginCatalog | ||
| type DevHubPluginCatalogList struct { | ||
| metav1.TypeMeta `json:",inline"` | ||
| metav1.ListMeta `json:"metadata,omitempty"` | ||
| Items []DevHubPluginCatalog `json:"items"` | ||
| } | ||
|
|
||
| func init() { | ||
| SchemeBuilder.Register(func(s *runtime.Scheme) error { | ||
| s.AddKnownTypes(GroupVersion, &DevHubPluginCatalog{}, &DevHubPluginCatalogList{}) | ||
| return nil | ||
| }) | ||
| } |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.