From 5a20eb67320ac7ac0c1f3ff775ad15e0bb65d17a Mon Sep 17 00:00:00 2001 From: andrii-codefresh Date: Mon, 9 Oct 2023 22:15:09 +0300 Subject: [PATCH] argo-cd logic (controller, server, reposerver) --- assets/swagger.json | 12 + controller/state.go | 22 + .../version_config_manager.go | 64 ++ reposerver/apiclient/repository.pb.go | 965 ++++++++++++++---- reposerver/repository/app_version.go | 72 ++ reposerver/repository/repository.go | 9 + reposerver/repository/repository.proto | 13 + server/application/application.go | 27 +- 8 files changed, 996 insertions(+), 188 deletions(-) create mode 100644 pkg/version_config_manager/version_config_manager.go create mode 100644 reposerver/repository/app_version.go diff --git a/assets/swagger.json b/assets/swagger.json index d4e94dfaca58e..16d2a647ce459 100644 --- a/assets/swagger.json +++ b/assets/swagger.json @@ -5013,6 +5013,15 @@ } } }, + "repositoryApplicationVersions": { + "type": "object", + "properties": { + "appVersion": { + "type": "string", + "title": "Application version presented by single value" + } + } + }, "repositoryDirectoryAppSpec": { "type": "object", "title": "DirectoryAppSpec contains directory" @@ -5113,6 +5122,9 @@ "repositoryManifestResponse": { "type": "object", "properties": { + "applicationVersions": { + "$ref": "#/definitions/repositoryApplicationVersions" + }, "commitAuthor": { "type": "string" }, diff --git a/controller/state.go b/controller/state.go index 60a4e38764147..0b70c4a0d8af9 100644 --- a/controller/state.go +++ b/controller/state.go @@ -28,6 +28,7 @@ import ( "github.com/argoproj/argo-cd/v2/controller/metrics" "github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1" appclientset "github.com/argoproj/argo-cd/v2/pkg/client/clientset/versioned" + "github.com/argoproj/argo-cd/v2/pkg/version_config_manager" "github.com/argoproj/argo-cd/v2/reposerver/apiclient" "github.com/argoproj/argo-cd/v2/util/argo" argodiff "github.com/argoproj/argo-cd/v2/util/argo/diff" @@ -106,6 +107,26 @@ type appStateManager struct { persistResourceHealth bool } +func getVersionConfig() *apiclient.VersionConfig { + versionConfigManager, err := version_config_manager.NewVersionConfigManager("ConfigMap", "some-product-cm") + if err != nil { + log.Fatalf("Failed to create VersionConfigManager: %v", err) + return nil + } + + versionConfig, err := versionConfigManager.ObtainConfig() + if err != nil { + log.Fatalf("Failed to obtain config: %v", err) + return nil + } + + return &apiclient.VersionConfig{ + ProductLabel: versionConfig.ProductLabel, + ResourceName: versionConfig.ResourceName, + JsonPath: versionConfig.JsonPath, + } +} + func (m *appStateManager) getRepoObjs(app *v1alpha1.Application, sources []v1alpha1.ApplicationSource, appLabelKey string, revisions []string, noCache, noRevisionCache, verifySignature bool, proj *v1alpha1.AppProject) ([]*unstructured.Unstructured, []*apiclient.ManifestResponse, error) { ts := stats.NewTimingStats() @@ -200,6 +221,7 @@ func (m *appStateManager) getRepoObjs(app *v1alpha1.Application, sources []v1alp HelmOptions: helmOptions, HasMultipleSources: app.Spec.HasMultipleSources(), RefSources: refSources, + VersionConfig: getVersionConfig(), }) if err != nil { return nil, nil, fmt.Errorf("failed to generate manifest for source %d of %d: %w", i+1, len(sources), err) diff --git a/pkg/version_config_manager/version_config_manager.go b/pkg/version_config_manager/version_config_manager.go new file mode 100644 index 0000000000000..696f57e9aa51a --- /dev/null +++ b/pkg/version_config_manager/version_config_manager.go @@ -0,0 +1,64 @@ +package version_config_manager + +import ( + "errors" +) + +type VersionConfig struct { + ProductLabel string `json:"productLabel"` + JsonPath string `json:"jsonPath"` + ResourceName string `json:"resourceName"` +} + +type ConfigProvider interface { + GetConfig() (*VersionConfig, error) +} + +type CodereshAPIConfigProvider struct { + CodereshAPIEndpoint string +} + +type ConfigMapProvider struct { + ConfigMapPath string +} + +func (CodereshAPI *CodereshAPIConfigProvider) GetConfig() (*VersionConfig, error) { + // Implement logic to fetch config from the CodereshAPI here. + // For this example, we'll just return a mock config. + return &VersionConfig{ + ProductLabel: "ProductLabelName=ProductName", + JsonPath: "{.appVersion}", + ResourceName: "Chart.yaml", + }, nil +} + +func (cm *ConfigMapProvider) GetConfig() (*VersionConfig, error) { + // Implement logic to fetch config from the config map here. + // For this example, we'll just return a mock config. + return &VersionConfig{ + ProductLabel: "ProductLabelName=ProductName", + JsonPath: "{.appVersion}", + ResourceName: "Chart.yaml", + }, nil +} + +type VersionConfigManager struct { + provider ConfigProvider +} + +func NewVersionConfigManager(providerType string, source string) (*VersionConfigManager, error) { + var provider ConfigProvider + switch providerType { + case "CodereshAPI": + provider = &CodereshAPIConfigProvider{CodereshAPIEndpoint: source} + case "ConfigMap": + provider = &ConfigMapProvider{ConfigMapPath: source} + default: + return nil, errors.New("Invalid provider type") + } + return &VersionConfigManager{provider: provider}, nil +} + +func (v *VersionConfigManager) ObtainConfig() (*VersionConfig, error) { + return v.provider.GetConfig() +} diff --git a/reposerver/apiclient/repository.pb.go b/reposerver/apiclient/repository.pb.go index 4cee3897e5ee3..d1273a60e6dd7 100644 --- a/reposerver/apiclient/repository.pb.go +++ b/reposerver/apiclient/repository.pb.go @@ -30,6 +30,69 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +type VersionConfig struct { + ProductLabel string `protobuf:"bytes,1,opt,name=productLabel,proto3" json:"productLabel,omitempty"` + JsonPath string `protobuf:"bytes,2,opt,name=jsonPath,proto3" json:"jsonPath,omitempty"` + ResourceName string `protobuf:"bytes,3,opt,name=resourceName,proto3" json:"resourceName,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *VersionConfig) Reset() { *m = VersionConfig{} } +func (m *VersionConfig) String() string { return proto.CompactTextString(m) } +func (*VersionConfig) ProtoMessage() {} +func (*VersionConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_dd8723cfcc820480, []int{0} +} +func (m *VersionConfig) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *VersionConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_VersionConfig.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *VersionConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_VersionConfig.Merge(m, src) +} +func (m *VersionConfig) XXX_Size() int { + return m.Size() +} +func (m *VersionConfig) XXX_DiscardUnknown() { + xxx_messageInfo_VersionConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_VersionConfig proto.InternalMessageInfo + +func (m *VersionConfig) GetProductLabel() string { + if m != nil { + return m.ProductLabel + } + return "" +} + +func (m *VersionConfig) GetJsonPath() string { + if m != nil { + return m.JsonPath + } + return "" +} + +func (m *VersionConfig) GetResourceName() string { + if m != nil { + return m.ResourceName + } + return "" +} + // ManifestRequest is a query for manifest generation. type ManifestRequest struct { Repo *v1alpha1.Repository `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"` @@ -56,6 +119,7 @@ type ManifestRequest struct { HelmOptions *v1alpha1.HelmOptions `protobuf:"bytes,21,opt,name=helmOptions,proto3" json:"helmOptions,omitempty"` HasMultipleSources bool `protobuf:"varint,22,opt,name=hasMultipleSources,proto3" json:"hasMultipleSources,omitempty"` RefSources map[string]*v1alpha1.RefTarget `protobuf:"bytes,23,rep,name=refSources,proto3" json:"refSources,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + VersionConfig *VersionConfig `protobuf:"bytes,24,opt,name=versionConfig,proto3" json:"versionConfig,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -65,7 +129,7 @@ func (m *ManifestRequest) Reset() { *m = ManifestRequest{} } func (m *ManifestRequest) String() string { return proto.CompactTextString(m) } func (*ManifestRequest) ProtoMessage() {} func (*ManifestRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_dd8723cfcc820480, []int{0} + return fileDescriptor_dd8723cfcc820480, []int{1} } func (m *ManifestRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -234,6 +298,13 @@ func (m *ManifestRequest) GetRefSources() map[string]*v1alpha1.RefTarget { return nil } +func (m *ManifestRequest) GetVersionConfig() *VersionConfig { + if m != nil { + return m.VersionConfig + } + return nil +} + type ManifestRequestWithFiles struct { // Types that are valid to be assigned to Part: // *ManifestRequestWithFiles_Request @@ -249,7 +320,7 @@ func (m *ManifestRequestWithFiles) Reset() { *m = ManifestRequestWithFil func (m *ManifestRequestWithFiles) String() string { return proto.CompactTextString(m) } func (*ManifestRequestWithFiles) ProtoMessage() {} func (*ManifestRequestWithFiles) Descriptor() ([]byte, []int) { - return fileDescriptor_dd8723cfcc820480, []int{1} + return fileDescriptor_dd8723cfcc820480, []int{2} } func (m *ManifestRequestWithFiles) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -349,7 +420,7 @@ func (m *ManifestFileMetadata) Reset() { *m = ManifestFileMetadata{} } func (m *ManifestFileMetadata) String() string { return proto.CompactTextString(m) } func (*ManifestFileMetadata) ProtoMessage() {} func (*ManifestFileMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_dd8723cfcc820480, []int{2} + return fileDescriptor_dd8723cfcc820480, []int{3} } func (m *ManifestFileMetadata) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -403,7 +474,7 @@ func (m *ManifestFileChunk) Reset() { *m = ManifestFileChunk{} } func (m *ManifestFileChunk) String() string { return proto.CompactTextString(m) } func (*ManifestFileChunk) ProtoMessage() {} func (*ManifestFileChunk) Descriptor() ([]byte, []int) { - return fileDescriptor_dd8723cfcc820480, []int{3} + return fileDescriptor_dd8723cfcc820480, []int{4} } func (m *ManifestFileChunk) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -451,7 +522,7 @@ func (m *TestRepositoryRequest) Reset() { *m = TestRepositoryRequest{} } func (m *TestRepositoryRequest) String() string { return proto.CompactTextString(m) } func (*TestRepositoryRequest) ProtoMessage() {} func (*TestRepositoryRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_dd8723cfcc820480, []int{4} + return fileDescriptor_dd8723cfcc820480, []int{5} } func (m *TestRepositoryRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -500,7 +571,7 @@ func (m *TestRepositoryResponse) Reset() { *m = TestRepositoryResponse{} func (m *TestRepositoryResponse) String() string { return proto.CompactTextString(m) } func (*TestRepositoryResponse) ProtoMessage() {} func (*TestRepositoryResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_dd8723cfcc820480, []int{5} + return fileDescriptor_dd8723cfcc820480, []int{6} } func (m *TestRepositoryResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -550,7 +621,7 @@ func (m *ResolveRevisionRequest) Reset() { *m = ResolveRevisionRequest{} func (m *ResolveRevisionRequest) String() string { return proto.CompactTextString(m) } func (*ResolveRevisionRequest) ProtoMessage() {} func (*ResolveRevisionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_dd8723cfcc820480, []int{6} + return fileDescriptor_dd8723cfcc820480, []int{7} } func (m *ResolveRevisionRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -614,7 +685,7 @@ func (m *ResolveRevisionResponse) Reset() { *m = ResolveRevisionResponse func (m *ResolveRevisionResponse) String() string { return proto.CompactTextString(m) } func (*ResolveRevisionResponse) ProtoMessage() {} func (*ResolveRevisionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_dd8723cfcc820480, []int{7} + return fileDescriptor_dd8723cfcc820480, []int{8} } func (m *ResolveRevisionResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -676,7 +747,7 @@ func (m *Manifest) Reset() { *m = Manifest{} } func (m *Manifest) String() string { return proto.CompactTextString(m) } func (*Manifest) ProtoMessage() {} func (*Manifest) Descriptor() ([]byte, []int) { - return fileDescriptor_dd8723cfcc820480, []int{8} + return fileDescriptor_dd8723cfcc820480, []int{9} } func (m *Manifest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -733,6 +804,54 @@ func (m *Manifest) GetLine() int32 { return 0 } +type ApplicationVersions struct { + // Application version presented by single value + AppVersion string `protobuf:"bytes,1,opt,name=appVersion,proto3" json:"appVersion,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ApplicationVersions) Reset() { *m = ApplicationVersions{} } +func (m *ApplicationVersions) String() string { return proto.CompactTextString(m) } +func (*ApplicationVersions) ProtoMessage() {} +func (*ApplicationVersions) Descriptor() ([]byte, []int) { + return fileDescriptor_dd8723cfcc820480, []int{10} +} +func (m *ApplicationVersions) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ApplicationVersions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ApplicationVersions.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ApplicationVersions) XXX_Merge(src proto.Message) { + xxx_messageInfo_ApplicationVersions.Merge(m, src) +} +func (m *ApplicationVersions) XXX_Size() int { + return m.Size() +} +func (m *ApplicationVersions) XXX_DiscardUnknown() { + xxx_messageInfo_ApplicationVersions.DiscardUnknown(m) +} + +var xxx_messageInfo_ApplicationVersions proto.InternalMessageInfo + +func (m *ApplicationVersions) GetAppVersion() string { + if m != nil { + return m.AppVersion + } + return "" +} + type ManifestResponse struct { Manifests []*Manifest `protobuf:"bytes,1,rep,name=manifests,proto3" json:"manifests,omitempty"` Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` @@ -741,20 +860,21 @@ type ManifestResponse struct { Revision string `protobuf:"bytes,4,opt,name=revision,proto3" json:"revision,omitempty"` SourceType string `protobuf:"bytes,6,opt,name=sourceType,proto3" json:"sourceType,omitempty"` // Raw response of git verify-commit operation (always the empty string for Helm) - VerifyResult string `protobuf:"bytes,7,opt,name=verifyResult,proto3" json:"verifyResult,omitempty"` - CommitMessage string `protobuf:"bytes,8,opt,name=commitMessage,proto3" json:"commitMessage,omitempty"` - CommitAuthor string `protobuf:"bytes,9,opt,name=commitAuthor,proto3" json:"commitAuthor,omitempty"` - CommitDate *v1.Time `protobuf:"bytes,10,opt,name=commitDate,proto3" json:"commitDate,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + VerifyResult string `protobuf:"bytes,7,opt,name=verifyResult,proto3" json:"verifyResult,omitempty"` + CommitMessage string `protobuf:"bytes,8,opt,name=commitMessage,proto3" json:"commitMessage,omitempty"` + CommitAuthor string `protobuf:"bytes,9,opt,name=commitAuthor,proto3" json:"commitAuthor,omitempty"` + CommitDate *v1.Time `protobuf:"bytes,10,opt,name=commitDate,proto3" json:"commitDate,omitempty"` + ApplicationVersions *ApplicationVersions `protobuf:"bytes,11,opt,name=applicationVersions,proto3" json:"applicationVersions,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *ManifestResponse) Reset() { *m = ManifestResponse{} } func (m *ManifestResponse) String() string { return proto.CompactTextString(m) } func (*ManifestResponse) ProtoMessage() {} func (*ManifestResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_dd8723cfcc820480, []int{9} + return fileDescriptor_dd8723cfcc820480, []int{11} } func (m *ManifestResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -846,6 +966,13 @@ func (m *ManifestResponse) GetCommitDate() *v1.Time { return nil } +func (m *ManifestResponse) GetApplicationVersions() *ApplicationVersions { + if m != nil { + return m.ApplicationVersions + } + return nil +} + type ListRefsRequest struct { Repo *v1alpha1.Repository `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -857,7 +984,7 @@ func (m *ListRefsRequest) Reset() { *m = ListRefsRequest{} } func (m *ListRefsRequest) String() string { return proto.CompactTextString(m) } func (*ListRefsRequest) ProtoMessage() {} func (*ListRefsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_dd8723cfcc820480, []int{10} + return fileDescriptor_dd8723cfcc820480, []int{12} } func (m *ListRefsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -906,7 +1033,7 @@ func (m *Refs) Reset() { *m = Refs{} } func (m *Refs) String() string { return proto.CompactTextString(m) } func (*Refs) ProtoMessage() {} func (*Refs) Descriptor() ([]byte, []int) { - return fileDescriptor_dd8723cfcc820480, []int{11} + return fileDescriptor_dd8723cfcc820480, []int{13} } func (m *Refs) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -963,7 +1090,7 @@ func (m *ListAppsRequest) Reset() { *m = ListAppsRequest{} } func (m *ListAppsRequest) String() string { return proto.CompactTextString(m) } func (*ListAppsRequest) ProtoMessage() {} func (*ListAppsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_dd8723cfcc820480, []int{12} + return fileDescriptor_dd8723cfcc820480, []int{14} } func (m *ListAppsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1025,7 +1152,7 @@ func (m *AppList) Reset() { *m = AppList{} } func (m *AppList) String() string { return proto.CompactTextString(m) } func (*AppList) ProtoMessage() {} func (*AppList) Descriptor() ([]byte, []int) { - return fileDescriptor_dd8723cfcc820480, []int{13} + return fileDescriptor_dd8723cfcc820480, []int{15} } func (m *AppList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1072,7 +1199,7 @@ func (m *PluginInfo) Reset() { *m = PluginInfo{} } func (m *PluginInfo) String() string { return proto.CompactTextString(m) } func (*PluginInfo) ProtoMessage() {} func (*PluginInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_dd8723cfcc820480, []int{14} + return fileDescriptor_dd8723cfcc820480, []int{16} } func (m *PluginInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1120,7 +1247,7 @@ func (m *PluginList) Reset() { *m = PluginList{} } func (m *PluginList) String() string { return proto.CompactTextString(m) } func (*PluginList) ProtoMessage() {} func (*PluginList) Descriptor() ([]byte, []int) { - return fileDescriptor_dd8723cfcc820480, []int{15} + return fileDescriptor_dd8723cfcc820480, []int{17} } func (m *PluginList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1178,7 +1305,7 @@ func (m *RepoServerAppDetailsQuery) Reset() { *m = RepoServerAppDetailsQ func (m *RepoServerAppDetailsQuery) String() string { return proto.CompactTextString(m) } func (*RepoServerAppDetailsQuery) ProtoMessage() {} func (*RepoServerAppDetailsQuery) Descriptor() ([]byte, []int) { - return fileDescriptor_dd8723cfcc820480, []int{16} + return fileDescriptor_dd8723cfcc820480, []int{18} } func (m *RepoServerAppDetailsQuery) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1300,7 +1427,7 @@ func (m *RepoAppDetailsResponse) Reset() { *m = RepoAppDetailsResponse{} func (m *RepoAppDetailsResponse) String() string { return proto.CompactTextString(m) } func (*RepoAppDetailsResponse) ProtoMessage() {} func (*RepoAppDetailsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_dd8723cfcc820480, []int{17} + return fileDescriptor_dd8723cfcc820480, []int{19} } func (m *RepoAppDetailsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1380,7 +1507,7 @@ func (m *RepoServerRevisionMetadataRequest) Reset() { *m = RepoServerRev func (m *RepoServerRevisionMetadataRequest) String() string { return proto.CompactTextString(m) } func (*RepoServerRevisionMetadataRequest) ProtoMessage() {} func (*RepoServerRevisionMetadataRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_dd8723cfcc820480, []int{18} + return fileDescriptor_dd8723cfcc820480, []int{20} } func (m *RepoServerRevisionMetadataRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1446,7 +1573,7 @@ func (m *RepoServerRevisionChartDetailsRequest) Reset() { *m = RepoServe func (m *RepoServerRevisionChartDetailsRequest) String() string { return proto.CompactTextString(m) } func (*RepoServerRevisionChartDetailsRequest) ProtoMessage() {} func (*RepoServerRevisionChartDetailsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_dd8723cfcc820480, []int{19} + return fileDescriptor_dd8723cfcc820480, []int{21} } func (m *RepoServerRevisionChartDetailsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1515,7 +1642,7 @@ func (m *HelmAppSpec) Reset() { *m = HelmAppSpec{} } func (m *HelmAppSpec) String() string { return proto.CompactTextString(m) } func (*HelmAppSpec) ProtoMessage() {} func (*HelmAppSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_dd8723cfcc820480, []int{20} + return fileDescriptor_dd8723cfcc820480, []int{22} } func (m *HelmAppSpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1592,7 +1719,7 @@ func (m *KustomizeAppSpec) Reset() { *m = KustomizeAppSpec{} } func (m *KustomizeAppSpec) String() string { return proto.CompactTextString(m) } func (*KustomizeAppSpec) ProtoMessage() {} func (*KustomizeAppSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_dd8723cfcc820480, []int{21} + return fileDescriptor_dd8723cfcc820480, []int{23} } func (m *KustomizeAppSpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1639,7 +1766,7 @@ func (m *DirectoryAppSpec) Reset() { *m = DirectoryAppSpec{} } func (m *DirectoryAppSpec) String() string { return proto.CompactTextString(m) } func (*DirectoryAppSpec) ProtoMessage() {} func (*DirectoryAppSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_dd8723cfcc820480, []int{22} + return fileDescriptor_dd8723cfcc820480, []int{24} } func (m *DirectoryAppSpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1699,7 +1826,7 @@ func (m *ParameterAnnouncement) Reset() { *m = ParameterAnnouncement{} } func (m *ParameterAnnouncement) String() string { return proto.CompactTextString(m) } func (*ParameterAnnouncement) ProtoMessage() {} func (*ParameterAnnouncement) Descriptor() ([]byte, []int) { - return fileDescriptor_dd8723cfcc820480, []int{23} + return fileDescriptor_dd8723cfcc820480, []int{25} } func (m *ParameterAnnouncement) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1803,7 +1930,7 @@ func (m *PluginAppSpec) Reset() { *m = PluginAppSpec{} } func (m *PluginAppSpec) String() string { return proto.CompactTextString(m) } func (*PluginAppSpec) ProtoMessage() {} func (*PluginAppSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_dd8723cfcc820480, []int{24} + return fileDescriptor_dd8723cfcc820480, []int{26} } func (m *PluginAppSpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1850,7 +1977,7 @@ func (m *HelmChartsRequest) Reset() { *m = HelmChartsRequest{} } func (m *HelmChartsRequest) String() string { return proto.CompactTextString(m) } func (*HelmChartsRequest) ProtoMessage() {} func (*HelmChartsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_dd8723cfcc820480, []int{25} + return fileDescriptor_dd8723cfcc820480, []int{27} } func (m *HelmChartsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1898,7 +2025,7 @@ func (m *HelmChart) Reset() { *m = HelmChart{} } func (m *HelmChart) String() string { return proto.CompactTextString(m) } func (*HelmChart) ProtoMessage() {} func (*HelmChart) Descriptor() ([]byte, []int) { - return fileDescriptor_dd8723cfcc820480, []int{26} + return fileDescriptor_dd8723cfcc820480, []int{28} } func (m *HelmChart) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1952,7 +2079,7 @@ func (m *HelmChartsResponse) Reset() { *m = HelmChartsResponse{} } func (m *HelmChartsResponse) String() string { return proto.CompactTextString(m) } func (*HelmChartsResponse) ProtoMessage() {} func (*HelmChartsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_dd8723cfcc820480, []int{27} + return fileDescriptor_dd8723cfcc820480, []int{29} } func (m *HelmChartsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2003,7 +2130,7 @@ func (m *GitFilesRequest) Reset() { *m = GitFilesRequest{} } func (m *GitFilesRequest) String() string { return proto.CompactTextString(m) } func (*GitFilesRequest) ProtoMessage() {} func (*GitFilesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_dd8723cfcc820480, []int{28} + return fileDescriptor_dd8723cfcc820480, []int{30} } func (m *GitFilesRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2079,7 +2206,7 @@ func (m *GitFilesResponse) Reset() { *m = GitFilesResponse{} } func (m *GitFilesResponse) String() string { return proto.CompactTextString(m) } func (*GitFilesResponse) ProtoMessage() {} func (*GitFilesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_dd8723cfcc820480, []int{29} + return fileDescriptor_dd8723cfcc820480, []int{31} } func (m *GitFilesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2128,7 +2255,7 @@ func (m *GitDirectoriesRequest) Reset() { *m = GitDirectoriesRequest{} } func (m *GitDirectoriesRequest) String() string { return proto.CompactTextString(m) } func (*GitDirectoriesRequest) ProtoMessage() {} func (*GitDirectoriesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_dd8723cfcc820480, []int{30} + return fileDescriptor_dd8723cfcc820480, []int{32} } func (m *GitDirectoriesRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2190,7 +2317,7 @@ func (m *GitDirectoriesResponse) Reset() { *m = GitDirectoriesResponse{} func (m *GitDirectoriesResponse) String() string { return proto.CompactTextString(m) } func (*GitDirectoriesResponse) ProtoMessage() {} func (*GitDirectoriesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_dd8723cfcc820480, []int{31} + return fileDescriptor_dd8723cfcc820480, []int{33} } func (m *GitDirectoriesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2227,6 +2354,7 @@ func (m *GitDirectoriesResponse) GetPaths() []string { } func init() { + proto.RegisterType((*VersionConfig)(nil), "repository.VersionConfig") proto.RegisterType((*ManifestRequest)(nil), "repository.ManifestRequest") proto.RegisterMapType((map[string]bool)(nil), "repository.ManifestRequest.EnabledSourceTypesEntry") proto.RegisterMapType((map[string]*v1alpha1.RefTarget)(nil), "repository.ManifestRequest.RefSourcesEntry") @@ -2238,6 +2366,7 @@ func init() { proto.RegisterType((*ResolveRevisionRequest)(nil), "repository.ResolveRevisionRequest") proto.RegisterType((*ResolveRevisionResponse)(nil), "repository.ResolveRevisionResponse") proto.RegisterType((*Manifest)(nil), "repository.Manifest") + proto.RegisterType((*ApplicationVersions)(nil), "repository.ApplicationVersions") proto.RegisterType((*ManifestResponse)(nil), "repository.ManifestResponse") proto.RegisterType((*ListRefsRequest)(nil), "repository.ListRefsRequest") proto.RegisterType((*Refs)(nil), "repository.Refs") @@ -2274,147 +2403,153 @@ func init() { } var fileDescriptor_dd8723cfcc820480 = []byte{ - // 2226 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x1a, 0xdb, 0x6e, 0x1c, 0x49, - 0xd5, 0x33, 0xbe, 0xcd, 0x1c, 0x27, 0xf1, 0xb8, 0xe2, 0x38, 0x9d, 0xd9, 0x6c, 0xe4, 0x6d, 0x36, - 0x51, 0x48, 0x76, 0x7b, 0x64, 0x87, 0xdd, 0xac, 0xb2, 0xcb, 0x22, 0x6f, 0x2e, 0x76, 0x2e, 0x4e, - 0x42, 0x27, 0x80, 0x16, 0x02, 0xa8, 0xa6, 0xa7, 0xdc, 0x53, 0x3b, 0x7d, 0xa9, 0x74, 0x57, 0x4f, - 0xe4, 0x48, 0x48, 0x20, 0x10, 0x12, 0x3f, 0x80, 0x10, 0xff, 0x81, 0x78, 0x42, 0x3c, 0x21, 0x78, - 0x5c, 0xf1, 0x03, 0xa0, 0x7c, 0x02, 0x5f, 0x80, 0xea, 0xd2, 0xd7, 0x69, 0x3b, 0x59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 0xdf, 0xad, 0x70, 0xb5, - 0x27, 0xe4, 0x08, 0x27, 0x19, 0x25, 0x7d, 0xf2, 0x43, 0x12, 0x49, 0xef, 0x3a, 0xa1, 0x9c, 0xa4, - 0x00, 0x52, 0x6e, 0x44, 0xf5, 0x2e, 0x36, 0x96, 0xd7, 0x67, 0x95, 0x1b, 0x65, 0x20, 0x74, 0x11, - 0x96, 0xc7, 0x24, 0xa2, 0x7b, 0xfb, 0x8f, 0xa8, 0x1b, 0x60, 0x9e, 0x44, 0xc4, 0xe8, 0x48, 0x57, - 0xac, 0x82, 0x91, 0x0f, 0xc7, 0x87, 0xc4, 0xf3, 0x85, 0xc9, 0xaf, 0x47, 0x64, 0x10, 0x1b, 0x2b, - 0xd2, 0xbe, 0xdb, 0xd3, 0xdf, 0xa0, 0x64, 0x67, 0x97, 0xb9, 0x0b, 0xc5, 0x82, 0xd0, 0xd6, 0x91, - 0xa2, 0x62, 0x04, 0x29, 0xc5, 0x2a, 0x60, 0x74, 0x01, 0x4e, 0xf0, 0x08, 0x3b, 0x23, 0x1a, 0xb8, - 0xbb, 0x84, 0x0f, 0xc3, 0x81, 0x71, 0x52, 0x5a, 0xa2, 0x02, 0x45, 0x0e, 0x20, 0x12, 0xe0, 0xbe, - 0x47, 0x06, 0xca, 0x17, 0x1f, 0xef, 0x33, 0x12, 0x1b, 0xab, 0xf2, 0x14, 0x57, 0xac, 0x42, 0xee, - 0xab, 0x24, 0x08, 0xeb, 0xe6, 0x04, 0xd5, 0xcd, 0x80, 0x47, 0xfb, 0x76, 0x0d, 0x3b, 0x34, 0x82, - 0x25, 0x71, 0x8e, 0xd4, 0x15, 0x4e, 0x49, 0x57, 0xb8, 0x3d, 0x9d, 0x8d, 0x76, 0x72, 0x86, 0x76, - 0x91, 0x3b, 0xb2, 0x00, 0x0d, 0x71, 0xbc, 0x9b, 0x78, 0x9c, 0x32, 0x8f, 0x28, 0x35, 0x62, 0x63, - 0x4d, 0x9a, 0xa9, 0xe6, 0x0b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 0x4c, 0x28, 0x82, 0x36, 0x60, 0x0e, 0x33, 0x96, 0x06, - 0x52, 0xa9, 0x80, 0x69, 0x14, 0xf1, 0xbf, 0x56, 0x49, 0xa2, 0x76, 0xaf, 0x42, 0x3b, 0x03, 0xbd, - 0x4c, 0x6c, 0xbb, 0x28, 0x76, 0x1d, 0x40, 0x35, 0xe8, 0xb7, 0x83, 0xbd, 0x50, 0x5c, 0xa9, 0x08, - 0x41, 0x4d, 0x2a, 0xd7, 0xe6, 0xb5, 0x14, 0x43, 0xea, 0xf6, 0x1e, 0xcc, 0x53, 0x4e, 0xfc, 0x54, - 0xb9, 0xb5, 0xa2, 0x72, 0x39, 0x23, 0x5b, 0x21, 0x99, 0x7f, 0x6f, 0xc1, 0x19, 0x71, 0x63, 0x8f, - 0x64, 0xf0, 0x6e, 0x31, 0x76, 0x83, 0x70, 0x4c, 0xbd, 0xf8, 0xfb, 0x09, 0x89, 0xf6, 0xdf, 0xb0, - 0x63, 0xb8, 0xb0, 0xa0, 0x62, 0x5f, 0x97, 0x87, 0xd7, 0x3e, 0xab, 0x69, 0xf6, 0xf9, 0x80, 0x36, - 0xfb, 0x66, 0x06, 0xb4, 0xba, 0x81, 0x69, 0xee, 0x88, 0x06, 0xa6, 0x83, 0x67, 0xe6, 0xc2, 0x24, - 0xbe, 0x50, 0x9e, 0xc4, 0x6b, 0xe6, 0x90, 0xc5, 0x57, 0x9d, 0x43, 0x5a, 0xb5, 0x73, 0x88, 0x5f, - 0x1b, 0xc7, 0x6d, 0x69, 0xee, 0xef, 0x16, 0x3d, 0xf0, 0x40, 0x5f, 0x9b, 0x66, 0x22, 0x81, 0x37, - 0x3a, 0x91, 0xfc, 0xa0, 0x34, 0x61, 0xa8, 0x19, 0xff, 0x83, 0x57, 0x3b, 0xd3, 0x37, 0x69, 0xd6, - 0xf8, 0x8d, 0x6c, 0x31, 0x59, 0x98, 0xdb, 0x20, 0x6b, 0x3e, 0x44, 0x1d, 0x12, 0x05, 0x5f, 0x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 0x8a, 0xfd, 0x2a, 0xda, 0x38, 0x5c, 0xb9, 0x9a, 0xde, 0xb6, - 0x7b, 0x67, 0xca, 0x5f, 0x5a, 0x0b, 0x2c, 0xcd, 0x19, 0xf4, 0x50, 0xde, 0x49, 0x5e, 0x9e, 0xd0, - 0xdb, 0xb5, 0x75, 0x28, 0x93, 0x7e, 0xee, 0xa0, 0xcf, 0xd9, 0x3d, 0xdc, 0x81, 0xa5, 0x6d, 0xc2, - 0xd3, 0xac, 0x5b, 0xf6, 0xb4, 0x4a, 0x09, 0x2b, 0x87, 0x6a, 0x35, 0x51, 0x4b, 0x8f, 0x59, 0x51, - 0xbc, 0x0a, 0x79, 0xaa, 0x1c, 0xab, 0xb5, 0x29, 0xb8, 0xec, 0x31, 0xf5, 0x69, 0xce, 0x9c, 0xf9, - 0x6c, 0xeb, 0x1f, 0x2f, 0xce, 0x35, 0xbe, 0x7c, 0x71, 0xae, 0xf1, 0xef, 0x17, 0xe7, 0x1a, 0x3f, - 0xbe, 0xf2, 0x92, 0x3f, 0x8f, 0x28, 0xfc, 0x2d, 0x07, 0x66, 0xd4, 0xf1, 0x28, 0x09, 0x78, 0x7f, - 0x41, 0x3a, 0xff, 0x95, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0x94, 0x5c, 0x9f, 0x7b, 0xea, 0x21, - 0x00, 0x00, + // 2326 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x1a, 0xdb, 0x6e, 0x1c, 0x49, + 0xd5, 0x33, 0xe3, 0xcb, 0xcc, 0x71, 0x1c, 0x8f, 0x2b, 0x8e, 0xd3, 0x99, 0xdd, 0x35, 0xde, 0x66, + 0x13, 0x85, 0x64, 0xb7, 0x47, 0x76, 0xc8, 0x66, 0x95, 0x5d, 0x76, 0xe5, 0xcd, 0xc5, 0xce, 0xc5, + 0x89, 0xb7, 0x13, 0x40, 0x0b, 0x01, 0x54, 0xd3, 0x53, 0x9e, 0xa9, 0x4c, 0x5f, 0x2a, 0x7d, 0x99, + 0xc8, 0x91, 0x90, 0x40, 0x20, 0x24, 0x7e, 0x80, 0x07, 0xfe, 0x03, 0xf1, 0x84, 0x78, 0x5a, 0xc1, + 0xe3, 0x8a, 0x37, 0x9e, 0x40, 0xf9, 0x12, 0x54, 0x97, 0xee, 0xae, 0xee, 0x69, 0x3b, 0x59, 0x9c, + 0x78, 0x05, 0x2f, 0x49, 0xd5, 0xe9, 0x73, 0xab, 0x53, 0xa7, 0xce, 0x6d, 0x0c, 0xe7, 0x43, 0xc2, + 0x82, 0x88, 0x84, 0x63, 0x12, 0x76, 0xc5, 0x92, 0xc6, 0x41, 0xb8, 0xaf, 0x2d, 0x2d, 0x16, 0x06, + 0x71, 0x80, 0x20, 0x87, 0x74, 0xcc, 0xd1, 0x47, 0x91, 0x45, 0x83, 0x2e, 0x66, 0xb4, 0xeb, 0x04, + 0x21, 0xe9, 0x8e, 0xd7, 0xbb, 0x03, 0xe2, 0x93, 0x10, 0xc7, 0xa4, 0x2f, 0xf1, 0x3b, 0xdf, 0xcf, + 0x71, 0x3c, 0xec, 0x0c, 0xa9, 0x4f, 0xc2, 0xfd, 0x2e, 0x1b, 0x0d, 0x38, 0x20, 0xea, 0x7a, 0x24, + 0xc6, 0x55, 0x54, 0xf7, 0x06, 0x34, 0x1e, 0x26, 0x3d, 0xcb, 0x09, 0xbc, 0x2e, 0x0e, 0x07, 0x01, + 0x0b, 0x83, 0x27, 0x62, 0xf1, 0x81, 0xd3, 0xef, 0x8e, 0x37, 0x72, 0x06, 0x98, 0x31, 0x97, 0x3a, + 0x38, 0xa6, 0x81, 0xdf, 0x1d, 0xaf, 0x63, 0x97, 0x0d, 0xf1, 0x24, 0xb7, 0xb7, 0x06, 0x41, 0x30, + 0x70, 0x49, 0x57, 0xec, 0x7a, 0xc9, 0x5e, 0x97, 0x78, 0x2c, 0x56, 0x07, 0x32, 0x23, 0x58, 0xf8,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, 0x4f, 0x2b, 0xa5, 0xb0, 0xe2, 0x53, 0x2d, 0x07, + 0x6a, 0xe1, 0x31, 0x4b, 0x92, 0x97, 0x16, 0xa7, 0x8a, 0x6f, 0xb5, 0x32, 0x04, 0x17, 0x3d, 0xa6, + 0x3a, 0xcc, 0x99, 0x53, 0x9f, 0x6f, 0xfe, 0xfd, 0xc5, 0x6a, 0xed, 0xeb, 0x17, 0xab, 0xb5, 0x7f, + 0xbf, 0x58, 0xad, 0xfd, 0xe4, 0xf2, 0x4b, 0xfe, 0xbc, 0x44, 0xfb, 0x5b, 0x18, 0xcc, 0xa8, 0xe3, + 0x52, 0xe2, 0xc7, 0xbd, 0x59, 0xe1, 0xfc, 0x97, 0xff, 0x13, 0x00, 0x00, 0xff, 0xff, 0x36, 0x12, + 0x2f, 0x5d, 0x2a, 0x23, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -2990,6 +3125,54 @@ var _RepoServerService_serviceDesc = grpc.ServiceDesc{ Metadata: "reposerver/repository/repository.proto", } +func (m *VersionConfig) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *VersionConfig) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *VersionConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.ResourceName) > 0 { + i -= len(m.ResourceName) + copy(dAtA[i:], m.ResourceName) + i = encodeVarintRepository(dAtA, i, uint64(len(m.ResourceName))) + i-- + dAtA[i] = 0x1a + } + if len(m.JsonPath) > 0 { + i -= len(m.JsonPath) + copy(dAtA[i:], m.JsonPath) + i = encodeVarintRepository(dAtA, i, uint64(len(m.JsonPath))) + i-- + dAtA[i] = 0x12 + } + if len(m.ProductLabel) > 0 { + i -= len(m.ProductLabel) + copy(dAtA[i:], m.ProductLabel) + i = encodeVarintRepository(dAtA, i, uint64(len(m.ProductLabel))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + func (m *ManifestRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -3014,6 +3197,20 @@ func (m *ManifestRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i -= len(m.XXX_unrecognized) copy(dAtA[i:], m.XXX_unrecognized) } + if m.VersionConfig != nil { + { + size, err := m.VersionConfig.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRepository(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xc2 + } if len(m.RefSources) > 0 { for k := range m.RefSources { v := m.RefSources[k] @@ -3662,6 +3859,40 @@ func (m *Manifest) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *ApplicationVersions) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ApplicationVersions) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ApplicationVersions) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.AppVersion) > 0 { + i -= len(m.AppVersion) + copy(dAtA[i:], m.AppVersion) + i = encodeVarintRepository(dAtA, i, uint64(len(m.AppVersion))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + func (m *ManifestResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -3686,6 +3917,18 @@ func (m *ManifestResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i -= len(m.XXX_unrecognized) copy(dAtA[i:], m.XXX_unrecognized) } + if m.ApplicationVersions != nil { + { + size, err := m.ApplicationVersions.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRepository(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x5a + } if m.CommitDate != nil { { size, err := m.CommitDate.MarshalToSizedBuffer(dAtA[:i]) @@ -5035,6 +5278,30 @@ func encodeVarintRepository(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } +func (m *VersionConfig) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ProductLabel) + if l > 0 { + n += 1 + l + sovRepository(uint64(l)) + } + l = len(m.JsonPath) + if l > 0 { + n += 1 + l + sovRepository(uint64(l)) + } + l = len(m.ResourceName) + if l > 0 { + n += 1 + l + sovRepository(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + func (m *ManifestRequest) Size() (n int) { if m == nil { return 0 @@ -5138,6 +5405,10 @@ func (m *ManifestRequest) Size() (n int) { n += mapEntrySize + 2 + sovRepository(uint64(mapEntrySize)) } } + if m.VersionConfig != nil { + l = m.VersionConfig.Size() + n += 2 + l + sovRepository(uint64(l)) + } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } @@ -5332,17 +5603,33 @@ func (m *Manifest) Size() (n int) { return n } -func (m *ManifestResponse) Size() (n int) { +func (m *ApplicationVersions) Size() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.Manifests) > 0 { - for _, e := range m.Manifests { - l = e.Size() - n += 1 + l + sovRepository(uint64(l)) - } + l = len(m.AppVersion) + if l > 0 { + n += 1 + l + sovRepository(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *ManifestResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Manifests) > 0 { + for _, e := range m.Manifests { + l = e.Size() + n += 1 + l + sovRepository(uint64(l)) + } } l = len(m.Namespace) if l > 0 { @@ -5376,6 +5663,10 @@ func (m *ManifestResponse) Size() (n int) { l = m.CommitDate.Size() n += 1 + l + sovRepository(uint64(l)) } + if m.ApplicationVersions != nil { + l = m.ApplicationVersions.Size() + n += 1 + l + sovRepository(uint64(l)) + } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } @@ -5948,6 +6239,153 @@ func sovRepository(x uint64) (n int) { func sozRepository(x uint64) (n int) { return sovRepository(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } +func (m *VersionConfig) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRepository + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: VersionConfig: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: VersionConfig: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProductLabel", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRepository + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRepository + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRepository + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ProductLabel = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field JsonPath", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRepository + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRepository + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRepository + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.JsonPath = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRepository + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRepository + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRepository + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ResourceName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRepository(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthRepository + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *ManifestRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -6771,6 +7209,42 @@ func (m *ManifestRequest) Unmarshal(dAtA []byte) error { } m.RefSources[mapkey] = mapvalue iNdEx = postIndex + case 24: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VersionConfig", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRepository + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRepository + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRepository + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.VersionConfig == nil { + m.VersionConfig = &VersionConfig{} + } + if err := m.VersionConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipRepository(dAtA[iNdEx:]) @@ -7730,6 +8204,89 @@ func (m *Manifest) Unmarshal(dAtA []byte) error { } return nil } +func (m *ApplicationVersions) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRepository + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ApplicationVersions: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ApplicationVersions: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AppVersion", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRepository + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRepository + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRepository + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AppVersion = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRepository(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthRepository + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *ManifestResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -8053,6 +8610,42 @@ func (m *ManifestResponse) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ApplicationVersions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRepository + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRepository + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRepository + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ApplicationVersions == nil { + m.ApplicationVersions = &ApplicationVersions{} + } + if err := m.ApplicationVersions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipRepository(dAtA[iNdEx:]) diff --git a/reposerver/repository/app_version.go b/reposerver/repository/app_version.go new file mode 100644 index 0000000000000..2d4988bdbb522 --- /dev/null +++ b/reposerver/repository/app_version.go @@ -0,0 +1,72 @@ +package repository + +import ( + "fmt" + "os" + "strings" + + "gopkg.in/yaml.v2" + "k8s.io/client-go/util/jsonpath" +) + +func getValueFromYAMLByJSONPath(appPath, jsonPathExpression string) (*string, error) { + // Чтение файла YAML + content, err := os.ReadFile(appPath) + if err != nil { + return nil, err + } + + // Разбор YAML-файла + var obj interface{} + if err := yaml.Unmarshal(content, &obj); err != nil { + return nil, err + } + + // Преобразование YAML в Map[interface{}]interface{} для работы jsonpath + jsonObj, err := convertToJSONCompatible(obj) + if err != nil { + return nil, err + } + + // Использование jsonpath для получения значения + jp := jsonpath.New("jsonpathParser") + jp.AllowMissingKeys(true) + if err := jp.Parse(jsonPathExpression); err != nil { + return nil, err + } + + var buf strings.Builder + err = jp.Execute(&buf, jsonObj) + if err != nil { + return nil, err + } + + appVersion := buf.String() + return &appVersion, nil +} + +func convertToJSONCompatible(i interface{}) (interface{}, error) { + data, err := yaml.Marshal(i) + if err != nil { + return nil, err + } + var obj interface{} + if err := yaml.Unmarshal(data, &obj); err != nil { + return nil, err + } + return obj, nil +} + +func getAppVersion(appPath string, resourceName string, jsonPathExpression string) (*string, error) { + // appPath = "example.yaml" + // jsonPathExpression = "{.some.json.path}" + + value, err := getValueFromYAMLByJSONPath(appPath+"/"+resourceName, jsonPathExpression) + if err != nil { + return nil, err + } + + fmt.Printf("Value: %v\n", *value) + + return value, nil +} diff --git a/reposerver/repository/repository.go b/reposerver/repository/repository.go index f392c13276152..3c249207fcebe 100644 --- a/reposerver/repository/repository.go +++ b/reposerver/repository/repository.go @@ -1416,6 +1416,15 @@ func GenerateManifests(ctx context.Context, appPath, repoRoot, revision string, SourceType: string(appSourceType), } + appVersion, err := getAppVersion(appPath, q.VersionConfig.ResourceName, q.VersionConfig.JsonPath) + if err != nil { + log.Errorf("failed to retrieve application version, app name: %q: %s", q.AppName, err.Error()) + } else { + res.ApplicationVersions = &apiclient.ApplicationVersions{ + AppVersion: *appVersion, + } + } + if gitClient != nil { m, err := gitClient.RevisionMetadata(revision) if err != nil { diff --git a/reposerver/repository/repository.proto b/reposerver/repository/repository.proto index ca5dba518d666..4239ac2f45a05 100644 --- a/reposerver/repository/repository.proto +++ b/reposerver/repository/repository.proto @@ -8,6 +8,12 @@ import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1/generated.proto"; import "google/protobuf/empty.proto"; +message VersionConfig { + string productLabel = 1; + string jsonPath = 2; + string resourceName = 3; +} + // ManifestRequest is a query for manifest generation. message ManifestRequest { github.com.argoproj.argo_cd.v2.pkg.apis.application.v1alpha1.Repository repo = 1; @@ -34,6 +40,7 @@ message ManifestRequest { github.com.argoproj.argo_cd.v2.pkg.apis.application.v1alpha1.HelmOptions helmOptions = 21; bool hasMultipleSources = 22; map refSources = 23; + VersionConfig versionConfig = 24; } message ManifestRequestWithFiles { @@ -92,6 +99,11 @@ message Manifest { int32 line = 4; } +message ApplicationVersions { + // Application version presented by single value + string appVersion = 1; +} + message ManifestResponse { repeated Manifest manifests = 1; string namespace = 2; @@ -104,6 +116,7 @@ message ManifestResponse { string commitMessage = 8; string commitAuthor = 9; k8s.io.apimachinery.pkg.apis.meta.v1.Time commitDate = 10; + ApplicationVersions applicationVersions = 11; } message ListRefsRequest { diff --git a/server/application/application.go b/server/application/application.go index 92d5ca3fffbb2..8ae5231bec054 100644 --- a/server/application/application.go +++ b/server/application/application.go @@ -5,8 +5,6 @@ import ( "encoding/json" "errors" "fmt" - "github.com/argoproj/argo-cd/v2/pkg/apiclient/events" - "gopkg.in/yaml.v2" "math" "reflect" "sort" @@ -14,6 +12,9 @@ import ( "strings" "time" + "github.com/argoproj/argo-cd/v2/pkg/apiclient/events" + "gopkg.in/yaml.v2" + kubecache "github.com/argoproj/gitops-engine/pkg/cache" "github.com/argoproj/gitops-engine/pkg/diff" "github.com/argoproj/gitops-engine/pkg/sync/common" @@ -60,6 +61,7 @@ import ( "github.com/argoproj/argo-cd/v2/util/settings" applicationType "github.com/argoproj/argo-cd/v2/pkg/apis/application" + "github.com/argoproj/argo-cd/v2/pkg/version_config_manager" ) type AppResourceTreeFn func(ctx context.Context, app *appv1.Application) (*appv1.ApplicationTree, error) @@ -437,6 +439,26 @@ func (s *Server) queryRepoServer(ctx context.Context, a *appv1.Application, acti return action(client, repo, permittedHelmRepos, permittedHelmCredentials, helmOptions, kustomizeOptions, enabledSourceTypes) } +func getVersionConfig() *apiclient.VersionConfig { + versionConfigManager, err := version_config_manager.NewVersionConfigManager("ConfigMap", "some-product-cm") + if err != nil { + log.Fatalf("Failed to create VersionConfigManager: %v", err) + return nil + } + + versionConfig, err := versionConfigManager.ObtainConfig() + if err != nil { + log.Fatalf("Failed to obtain config: %v", err) + return nil + } + + return &apiclient.VersionConfig{ + ProductLabel: versionConfig.ProductLabel, + ResourceName: versionConfig.ResourceName, + JsonPath: versionConfig.JsonPath, + } +} + // GetManifests returns application manifests func (s *Server) GetManifests(ctx context.Context, q *application.ApplicationManifestQuery) (*apiclient.ManifestResponse, error) { if q.Name == nil || *q.Name == "" { @@ -495,6 +517,7 @@ func (s *Server) GetManifests(ctx context.Context, q *application.ApplicationMan HelmOptions: helmOptions, TrackingMethod: string(argoutil.GetTrackingMethod(s.settingsMgr)), EnabledSourceTypes: enableGenerateManifests, + VersionConfig: getVersionConfig(), }) if err != nil { return fmt.Errorf("error generating manifests: %w", err)