From 632625e3e3b8d545d08f98c1dcbdd351d93e21d3 Mon Sep 17 00:00:00 2001 From: scme0 Date: Thu, 10 Jul 2025 14:19:45 +0200 Subject: [PATCH 1/3] update models --- pkg/model/app-proxy/models_gen.go | 156 ++++++++++++++++-- pkg/model/platform/models_gen.go | 146 ++++++++++++++-- .../promotion-orchestrator/models_gen.go | 134 +++++++++++++-- 3 files changed, 388 insertions(+), 48 deletions(-) diff --git a/pkg/model/app-proxy/models_gen.go b/pkg/model/app-proxy/models_gen.go index ae2ce78..de00ffb 100644 --- a/pkg/model/app-proxy/models_gen.go +++ b/pkg/model/app-proxy/models_gen.go @@ -378,6 +378,8 @@ type AccountFeatures struct { ClassicEnvironments *bool `json:"classicEnvironments,omitempty"` // Hide git-sources and related applications without git permissions and when permissions are not provided CsdpFilterAppsByGitPermissions *bool `json:"csdpFilterAppsByGitPermissions,omitempty"` + // Gitops Application Tree optimization. It will use improved MongoDB agregation pipeline when enabled. Gitops apps and app sets will be extracted from DB without heavy manifest fields (when need to read >2k items) + CsdpAppAndAppSetWithoutManifestFields *bool `json:"csdpAppAndAppSetWithoutManifestFields,omitempty"` // Hide Compositions item in navigation menu HideCompositionsMenuItem *bool `json:"hideCompositionsMenuItem,omitempty"` // Hide Helm Boards item in navigation menu @@ -472,7 +474,7 @@ type AccountFeatures struct { UnmappedAppsProductView *bool `json:"unmappedAppsProductView,omitempty"` // Hide native workflow link HideNativeWorkflowLink *bool `json:"hideNativeWorkflowLink,omitempty"` - // Locking user on billing page when not paying + // Enable enforcement according to GitOps Plan. Includes monitoring resource limits and disabling actions, showing banners when plan limits reached. GitopsPlanEnforcement *bool `json:"gitopsPlanEnforcement,omitempty"` // Hides delete, resubmit, terminate and suspend workflow actions HideWorkflowActions *bool `json:"hideWorkflowActions,omitempty"` @@ -480,6 +482,24 @@ type AccountFeatures struct { IscGithubRepo *bool `json:"iscGithubRepo,omitempty"` // Enables new products list view NewProductsList *bool `json:"newProductsList,omitempty"` + // Moves the helpHub to the sidebar + HelpHubInSidebar *bool `json:"helpHubInSidebar,omitempty"` + // Enable enforcement according to GitOps Plan. Includes locking user on billing page when not paying. + GitopsFreePlanEnforcement *bool `json:"gitopsFreePlanEnforcement,omitempty"` + // Enables grouped mode for environments view + GitopsEnvironmentsGroupedMode *bool `json:"gitopsEnvironmentsGroupedMode,omitempty"` + // Adds ability to promote files from relative path + RelativeFilesPromotions *bool `json:"relativeFilesPromotions,omitempty"` +} + +// Account Gitops Usage +type AccountGitopsUsage struct { + // UpdatedAt + UpdatedAt *string `json:"updatedAt,omitempty"` + // Applications + Applications *UsageState `json:"applications,omitempty"` + // Clusters + Clusters *UsageState `json:"clusters,omitempty"` } // Account Settings will hold a generic object with settings used by the UI @@ -1188,6 +1208,16 @@ type AppResourceEventsMetadata struct { ResourceVersion *string `json:"resourceVersion,omitempty"` } +// Repo Resource Manifest response input +type AppResourceGitManifestInput struct { + // Resource git manifest + Content string `json:"content"` + // Resource source + Source *RepoResourceSourceInput `json:"source"` + // Synced revision metadata + SyncedRevisionMetadata *SyncedRevisionMetadataInput `json:"syncedRevisionMetadata,omitempty"` +} + // Repo Resource Manifest response type AppResourceGitManifestResponse struct { // Resource git manifest @@ -1804,6 +1834,20 @@ type ApplicationLogEntry struct { Content string `json:"content"` } +// Application Logs Options Input +type ApplicationLogsOptionsInput struct { + // Follow the log stream of the pod + Follow *bool `json:"follow,omitempty"` + // Filter logs by a string + Filter *string `json:"filter,omitempty"` + // A relative time in seconds before the current time from which to show logs + SinceSeconds *int `json:"sinceSeconds,omitempty"` + // An RFC3339 timestamp from which to show logs. (example: 2023-10-01T00:00:00Z) + SinceTime *string `json:"sinceTime,omitempty"` + // An RFC3339 timestamp to which to show logs. (example: 2023-10-02T00:00:00Z) + UntilTime *string `json:"untilTime,omitempty"` +} + type ApplicationLogsResponse struct { // Data Data *ApplicationLogEntry `json:"data,omitempty"` @@ -4817,7 +4861,7 @@ type GitopsAccount struct { // AccountId ID string `json:"id"` // GitopsUsage - GitopsUsage *GitopsUsage `json:"gitopsUsage,omitempty"` + GitopsUsage *AccountGitopsUsage `json:"gitopsUsage,omitempty"` } // Gitops entity source @@ -4976,18 +5020,6 @@ type GitopsReleaseSlice struct { PageInfo *SliceInfo `json:"pageInfo"` } -// GitopsUsage -type GitopsUsage struct { - // Cron Trace Id - CronTraceID *string `json:"cronTraceId,omitempty"` - // UpdatedAt - UpdatedAt *string `json:"updatedAt,omitempty"` - // Applications - Applications *UsageState `json:"applications,omitempty"` - // Clusters - Clusters *UsageState `json:"clusters,omitempty"` -} - // GoogleSSO type GoogleSso struct { // ID @@ -5762,6 +5794,10 @@ type IntegrationGenerationInput struct { Operation ResourceOperation `json:"operation"` // Yaml containing encrypted sealed secret SealedSecretYaml *string `json:"sealedSecretYaml,omitempty"` + // Sealet secret git details of currently existing integration + SealedSecretGitData *AppResourceGitManifestInput `json:"sealedSecretGitData,omitempty"` + // Config map git details of currently existing integration + ConfigMapGitData *AppResourceGitManifestInput `json:"configMapGitData,omitempty"` } // IntegrationGenerationInput @@ -6788,6 +6824,32 @@ type PipelineRef struct { ProjectID string `json:"projectId"` } +// Pipeline reference metadata +type PipelineReferenceMetadata struct { + // Name of the entity + Name string `json:"name"` + // Namespace of the entity + Namespace *string `json:"namespace,omitempty"` + // Runtime of the entity + Runtime *string `json:"runtime,omitempty"` + // Group of the entity + Group *string `json:"group,omitempty"` + // Kind of the entity + Kind *string `json:"kind,omitempty"` + // Version of the entity + Version *string `json:"version,omitempty"` +} + +// Pipeline reference with git manifest +type PipelineReferenceWithGitManifest struct { + // Pipeline reference metadata + Metadata *PipelineReferenceMetadata `json:"metadata"` + // Pipeline reference git manifest file path + Path string `json:"path"` + // Pipeline reference git manifest + GitManifest string `json:"gitManifest"` +} + // Pipeline Slice type PipelineSlice struct { // Pipeline edges @@ -7198,6 +7260,8 @@ type ProductComponentFilterArgs struct { PartialName *string `json:"partialName,omitempty"` // Application names AppNames []*string `json:"appNames,omitempty"` + // Application version + AppVersion *string `json:"appVersion,omitempty"` // Filter by user favorite Favorite *bool `json:"favorite,omitempty"` // Issue key array @@ -7326,6 +7390,22 @@ type ProductGitTriggerSelector struct { Values []string `json:"values"` } +// Products group for environments page in grouped mode +type ProductGroupForEnvs struct { + // Product id + ID string `json:"id"` + // Product name + Name string `json:"name"` + // Application Version + AppVersion string `json:"appVersion"` + // Applications in Group + AppsCounter int `json:"appsCounter"` + // Has Errors + HasErrors bool `json:"hasErrors"` + // Product Components + ProductComponents []*ProductComponent `json:"productComponents"` +} + // Product Promotion Flow Selectors type ProductPromotionFlowSelectors struct { // Entity db id @@ -7800,6 +7880,8 @@ type PullRequest struct { State PullRequestState `json:"state"` // Pull request is merged IsMerged bool `json:"isMerged"` + // Commit sha from the pull request merge + MergeCommitSha *string `json:"mergeCommitSHA,omitempty"` } // Pull request args @@ -8093,6 +8175,16 @@ type RepoResourceSource struct { Path string `json:"path"` } +// Repo Resource Source data input +type RepoResourceSourceInput struct { + // Repository URL + RepoURL string `json:"repoURL"` + // Repository revision + Revision string `json:"revision"` + // Repository path + Path string `json:"path"` +} + // Runtime Errors Report Arguments type ReportRuntimeErrorsArgs struct { // Name of the Runtime @@ -8356,6 +8448,14 @@ type Resource struct { Manifest string `json:"manifest"` } +// Resource action parameter input +type ResourceActionParameterInput struct { + // Name of parameter + Name string `json:"name"` + // Value for parameter + Value string `json:"value"` +} + // Resource event type ResourceEvent struct { // Name @@ -9045,6 +9145,8 @@ type Runtime struct { Status *RuntimeStatus `json:"status"` // True if the runtime is a configuration runtime IsConfigurationRuntime bool `json:"isConfigurationRuntime"` + // True if the runtime is marked as skipped configuring as Argo App + IsSkippedConfiguringAsArgoApp bool `json:"isSkippedConfiguringAsArgoApp"` // The internal shared configuration application name for this runtime InternalSharedConfigAppName *string `json:"internalSharedConfigAppName,omitempty"` // The in-cluster application name for this runtime @@ -10043,6 +10145,26 @@ type SyncedRevisionMetadata struct { AvatarURL *string `json:"avatarURL,omitempty"` } +// Synced revision metadata input +type SyncedRevisionMetadataInput struct { + // Resource git manifest + Revision string `json:"revision"` + // Commit author + CommitAuthor *string `json:"commitAuthor,omitempty"` + // Commit date + CommitDate *string `json:"commitDate,omitempty"` + // Commit message + CommitMessage *string `json:"commitMessage,omitempty"` + // Git commit web url + CommitURL *string `json:"commitURL,omitempty"` + // Full web url to file in commit + FileURL *string `json:"fileURL,omitempty"` + // Author web profile url + ProfileURL *string `json:"profileURL,omitempty"` + // Author avatar url + AvatarURL *string `json:"avatarURL,omitempty"` +} + // SystemTypeOutput type SystemTypeOutput struct { // SystemType @@ -10293,10 +10415,12 @@ type UsageState struct { Used *int `json:"used,omitempty"` // Limit Limit *int `json:"limit,omitempty"` - // IsReached + // Whether the usage has reached the limit IsReached bool `json:"isReached"` - // IsExceeded + // Whether the usage has exceeded the limit IsExceeded bool `json:"isExceeded"` + // Whether the usage has exceeded the limit to the point where we enforce harder + IsHardExceeded bool `json:"isHardExceeded"` } // User diff --git a/pkg/model/platform/models_gen.go b/pkg/model/platform/models_gen.go index 6455d10..9a83d79 100644 --- a/pkg/model/platform/models_gen.go +++ b/pkg/model/platform/models_gen.go @@ -393,6 +393,8 @@ type AccountFeatures struct { ClassicEnvironments *bool `json:"classicEnvironments,omitempty"` // Hide git-sources and related applications without git permissions and when permissions are not provided CsdpFilterAppsByGitPermissions *bool `json:"csdpFilterAppsByGitPermissions,omitempty"` + // Gitops Application Tree optimization. It will use improved MongoDB agregation pipeline when enabled. Gitops apps and app sets will be extracted from DB without heavy manifest fields (when need to read >2k items) + CsdpAppAndAppSetWithoutManifestFields *bool `json:"csdpAppAndAppSetWithoutManifestFields,omitempty"` // Hide Compositions item in navigation menu HideCompositionsMenuItem *bool `json:"hideCompositionsMenuItem,omitempty"` // Hide Helm Boards item in navigation menu @@ -487,7 +489,7 @@ type AccountFeatures struct { UnmappedAppsProductView *bool `json:"unmappedAppsProductView,omitempty"` // Hide native workflow link HideNativeWorkflowLink *bool `json:"hideNativeWorkflowLink,omitempty"` - // Locking user on billing page when not paying + // Enable enforcement according to GitOps Plan. Includes monitoring resource limits and disabling actions, showing banners when plan limits reached. GitopsPlanEnforcement *bool `json:"gitopsPlanEnforcement,omitempty"` // Hides delete, resubmit, terminate and suspend workflow actions HideWorkflowActions *bool `json:"hideWorkflowActions,omitempty"` @@ -495,6 +497,24 @@ type AccountFeatures struct { IscGithubRepo *bool `json:"iscGithubRepo,omitempty"` // Enables new products list view NewProductsList *bool `json:"newProductsList,omitempty"` + // Moves the helpHub to the sidebar + HelpHubInSidebar *bool `json:"helpHubInSidebar,omitempty"` + // Enable enforcement according to GitOps Plan. Includes locking user on billing page when not paying. + GitopsFreePlanEnforcement *bool `json:"gitopsFreePlanEnforcement,omitempty"` + // Enables grouped mode for environments view + GitopsEnvironmentsGroupedMode *bool `json:"gitopsEnvironmentsGroupedMode,omitempty"` + // Adds ability to promote files from relative path + RelativeFilesPromotions *bool `json:"relativeFilesPromotions,omitempty"` +} + +// Account Gitops Usage +type AccountGitopsUsage struct { + // UpdatedAt + UpdatedAt *string `json:"updatedAt,omitempty"` + // Applications + Applications *UsageState `json:"applications,omitempty"` + // Clusters + Clusters *UsageState `json:"clusters,omitempty"` } // Account Settings will hold a generic object with settings used by the UI @@ -1005,6 +1025,16 @@ type AppResourceDifferenceRecord struct { DesiredManifest *string `json:"desiredManifest,omitempty"` } +// Repo Resource Manifest response input +type AppResourceGitManifestInput struct { + // Resource git manifest + Content string `json:"content"` + // Resource source + Source *RepoResourceSourceInput `json:"source"` + // Synced revision metadata + SyncedRevisionMetadata *SyncedRevisionMetadataInput `json:"syncedRevisionMetadata,omitempty"` +} + // App Resource metadata type AppResourceMetadataInput struct { // Resource Name @@ -4480,7 +4510,7 @@ type GitopsAccount struct { // AccountId ID string `json:"id"` // GitopsUsage - GitopsUsage *GitopsUsage `json:"gitopsUsage,omitempty"` + GitopsUsage *AccountGitopsUsage `json:"gitopsUsage,omitempty"` } // Gitops entity source @@ -4647,18 +4677,6 @@ type GitopsReleaseSortArg struct { Order SortingOrder `json:"order"` } -// GitopsUsage -type GitopsUsage struct { - // Cron Trace Id - CronTraceID *string `json:"cronTraceId,omitempty"` - // UpdatedAt - UpdatedAt *string `json:"updatedAt,omitempty"` - // Applications - Applications *UsageState `json:"applications,omitempty"` - // Clusters - Clusters *UsageState `json:"clusters,omitempty"` -} - // GoogleSSO type GoogleSso struct { // ID @@ -5556,6 +5574,10 @@ type IntegrationGenerationInput struct { Operation ResourceOperation `json:"operation"` // Yaml containing encrypted sealed secret SealedSecretYaml *string `json:"sealedSecretYaml,omitempty"` + // Sealet secret git details of currently existing integration + SealedSecretGitData *AppResourceGitManifestInput `json:"sealedSecretGitData,omitempty"` + // Config map git details of currently existing integration + ConfigMapGitData *AppResourceGitManifestInput `json:"configMapGitData,omitempty"` } // IntegrationGenerationInput @@ -6628,6 +6650,32 @@ type PipelineRef struct { ProjectID string `json:"projectId"` } +// Pipeline reference metadata +type PipelineReferenceMetadata struct { + // Name of the entity + Name string `json:"name"` + // Namespace of the entity + Namespace *string `json:"namespace,omitempty"` + // Runtime of the entity + Runtime *string `json:"runtime,omitempty"` + // Group of the entity + Group *string `json:"group,omitempty"` + // Kind of the entity + Kind *string `json:"kind,omitempty"` + // Version of the entity + Version *string `json:"version,omitempty"` +} + +// Pipeline reference with git manifest +type PipelineReferenceWithGitManifest struct { + // Pipeline reference metadata + Metadata *PipelineReferenceMetadata `json:"metadata"` + // Pipeline reference git manifest file path + Path string `json:"path"` + // Pipeline reference git manifest + GitManifest string `json:"gitManifest"` +} + // Pipeline Slice type PipelineSlice struct { // Pipeline edges @@ -7014,6 +7062,8 @@ type ProductComponentFilterArgs struct { PartialName *string `json:"partialName,omitempty"` // Application names AppNames []*string `json:"appNames,omitempty"` + // Application version + AppVersion *string `json:"appVersion,omitempty"` // Filter by user favorite Favorite *bool `json:"favorite,omitempty"` // Issue key array @@ -7142,6 +7192,22 @@ type ProductGitTriggerSelector struct { Values []string `json:"values"` } +// Products group for environments page in grouped mode +type ProductGroupForEnvs struct { + // Product id + ID string `json:"id"` + // Product name + Name string `json:"name"` + // Application Version + AppVersion string `json:"appVersion"` + // Applications in Group + AppsCounter int `json:"appsCounter"` + // Has Errors + HasErrors bool `json:"hasErrors"` + // Product Components + ProductComponents []*ProductComponent `json:"productComponents"` +} + // Product Promotion Flow Selectors type ProductPromotionFlowSelectors struct { // Entity db id @@ -7150,6 +7216,18 @@ type ProductPromotionFlowSelectors struct { GitTriggerSelectors []*ProductGitTriggerSelector `json:"gitTriggerSelectors"` } +// ProductReadModelEventPayload +type ProductReadModelEventPayload struct { + // Type of DB entity + EntityType string `json:"entityType"` + // Type of DB event upsert/delete + EventType string `json:"eventType"` + // Reference to entity + Item *EntityReference `json:"item,omitempty"` +} + +func (ProductReadModelEventPayload) IsReadModelEventPayload() {} + // Product Release Entity type ProductReleaseEntity struct { // Release id @@ -7610,6 +7688,8 @@ type PullRequest struct { State PullRequestState `json:"state"` // Pull request is merged IsMerged bool `json:"isMerged"` + // Commit sha from the pull request merge + MergeCommitSha *string `json:"mergeCommitSHA,omitempty"` } // Pull request args @@ -7848,6 +7928,16 @@ type RepoBitbucketCloudFilterArgsInput struct { RepositorySlug string `json:"repositorySlug"` } +// Repo Resource Source data input +type RepoResourceSourceInput struct { + // Repository URL + RepoURL string `json:"repoURL"` + // Repository revision + Revision string `json:"revision"` + // Repository path + Path string `json:"path"` +} + // Runtime Errors Report Arguments type ReportRuntimeErrorsArgs struct { // Name of the Runtime @@ -8482,6 +8572,8 @@ type Runtime struct { Status *RuntimeStatus `json:"status"` // True if the runtime is a configuration runtime IsConfigurationRuntime bool `json:"isConfigurationRuntime"` + // True if the runtime is marked as skipped configuring as Argo App + IsSkippedConfiguringAsArgoApp bool `json:"isSkippedConfiguringAsArgoApp"` // The internal shared configuration application name for this runtime InternalSharedConfigAppName *string `json:"internalSharedConfigAppName,omitempty"` // The in-cluster application name for this runtime @@ -9452,6 +9544,26 @@ type SyncResultResource struct { HookType *SyncHookType `json:"hookType,omitempty"` } +// Synced revision metadata input +type SyncedRevisionMetadataInput struct { + // Resource git manifest + Revision string `json:"revision"` + // Commit author + CommitAuthor *string `json:"commitAuthor,omitempty"` + // Commit date + CommitDate *string `json:"commitDate,omitempty"` + // Commit message + CommitMessage *string `json:"commitMessage,omitempty"` + // Git commit web url + CommitURL *string `json:"commitURL,omitempty"` + // Full web url to file in commit + FileURL *string `json:"fileURL,omitempty"` + // Author web profile url + ProfileURL *string `json:"profileURL,omitempty"` + // Author avatar url + AvatarURL *string `json:"avatarURL,omitempty"` +} + // SystemTypeOutput type SystemTypeOutput struct { // SystemType @@ -9712,10 +9824,12 @@ type UsageState struct { Used *int `json:"used,omitempty"` // Limit Limit *int `json:"limit,omitempty"` - // IsReached + // Whether the usage has reached the limit IsReached bool `json:"isReached"` - // IsExceeded + // Whether the usage has exceeded the limit IsExceeded bool `json:"isExceeded"` + // Whether the usage has exceeded the limit to the point where we enforce harder + IsHardExceeded bool `json:"isHardExceeded"` } // User diff --git a/pkg/model/promotion-orchestrator/models_gen.go b/pkg/model/promotion-orchestrator/models_gen.go index 68907bc..4ccec01 100644 --- a/pkg/model/promotion-orchestrator/models_gen.go +++ b/pkg/model/promotion-orchestrator/models_gen.go @@ -385,6 +385,8 @@ type AccountFeatures struct { ClassicEnvironments *bool `json:"classicEnvironments,omitempty"` // Hide git-sources and related applications without git permissions and when permissions are not provided CsdpFilterAppsByGitPermissions *bool `json:"csdpFilterAppsByGitPermissions,omitempty"` + // Gitops Application Tree optimization. It will use improved MongoDB agregation pipeline when enabled. Gitops apps and app sets will be extracted from DB without heavy manifest fields (when need to read >2k items) + CsdpAppAndAppSetWithoutManifestFields *bool `json:"csdpAppAndAppSetWithoutManifestFields,omitempty"` // Hide Compositions item in navigation menu HideCompositionsMenuItem *bool `json:"hideCompositionsMenuItem,omitempty"` // Hide Helm Boards item in navigation menu @@ -479,7 +481,7 @@ type AccountFeatures struct { UnmappedAppsProductView *bool `json:"unmappedAppsProductView,omitempty"` // Hide native workflow link HideNativeWorkflowLink *bool `json:"hideNativeWorkflowLink,omitempty"` - // Locking user on billing page when not paying + // Enable enforcement according to GitOps Plan. Includes monitoring resource limits and disabling actions, showing banners when plan limits reached. GitopsPlanEnforcement *bool `json:"gitopsPlanEnforcement,omitempty"` // Hides delete, resubmit, terminate and suspend workflow actions HideWorkflowActions *bool `json:"hideWorkflowActions,omitempty"` @@ -487,6 +489,24 @@ type AccountFeatures struct { IscGithubRepo *bool `json:"iscGithubRepo,omitempty"` // Enables new products list view NewProductsList *bool `json:"newProductsList,omitempty"` + // Moves the helpHub to the sidebar + HelpHubInSidebar *bool `json:"helpHubInSidebar,omitempty"` + // Enable enforcement according to GitOps Plan. Includes locking user on billing page when not paying. + GitopsFreePlanEnforcement *bool `json:"gitopsFreePlanEnforcement,omitempty"` + // Enables grouped mode for environments view + GitopsEnvironmentsGroupedMode *bool `json:"gitopsEnvironmentsGroupedMode,omitempty"` + // Adds ability to promote files from relative path + RelativeFilesPromotions *bool `json:"relativeFilesPromotions,omitempty"` +} + +// Account Gitops Usage +type AccountGitopsUsage struct { + // UpdatedAt + UpdatedAt *string `json:"updatedAt,omitempty"` + // Applications + Applications *UsageState `json:"applications,omitempty"` + // Clusters + Clusters *UsageState `json:"clusters,omitempty"` } // Account Settings will hold a generic object with settings used by the UI @@ -1027,6 +1047,16 @@ type AppResourceDifferenceRecord struct { DesiredManifest *string `json:"desiredManifest,omitempty"` } +// Repo Resource Manifest response input +type AppResourceGitManifestInput struct { + // Resource git manifest + Content string `json:"content"` + // Resource source + Source *RepoResourceSourceInput `json:"source"` + // Synced revision metadata + SyncedRevisionMetadata *SyncedRevisionMetadataInput `json:"syncedRevisionMetadata,omitempty"` +} + // Application entity type Application struct { // Object metadata @@ -4062,7 +4092,7 @@ type GitopsAccount struct { // AccountId ID string `json:"id"` // GitopsUsage - GitopsUsage *GitopsUsage `json:"gitopsUsage,omitempty"` + GitopsUsage *AccountGitopsUsage `json:"gitopsUsage,omitempty"` } // Gitops entity source @@ -4221,18 +4251,6 @@ type GitopsReleaseSlice struct { PageInfo *SliceInfo `json:"pageInfo"` } -// GitopsUsage -type GitopsUsage struct { - // Cron Trace Id - CronTraceID *string `json:"cronTraceId,omitempty"` - // UpdatedAt - UpdatedAt *string `json:"updatedAt,omitempty"` - // Applications - Applications *UsageState `json:"applications,omitempty"` - // Clusters - Clusters *UsageState `json:"clusters,omitempty"` -} - // GoogleSSO type GoogleSso struct { // ID @@ -4940,6 +4958,10 @@ type IntegrationGenerationInput struct { Operation ResourceOperation `json:"operation"` // Yaml containing encrypted sealed secret SealedSecretYaml *string `json:"sealedSecretYaml,omitempty"` + // Sealet secret git details of currently existing integration + SealedSecretGitData *AppResourceGitManifestInput `json:"sealedSecretGitData,omitempty"` + // Config map git details of currently existing integration + ConfigMapGitData *AppResourceGitManifestInput `json:"configMapGitData,omitempty"` } // IntegrationGenerationInput @@ -5912,6 +5934,32 @@ type PipelineRef struct { ProjectID string `json:"projectId"` } +// Pipeline reference metadata +type PipelineReferenceMetadata struct { + // Name of the entity + Name string `json:"name"` + // Namespace of the entity + Namespace *string `json:"namespace,omitempty"` + // Runtime of the entity + Runtime *string `json:"runtime,omitempty"` + // Group of the entity + Group *string `json:"group,omitempty"` + // Kind of the entity + Kind *string `json:"kind,omitempty"` + // Version of the entity + Version *string `json:"version,omitempty"` +} + +// Pipeline reference with git manifest +type PipelineReferenceWithGitManifest struct { + // Pipeline reference metadata + Metadata *PipelineReferenceMetadata `json:"metadata"` + // Pipeline reference git manifest file path + Path string `json:"path"` + // Pipeline reference git manifest + GitManifest string `json:"gitManifest"` +} + // Pipeline Slice type PipelineSlice struct { // Pipeline edges @@ -6298,6 +6346,8 @@ type ProductComponentFilterArgs struct { PartialName *string `json:"partialName,omitempty"` // Application names AppNames []*string `json:"appNames,omitempty"` + // Application version + AppVersion *string `json:"appVersion,omitempty"` // Filter by user favorite Favorite *bool `json:"favorite,omitempty"` // Issue key array @@ -6426,6 +6476,22 @@ type ProductGitTriggerSelector struct { Values []string `json:"values"` } +// Products group for environments page in grouped mode +type ProductGroupForEnvs struct { + // Product id + ID string `json:"id"` + // Product name + Name string `json:"name"` + // Application Version + AppVersion string `json:"appVersion"` + // Applications in Group + AppsCounter int `json:"appsCounter"` + // Has Errors + HasErrors bool `json:"hasErrors"` + // Product Components + ProductComponents []*ProductComponent `json:"productComponents"` +} + // Product Promotion Flow Selectors type ProductPromotionFlowSelectors struct { // Entity db id @@ -7078,6 +7144,8 @@ type PullRequest struct { State PullRequestState `json:"state"` // Pull request is merged IsMerged bool `json:"isMerged"` + // Commit sha from the pull request merge + MergeCommitSha *string `json:"mergeCommitSHA,omitempty"` } // Pull request args @@ -7328,6 +7396,16 @@ type RepoBitbucketCloudFilterArgsInput struct { RepositorySlug string `json:"repositorySlug"` } +// Repo Resource Source data input +type RepoResourceSourceInput struct { + // Repository URL + RepoURL string `json:"repoURL"` + // Repository revision + Revision string `json:"revision"` + // Repository path + Path string `json:"path"` +} + // Runtime Errors Report Arguments type ReportRuntimeErrorsArgs struct { // Name of the Runtime @@ -7948,6 +8026,8 @@ type Runtime struct { Status *RuntimeStatus `json:"status"` // True if the runtime is a configuration runtime IsConfigurationRuntime bool `json:"isConfigurationRuntime"` + // True if the runtime is marked as skipped configuring as Argo App + IsSkippedConfiguringAsArgoApp bool `json:"isSkippedConfiguringAsArgoApp"` // The internal shared configuration application name for this runtime InternalSharedConfigAppName *string `json:"internalSharedConfigAppName,omitempty"` // The in-cluster application name for this runtime @@ -8800,6 +8880,26 @@ type SyncResultResource struct { HookType *SyncHookType `json:"hookType,omitempty"` } +// Synced revision metadata input +type SyncedRevisionMetadataInput struct { + // Resource git manifest + Revision string `json:"revision"` + // Commit author + CommitAuthor *string `json:"commitAuthor,omitempty"` + // Commit date + CommitDate *string `json:"commitDate,omitempty"` + // Commit message + CommitMessage *string `json:"commitMessage,omitempty"` + // Git commit web url + CommitURL *string `json:"commitURL,omitempty"` + // Full web url to file in commit + FileURL *string `json:"fileURL,omitempty"` + // Author web profile url + ProfileURL *string `json:"profileURL,omitempty"` + // Author avatar url + AvatarURL *string `json:"avatarURL,omitempty"` +} + // SystemTypeOutput type SystemTypeOutput struct { // SystemType @@ -9030,10 +9130,12 @@ type UsageState struct { Used *int `json:"used,omitempty"` // Limit Limit *int `json:"limit,omitempty"` - // IsReached + // Whether the usage has reached the limit IsReached bool `json:"isReached"` - // IsExceeded + // Whether the usage has exceeded the limit IsExceeded bool `json:"isExceeded"` + // Whether the usage has exceeded the limit to the point where we enforce harder + IsHardExceeded bool `json:"isHardExceeded"` } // User From c245c2c8516a787d437867579c1d9b6d2855bbd2 Mon Sep 17 00:00:00 2001 From: scme0 Date: Mon, 21 Jul 2025 17:01:14 +0200 Subject: [PATCH 2/3] bump version --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2a0dc93..4bdb284 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -VERSION=v1.4.9 +VERSION=v1.4.10 ifndef GOBIN ifndef GOPATH From 25e380c0c52e929e082fccdc7b655ef46d2dde71 Mon Sep 17 00:00:00 2001 From: scme0 Date: Fri, 1 Aug 2025 19:56:25 +0200 Subject: [PATCH 3/3] align all model changes --- pkg/model/app-proxy/models_gen.go | 20 +++++++++++++++++-- pkg/model/platform/models_gen.go | 8 +++++++- .../promotion-orchestrator/models_gen.go | 8 +++++++- 3 files changed, 32 insertions(+), 4 deletions(-) diff --git a/pkg/model/app-proxy/models_gen.go b/pkg/model/app-proxy/models_gen.go index de00ffb..415724d 100644 --- a/pkg/model/app-proxy/models_gen.go +++ b/pkg/model/app-proxy/models_gen.go @@ -490,6 +490,10 @@ type AccountFeatures struct { GitopsEnvironmentsGroupedMode *bool `json:"gitopsEnvironmentsGroupedMode,omitempty"` // Adds ability to promote files from relative path RelativeFilesPromotions *bool `json:"relativeFilesPromotions,omitempty"` + // Adds ability to connect Gitlab as git provider in runtime installation wizard + GitlabSupportInRuntimeWizard *bool `json:"gitlabSupportInRuntimeWizard,omitempty"` + // Adds ability to connect Bitbucket as git provider in runtime installation wizard + BitbucketSupportInRuntimeWizard *bool `json:"bitbucketSupportInRuntimeWizard,omitempty"` } // Account Gitops Usage @@ -1844,7 +1848,7 @@ type ApplicationLogsOptionsInput struct { SinceSeconds *int `json:"sinceSeconds,omitempty"` // An RFC3339 timestamp from which to show logs. (example: 2023-10-01T00:00:00Z) SinceTime *string `json:"sinceTime,omitempty"` - // An RFC3339 timestamp to which to show logs. (example: 2023-10-02T00:00:00Z) + // An RFC3339 timestamp to which to show logs (example: 2023-10-02T00:00:00Z) UntilTime *string `json:"untilTime,omitempty"` } @@ -5896,6 +5900,16 @@ type Invoice struct { Status InvoiceStatus `json:"status"` } +// ISC Repository data +type IscRepository struct { + // Repository URL + URL string `json:"url"` + // Repository branch. Not implemented yet, added to avoid breaking changes in schema in the future + Branch *string `json:"branch,omitempty"` + // Repository path. Not implemented yet, added to avoid breaking changes in schema in the future + Path *string `json:"path,omitempty"` +} + // Issue value type IssueValue struct { // Issue url @@ -10959,6 +10973,7 @@ const ( AbacActionNamesRolloutAbort AbacActionNames = "ROLLOUT_ABORT" AbacActionNamesRolloutPause AbacActionNames = "ROLLOUT_PAUSE" AbacActionNamesRolloutPromoteFull AbacActionNames = "ROLLOUT_PROMOTE_FULL" + AbacActionNamesRolloutRestart AbacActionNames = "ROLLOUT_RESTART" AbacActionNamesRolloutResume AbacActionNames = "ROLLOUT_RESUME" AbacActionNamesRolloutRetry AbacActionNames = "ROLLOUT_RETRY" AbacActionNamesRolloutSkipCurrentStep AbacActionNames = "ROLLOUT_SKIP_CURRENT_STEP" @@ -10986,6 +11001,7 @@ var AllAbacActionNames = []AbacActionNames{ AbacActionNamesRolloutAbort, AbacActionNamesRolloutPause, AbacActionNamesRolloutPromoteFull, + AbacActionNamesRolloutRestart, AbacActionNamesRolloutResume, AbacActionNamesRolloutRetry, AbacActionNamesRolloutSkipCurrentStep, @@ -11000,7 +11016,7 @@ var AllAbacActionNames = []AbacActionNames{ func (e AbacActionNames) IsValid() bool { switch e { - case AbacActionNamesAccessArtifacts, AbacActionNamesAccessLogs, AbacActionNamesAppRollback, AbacActionNamesCreate, AbacActionNamesDeleteResource, AbacActionNamesExecToPod, AbacActionNamesPromoteTo, AbacActionNamesRefresh, AbacActionNamesRestart, AbacActionNamesResubmit, AbacActionNamesRetryRelease, AbacActionNamesRolloutAbort, AbacActionNamesRolloutPause, AbacActionNamesRolloutPromoteFull, AbacActionNamesRolloutResume, AbacActionNamesRolloutRetry, AbacActionNamesRolloutSkipCurrentStep, AbacActionNamesStop, AbacActionNamesSync, AbacActionNamesTerminate, AbacActionNamesTerminateSync, AbacActionNamesTriggerPromotion, AbacActionNamesView, AbacActionNamesViewPodLogs: + case AbacActionNamesAccessArtifacts, AbacActionNamesAccessLogs, AbacActionNamesAppRollback, AbacActionNamesCreate, AbacActionNamesDeleteResource, AbacActionNamesExecToPod, AbacActionNamesPromoteTo, AbacActionNamesRefresh, AbacActionNamesRestart, AbacActionNamesResubmit, AbacActionNamesRetryRelease, AbacActionNamesRolloutAbort, AbacActionNamesRolloutPause, AbacActionNamesRolloutPromoteFull, AbacActionNamesRolloutRestart, AbacActionNamesRolloutResume, AbacActionNamesRolloutRetry, AbacActionNamesRolloutSkipCurrentStep, AbacActionNamesStop, AbacActionNamesSync, AbacActionNamesTerminate, AbacActionNamesTerminateSync, AbacActionNamesTriggerPromotion, AbacActionNamesView, AbacActionNamesViewPodLogs: return true } return false diff --git a/pkg/model/platform/models_gen.go b/pkg/model/platform/models_gen.go index 9a83d79..f2c5fe3 100644 --- a/pkg/model/platform/models_gen.go +++ b/pkg/model/platform/models_gen.go @@ -505,6 +505,10 @@ type AccountFeatures struct { GitopsEnvironmentsGroupedMode *bool `json:"gitopsEnvironmentsGroupedMode,omitempty"` // Adds ability to promote files from relative path RelativeFilesPromotions *bool `json:"relativeFilesPromotions,omitempty"` + // Adds ability to connect Gitlab as git provider in runtime installation wizard + GitlabSupportInRuntimeWizard *bool `json:"gitlabSupportInRuntimeWizard,omitempty"` + // Adds ability to connect Bitbucket as git provider in runtime installation wizard + BitbucketSupportInRuntimeWizard *bool `json:"bitbucketSupportInRuntimeWizard,omitempty"` } // Account Gitops Usage @@ -10418,6 +10422,7 @@ const ( AbacActionNamesRolloutAbort AbacActionNames = "ROLLOUT_ABORT" AbacActionNamesRolloutPause AbacActionNames = "ROLLOUT_PAUSE" AbacActionNamesRolloutPromoteFull AbacActionNames = "ROLLOUT_PROMOTE_FULL" + AbacActionNamesRolloutRestart AbacActionNames = "ROLLOUT_RESTART" AbacActionNamesRolloutResume AbacActionNames = "ROLLOUT_RESUME" AbacActionNamesRolloutRetry AbacActionNames = "ROLLOUT_RETRY" AbacActionNamesRolloutSkipCurrentStep AbacActionNames = "ROLLOUT_SKIP_CURRENT_STEP" @@ -10445,6 +10450,7 @@ var AllAbacActionNames = []AbacActionNames{ AbacActionNamesRolloutAbort, AbacActionNamesRolloutPause, AbacActionNamesRolloutPromoteFull, + AbacActionNamesRolloutRestart, AbacActionNamesRolloutResume, AbacActionNamesRolloutRetry, AbacActionNamesRolloutSkipCurrentStep, @@ -10459,7 +10465,7 @@ var AllAbacActionNames = []AbacActionNames{ func (e AbacActionNames) IsValid() bool { switch e { - case AbacActionNamesAccessArtifacts, AbacActionNamesAccessLogs, AbacActionNamesAppRollback, AbacActionNamesCreate, AbacActionNamesDeleteResource, AbacActionNamesExecToPod, AbacActionNamesPromoteTo, AbacActionNamesRefresh, AbacActionNamesRestart, AbacActionNamesResubmit, AbacActionNamesRetryRelease, AbacActionNamesRolloutAbort, AbacActionNamesRolloutPause, AbacActionNamesRolloutPromoteFull, AbacActionNamesRolloutResume, AbacActionNamesRolloutRetry, AbacActionNamesRolloutSkipCurrentStep, AbacActionNamesStop, AbacActionNamesSync, AbacActionNamesTerminate, AbacActionNamesTerminateSync, AbacActionNamesTriggerPromotion, AbacActionNamesView, AbacActionNamesViewPodLogs: + case AbacActionNamesAccessArtifacts, AbacActionNamesAccessLogs, AbacActionNamesAppRollback, AbacActionNamesCreate, AbacActionNamesDeleteResource, AbacActionNamesExecToPod, AbacActionNamesPromoteTo, AbacActionNamesRefresh, AbacActionNamesRestart, AbacActionNamesResubmit, AbacActionNamesRetryRelease, AbacActionNamesRolloutAbort, AbacActionNamesRolloutPause, AbacActionNamesRolloutPromoteFull, AbacActionNamesRolloutRestart, AbacActionNamesRolloutResume, AbacActionNamesRolloutRetry, AbacActionNamesRolloutSkipCurrentStep, AbacActionNamesStop, AbacActionNamesSync, AbacActionNamesTerminate, AbacActionNamesTerminateSync, AbacActionNamesTriggerPromotion, AbacActionNamesView, AbacActionNamesViewPodLogs: return true } return false diff --git a/pkg/model/promotion-orchestrator/models_gen.go b/pkg/model/promotion-orchestrator/models_gen.go index 4ccec01..e1861f5 100644 --- a/pkg/model/promotion-orchestrator/models_gen.go +++ b/pkg/model/promotion-orchestrator/models_gen.go @@ -497,6 +497,10 @@ type AccountFeatures struct { GitopsEnvironmentsGroupedMode *bool `json:"gitopsEnvironmentsGroupedMode,omitempty"` // Adds ability to promote files from relative path RelativeFilesPromotions *bool `json:"relativeFilesPromotions,omitempty"` + // Adds ability to connect Gitlab as git provider in runtime installation wizard + GitlabSupportInRuntimeWizard *bool `json:"gitlabSupportInRuntimeWizard,omitempty"` + // Adds ability to connect Bitbucket as git provider in runtime installation wizard + BitbucketSupportInRuntimeWizard *bool `json:"bitbucketSupportInRuntimeWizard,omitempty"` } // Account Gitops Usage @@ -9654,6 +9658,7 @@ const ( AbacActionNamesRolloutAbort AbacActionNames = "ROLLOUT_ABORT" AbacActionNamesRolloutPause AbacActionNames = "ROLLOUT_PAUSE" AbacActionNamesRolloutPromoteFull AbacActionNames = "ROLLOUT_PROMOTE_FULL" + AbacActionNamesRolloutRestart AbacActionNames = "ROLLOUT_RESTART" AbacActionNamesRolloutResume AbacActionNames = "ROLLOUT_RESUME" AbacActionNamesRolloutRetry AbacActionNames = "ROLLOUT_RETRY" AbacActionNamesRolloutSkipCurrentStep AbacActionNames = "ROLLOUT_SKIP_CURRENT_STEP" @@ -9681,6 +9686,7 @@ var AllAbacActionNames = []AbacActionNames{ AbacActionNamesRolloutAbort, AbacActionNamesRolloutPause, AbacActionNamesRolloutPromoteFull, + AbacActionNamesRolloutRestart, AbacActionNamesRolloutResume, AbacActionNamesRolloutRetry, AbacActionNamesRolloutSkipCurrentStep, @@ -9695,7 +9701,7 @@ var AllAbacActionNames = []AbacActionNames{ func (e AbacActionNames) IsValid() bool { switch e { - case AbacActionNamesAccessArtifacts, AbacActionNamesAccessLogs, AbacActionNamesAppRollback, AbacActionNamesCreate, AbacActionNamesDeleteResource, AbacActionNamesExecToPod, AbacActionNamesPromoteTo, AbacActionNamesRefresh, AbacActionNamesRestart, AbacActionNamesResubmit, AbacActionNamesRetryRelease, AbacActionNamesRolloutAbort, AbacActionNamesRolloutPause, AbacActionNamesRolloutPromoteFull, AbacActionNamesRolloutResume, AbacActionNamesRolloutRetry, AbacActionNamesRolloutSkipCurrentStep, AbacActionNamesStop, AbacActionNamesSync, AbacActionNamesTerminate, AbacActionNamesTerminateSync, AbacActionNamesTriggerPromotion, AbacActionNamesView, AbacActionNamesViewPodLogs: + case AbacActionNamesAccessArtifacts, AbacActionNamesAccessLogs, AbacActionNamesAppRollback, AbacActionNamesCreate, AbacActionNamesDeleteResource, AbacActionNamesExecToPod, AbacActionNamesPromoteTo, AbacActionNamesRefresh, AbacActionNamesRestart, AbacActionNamesResubmit, AbacActionNamesRetryRelease, AbacActionNamesRolloutAbort, AbacActionNamesRolloutPause, AbacActionNamesRolloutPromoteFull, AbacActionNamesRolloutRestart, AbacActionNamesRolloutResume, AbacActionNamesRolloutRetry, AbacActionNamesRolloutSkipCurrentStep, AbacActionNamesStop, AbacActionNamesSync, AbacActionNamesTerminate, AbacActionNamesTerminateSync, AbacActionNamesTriggerPromotion, AbacActionNamesView, AbacActionNamesViewPodLogs: return true } return false