diff --git a/pkg/api/v20231122/openshiftcluster_convert.go b/pkg/api/v20231122/openshiftcluster_convert.go index 53c89d1da91..eacc774849e 100644 --- a/pkg/api/v20231122/openshiftcluster_convert.go +++ b/pkg/api/v20231122/openshiftcluster_convert.go @@ -291,4 +291,11 @@ func (c openShiftClusterConverter) ExternalNoReadOnly(_oc interface{}) { for i := range oc.Properties.IngressProfiles { oc.Properties.IngressProfiles[i].IP = "" } + oc.SystemData = nil + oc.Properties.ConsoleProfile.URL = "" + oc.Properties.APIServerProfile.URL = "" + oc.Properties.APIServerProfile.IP = "" + for i := range oc.Properties.IngressProfiles { + oc.Properties.IngressProfiles[i].IP = "" + } } diff --git a/pkg/api/v20240812preview/openshiftcluster_convert.go b/pkg/api/v20240812preview/openshiftcluster_convert.go index a0c8de28aa2..f27622116c9 100644 --- a/pkg/api/v20240812preview/openshiftcluster_convert.go +++ b/pkg/api/v20240812preview/openshiftcluster_convert.go @@ -339,4 +339,15 @@ func (c openShiftClusterConverter) ExternalNoReadOnly(_oc interface{}) { for i := range oc.Properties.IngressProfiles { oc.Properties.IngressProfiles[i].IP = "" } + oc.SystemData = nil + oc.Properties.ConsoleProfile.URL = "" + oc.Properties.APIServerProfile.URL = "" + oc.Properties.APIServerProfile.IP = "" + for i := range oc.Properties.IngressProfiles { + oc.Properties.IngressProfiles[i].IP = "" + } + for i := range oc.Properties.PlatformWorkloadIdentityProfile.PlatformWorkloadIdentities { + oc.Properties.PlatformWorkloadIdentityProfile.PlatformWorkloadIdentities[i].ClientID = "" + oc.Properties.PlatformWorkloadIdentityProfile.PlatformWorkloadIdentities[i].ObjectID = "" + } }