mirror of
https://github.com/open-cluster-management-io/ocm.git
synced 2026-02-14 10:00:11 +00:00
Some checks failed
Post / images (amd64, addon-manager) (push) Failing after 46s
Post / images (amd64, placement) (push) Failing after 41s
Post / images (amd64, registration-operator) (push) Failing after 39s
Post / images (amd64, work) (push) Failing after 42s
Post / images (arm64, addon-manager) (push) Failing after 39s
Post / images (arm64, placement) (push) Failing after 39s
Post / images (arm64, registration) (push) Failing after 40s
Post / images (arm64, registration-operator) (push) Failing after 42s
Post / images (arm64, work) (push) Failing after 39s
Post / images (amd64, registration) (push) Failing after 7m46s
Post / image manifest (addon-manager) (push) Has been skipped
Post / image manifest (placement) (push) Has been skipped
Post / image manifest (registration) (push) Has been skipped
Post / image manifest (registration-operator) (push) Has been skipped
Post / image manifest (work) (push) Has been skipped
Post / trigger clusteradm e2e (push) Has been skipped
Post / coverage (push) Failing after 14m33s
Scorecard supply-chain security / Scorecard analysis (push) Failing after 1m25s
Close stale issues and PRs / stale (push) Successful in 46s
* Add addon conversion webhook for v1alpha1/v1beta1 API migration 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Qing Hao <qhao@redhat.com> * Fix GroupVersion compatibility issues after API dependency update This commit fixes compilation and test errors introduced by updating the API dependency to use native conversion functions from PR #411. Changes include: 1. Fix GroupVersion type mismatches across the codebase: - Updated OwnerReference creation to use schema.GroupVersion - Fixed webhook scheme registration to use proper GroupVersion type - Applied fixes to addon, placement, migration, work, and registration controllers 2. Enhance addon conversion webhook: - Use native API conversion functions from addon/v1beta1/conversion.go - Fix InstallNamespace annotation key to match expected format - Add custom logic to populate deprecated ConfigReferent field in ConfigReferences - Properly preserve annotations during v1alpha1 <-> v1beta1 conversion 3. Remove duplicate conversion code: - Deleted pkg/addon/webhook/conversion/ directory (~500 lines) - Now using native conversion functions from the API repository 4. Patch vendored addon-framework: - Fixed GroupVersion errors in agentdeploy utils All unit tests pass successfully (97 packages, 0 failures). Signed-off-by: Qing Hao <qhao@redhat.com> --------- Signed-off-by: Qing Hao <qhao@redhat.com> Co-authored-by: Claude <noreply@anthropic.com>
56 lines
2.1 KiB
Go
56 lines
2.1 KiB
Go
package manifests
|
|
|
|
import operatorapiv1 "open-cluster-management.io/api/operator/v1"
|
|
|
|
type HubConfig struct {
|
|
ClusterManagerName string
|
|
ClusterManagerNamespace string
|
|
OperatorNamespace string
|
|
RegistrationImage string
|
|
RegistrationAPIServiceCABundle string
|
|
WorkImage string
|
|
WorkAPIServiceCABundle string
|
|
PlacementImage string
|
|
AddonAPIServiceCABundle string
|
|
Replica int32
|
|
HostedMode bool
|
|
RegistrationWebhook Webhook
|
|
WorkWebhook Webhook
|
|
AddonWebhook Webhook
|
|
RegistrationFeatureGates []string
|
|
WorkFeatureGates []string
|
|
AddOnManagerImage string
|
|
AddOnManagerEnabled bool
|
|
WorkControllerEnabled bool
|
|
ClusterProfileEnabled bool
|
|
AgentImage string
|
|
CloudEventsDriverEnabled bool
|
|
ClusterImporterEnabled bool
|
|
WorkDriver string
|
|
AutoApproveUsers string
|
|
ImagePullSecret string
|
|
// ResourceRequirementResourceType is the resource requirement resource type for the cluster manager managed containers.
|
|
ResourceRequirementResourceType operatorapiv1.ResourceQosClass
|
|
// ResourceRequirements is the resource requirements for the cluster manager managed containers.
|
|
// The type has to be []byte to use "indent" template function.
|
|
ResourceRequirements []byte
|
|
ManagedClusterIdentityCreatorRole string
|
|
HubClusterArn string
|
|
EnabledRegistrationDrivers string
|
|
AutoApprovedCSRUsers string
|
|
AutoApprovedARNPatterns string
|
|
AwsResourceTags string
|
|
Labels map[string]string
|
|
LabelsString string
|
|
GRPCAuthEnabled bool
|
|
GRPCServerImage string
|
|
GRPCAutoApprovedUsers string
|
|
GRPCEndpointType string
|
|
}
|
|
|
|
type Webhook struct {
|
|
IsIPFormat bool
|
|
Port int32
|
|
Address string
|
|
}
|