Skip to content

Commit

Permalink
Delete unused fields
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalKalke committed Jun 10, 2024
1 parent 14e0ad2 commit 3f40c87
Showing 1 changed file with 5 additions and 41 deletions.
46 changes: 5 additions & 41 deletions internal/model/types.go
Original file line number Diff line number Diff line change
@@ -1,29 +1,20 @@
package model

type Module []struct {
Name string `json:"name,omitempty"`
//Documentation string `json:"documentation,omitempty"`
//Repository string `json:"repository,omitempty"`
//ManagedResources []string `json:"managedResources,omitempty"`
Manageable bool `json:"manageable,omitempty"`
//LatestGithubRelease LatestGithubRelease `json:"latestGithubRelease,omitempty"`
Versions []Versions `json:"versions,omitempty"`
Name string `json:"name,omitempty"`
Manageable bool `json:"manageable,omitempty"`
Versions []Versions `json:"versions,omitempty"`
}

type Versions struct {
Version string `json:"version,omitempty"`
Channels []string `json:"channels,omitempty"`
//Documentation string `json:"documentation,omitempty"`
//Repository string `json:"repository,omitempty"`
Version string `json:"version,omitempty"`
Channels []string `json:"channels,omitempty"`
ManagerPath string `json:"managerPath,omitempty"`
ManagerImage string `json:"managerImage,omitempty"`
Resources []Resources `json:"resources,omitempty"`
}

type Resources struct {
//APIVersion string `json:"apiVersion,omitempty"`
//Kind string `json:"kind,omitempty"`
//Metadata Metadata `json:"metadata,omitempty"`
Spec Spec `json:"spec,omitempty"`
}

Expand All @@ -42,32 +33,5 @@ type Names struct {
}

type ApiVersions struct {
//AdditionalPrinterColumns []AdditionalPrinterColumns `json:"additionalPrinterColumns,omitempty"`
Name string `json:"name,omitempty"`
//Schema Schema `json:"schema,omitempty"`
}

//type LatestGithubRelease struct {
// Repository string `json:"repository,omitempty"`
// DeploymentYaml string `json:"deploymentYaml,omitempty"`
// CrYaml string `json:"crYaml,omitempty"`
//}

//type Annotations struct {
// ControllerGenKubebuilderIoVersion string `json:"controller-gen.kubebuilder.io/version,omitempty"`
//}

//type Labels struct {
// AppKubernetesIoComponent string `json:"app.kubernetes.io/component,omitempty"`
// AppKubernetesIoInstance string `json:"app.kubernetes.io/instance,omitempty"`
// AppKubernetesIoName string `json:"app.kubernetes.io/name,omitempty"`
// AppKubernetesIoPartOf string `json:"app.kubernetes.io/part-of,omitempty"`
// AppKubernetesIoVersion string `json:"app.kubernetes.io/version,omitempty"`
// KymaProjectIoModule string `json:"kyma-project.io/module,omitempty"`
//}

//type Metadata struct {
// Annotations Annotations `json:"annotations,omitempty"`
// Labels Labels `json:"labels,omitempty"`
// Name string `json:"name,omitempty"`
//}

0 comments on commit 3f40c87

Please sign in to comment.