Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package helmify for openSUSE:Factory checked in at 2023-07-07 15:47:46 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/helmify (Old) and /work/SRC/openSUSE:Factory/.helmify.new.23466 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "helmify" Fri Jul 7 15:47:46 2023 rev:12 rq:1097430 version:0.4.5 Changes: -------- --- /work/SRC/openSUSE:Factory/helmify/helmify.changes 2023-06-26 18:16:23.774550963 +0200 +++ /work/SRC/openSUSE:Factory/.helmify.new.23466/helmify.changes 2023-07-07 15:49:02.392810560 +0200 @@ -1,0 +2,8 @@ +Thu Jul 06 16:08:50 UTC 2023 - [email protected] + +- Update to version 0.4.5: + * fix goreleaser + * added cert-manager flag to Readme + * added cert-manager-version flag + +------------------------------------------------------------------- Old: ---- helmify-0.4.4.obscpio New: ---- helmify-0.4.5.obscpio ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ helmify.spec ++++++ --- /var/tmp/diff_new_pack.HE0cHA/_old 2023-07-07 15:49:03.948819829 +0200 +++ /var/tmp/diff_new_pack.HE0cHA/_new 2023-07-07 15:49:03.952819853 +0200 @@ -19,7 +19,7 @@ %define __arch_install_post export NO_BRP_STRIP_DEBUG=true Name: helmify -Version: 0.4.4 +Version: 0.4.5 Release: 0 Summary: Creates Helm chart from Kubernetes yaml License: MIT ++++++ _service ++++++ --- /var/tmp/diff_new_pack.HE0cHA/_old 2023-07-07 15:49:03.996820116 +0200 +++ /var/tmp/diff_new_pack.HE0cHA/_new 2023-07-07 15:49:04.000820139 +0200 @@ -3,7 +3,7 @@ <param name="url">https://github.com/arttor/helmify/</param> <param name="scm">git</param> <param name="exclude">.git</param> - <param name="revision">v0.4.4</param> + <param name="revision">v0.4.5</param> <param name="versionformat">@PARENT_TAG@</param> <param name="changesgenerate">enable</param> <param name="versionrewrite-pattern">v(.*)</param> ++++++ _servicedata ++++++ --- /var/tmp/diff_new_pack.HE0cHA/_old 2023-07-07 15:49:04.028820306 +0200 +++ /var/tmp/diff_new_pack.HE0cHA/_new 2023-07-07 15:49:04.032820329 +0200 @@ -1,6 +1,6 @@ <servicedata> <service name="tar_scm"> <param name="url">https://github.com/arttor/helmify/</param> - <param name="changesrevision">de2e663fe7146cbb41fb2d80a610805368d5ba00</param></service></servicedata> + <param name="changesrevision">e6af99e5738ee4dbe42a4cc4c1b9fcd1d3734a88</param></service></servicedata> (No newline at EOF) ++++++ helmify-0.4.4.obscpio -> helmify-0.4.5.obscpio ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/helmify-0.4.4/.goreleaser.yml new/helmify-0.4.5/.goreleaser.yml --- old/helmify-0.4.4/.goreleaser.yml 2023-06-24 12:51:29.000000000 +0200 +++ new/helmify-0.4.5/.goreleaser.yml 2023-07-06 17:30:44.000000000 +0200 @@ -21,12 +21,12 @@ goarch: arm64 archives: - - replacements: - darwin: macOS - linux: Linux - windows: Windows - 386: 32-bit - amd64: 64-bit + name_template: >- + {{ .ProjectName }}_ + {{- title .Os }}_ + {{- if eq .Arch "amd64" }}x86_64 + {{- else if eq .Arch "386" }}i386 + {{- else }}{{ .Arch }}{{ end }} format_overrides: - goos: windows format: zip diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/helmify-0.4.4/README.md new/helmify-0.4.5/README.md --- old/helmify-0.4.4/README.md 2023-06-24 12:51:29.000000000 +0200 +++ new/helmify-0.4.5/README.md 2023-07-06 17:30:44.000000000 +0200 @@ -108,6 +108,7 @@ | -crd-dir | Place crds in their own folder per Helm 3 [docs](https://helm.sh/docs/chart_best_practices/custom_resource_definitions/#method-1-let-helm-do-it-for-you). Caveat: CRDs templating is not supported by Helm. | `helmify -crd-dir` | | -image-pull-secrets | Allows the user to use existing secrets as imagePullSecrets | `helmify -image-pull-secrets` | | -cert-manager-as-subchart | Allows the user to install cert-manager as a subchart | `helmify -cert-manager-as-subchart` | +| -cert-manager-version | Allows the user to specify cert-manager subchart version. Only useful with cert-manager-as-subchart. (default "v1.12.2") | `helmify -cert-manager-as-subchart` | ## Status Supported k8s resources: - Deployment, DaemonSet, StatefulSet diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/helmify-0.4.4/cmd/helmify/flags.go new/helmify-0.4.5/cmd/helmify/flags.go --- old/helmify-0.4.4/cmd/helmify/flags.go 2023-06-24 12:51:29.000000000 +0200 +++ new/helmify-0.4.5/cmd/helmify/flags.go 2023-07-06 17:30:44.000000000 +0200 @@ -64,6 +64,7 @@ flag.BoolVar(&result.ImagePullSecrets, "image-pull-secrets", false, "Allows the user to use existing secrets as imagePullSecrets in values.yaml") flag.BoolVar(&result.GenerateDefaults, "generate-defaults", false, "Allows the user to add empty placeholders for tipical customization options in values.yaml. Currently covers: topology constraints, node selectors, tolerances") flag.BoolVar(&result.CertManagerAsSubchart, "cert-manager-as-subchart", false, "Allows the user to add cert-manager as a subchart") + flag.StringVar(&result.CertManagerVersion, "cert-manager-version", "v1.12.2", "Allows the user to specify cert-manager subchart version. Only useful with cert-manager-as-subchart.") flag.BoolVar(&result.FilesRecursively, "r", false, "Scan dirs from -f option recursively") flag.Var(&files, "f", "File or directory containing k8s manifests") diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/helmify-0.4.4/pkg/app/context.go new/helmify-0.4.5/pkg/app/context.go --- old/helmify-0.4.4/pkg/app/context.go 2023-06-24 12:51:29.000000000 +0200 +++ new/helmify-0.4.5/pkg/app/context.go 2023-07-06 17:30:44.000000000 +0200 @@ -75,7 +75,7 @@ default: } } - return c.output.Create(c.config.ChartDir, c.config.ChartName, c.config.Crd, c.config.CertManagerAsSubchart, templates, filenames) + return c.output.Create(c.config.ChartDir, c.config.ChartName, c.config.Crd, c.config.CertManagerAsSubchart, c.config.CertManagerVersion , templates, filenames) } func (c *appContext) process(obj *unstructured.Unstructured) (helmify.Template, error) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/helmify-0.4.4/pkg/config/config.go new/helmify-0.4.5/pkg/config/config.go --- old/helmify-0.4.4/pkg/config/config.go 2023-06-24 12:51:29.000000000 +0200 +++ new/helmify-0.4.5/pkg/config/config.go 2023-07-06 17:30:44.000000000 +0200 @@ -28,6 +28,8 @@ GenerateDefaults bool // CertManagerAsSubchart enables the generation of a subchart for cert-manager CertManagerAsSubchart bool + // CertManagerVersion sets cert-manager version in dependency + CertManagerVersion string // Files - directories or files with k8s manifests Files []string // FilesRecursively read Files recursively diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/helmify-0.4.4/pkg/helm/chart.go new/helmify-0.4.5/pkg/helm/chart.go --- old/helmify-0.4.4/pkg/helm/chart.go 2023-06-24 12:51:29.000000000 +0200 +++ new/helmify-0.4.5/pkg/helm/chart.go 2023-07-06 17:30:44.000000000 +0200 @@ -31,8 +31,8 @@ // âââ _helpers.tp # Helm default template partials // // Overwrites existing values.yaml and templates in templates dir on every run. -func (o output) Create(chartDir, chartName string, crd bool, certManagerAsSubchart bool, templates []helmify.Template, filenames []string) error { - err := initChartDir(chartDir, chartName, crd, certManagerAsSubchart) +func (o output) Create(chartDir, chartName string, crd bool, certManagerAsSubchart bool, certManagerVersion string, templates []helmify.Template, filenames []string) error { + err := initChartDir(chartDir, chartName, crd, certManagerAsSubchart, certManagerVersion) if err != nil { return err } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/helmify-0.4.4/pkg/helm/init.go new/helmify-0.4.5/pkg/helm/init.go --- old/helmify-0.4.4/pkg/helm/init.go 2023-06-24 12:51:29.000000000 +0200 +++ new/helmify-0.4.5/pkg/helm/init.go 2023-07-06 17:30:44.000000000 +0200 @@ -129,7 +129,8 @@ - name: cert-manager repository: https://charts.jetstack.io condition: certmanager.enabled - alias: certmanager + alias: certmanager + version: %q ` var chartName = regexp.MustCompile("^[a-zA-Z0-9._-]+$") @@ -137,7 +138,7 @@ const maxChartNameLength = 250 // initChartDir - creates Helm chart structure in chartName directory if not presented. -func initChartDir(chartDir, chartName string, crd bool, certManagerAsSubchart bool) error { +func initChartDir(chartDir, chartName string, crd bool, certManagerAsSubchart bool, certManagerVersion string) error { if err := validateChartName(chartName); err != nil { return err } @@ -145,7 +146,7 @@ cDir := filepath.Join(chartDir, chartName) _, err := os.Stat(filepath.Join(cDir, "Chart.yaml")) if os.IsNotExist(err) { - return createCommonFiles(chartDir, chartName, crd, certManagerAsSubchart) + return createCommonFiles(chartDir, chartName, crd, certManagerAsSubchart, certManagerVersion) } logrus.Info("Skip creating Chart skeleton: Chart.yaml already exists.") return err @@ -161,7 +162,7 @@ return nil } -func createCommonFiles(chartDir, chartName string, crd bool, certManagerAsSubchart bool) error { +func createCommonFiles(chartDir, chartName string, crd bool, certManagerAsSubchart bool, certManagerVersion string) error { cDir := filepath.Join(chartDir, chartName) err := os.MkdirAll(filepath.Join(cDir, "templates"), 0750) if err != nil { @@ -183,16 +184,16 @@ logrus.WithField("file", file).Info("created") } } - createFile(chartYAML(chartName, certManagerAsSubchart), cDir, "Chart.yaml") + createFile(chartYAML(chartName, certManagerAsSubchart, certManagerVersion), cDir, "Chart.yaml") createFile([]byte(helmIgnore), cDir, ".helmignore") createFile(helpersYAML(chartName), cDir, "templates", "_helpers.tpl") return err } -func chartYAML(appName string, certManagerAsSubchart bool) []byte { +func chartYAML(appName string, certManagerAsSubchart bool, certManagerVersion string) []byte { chartFile := defaultChartfile if certManagerAsSubchart { - chartFile += certManagerDependencies + chartFile += fmt.Sprintf(certManagerDependencies, certManagerVersion) } return []byte(fmt.Sprintf(chartFile, appName)) } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/helmify-0.4.4/pkg/helmify/model.go new/helmify-0.4.5/pkg/helmify/model.go --- old/helmify-0.4.4/pkg/helmify/model.go 2023-06-24 12:51:29.000000000 +0200 +++ new/helmify-0.4.5/pkg/helmify/model.go 2023-07-06 17:30:44.000000000 +0200 @@ -28,7 +28,7 @@ // Output - converts Template into helm chart on disk. type Output interface { - Create(chartName, chartDir string, Crd bool, certManagerAsSubchart bool, templates []Template, filenames []string) error + Create(chartName, chartDir string, Crd bool, certManagerAsSubchart bool, certManagerVersion string, templates []Template, filenames []string) error } // AppMetadata handle common information about K8s objects in the chart. ++++++ helmify.obsinfo ++++++ --- /var/tmp/diff_new_pack.HE0cHA/_old 2023-07-07 15:49:04.192821283 +0200 +++ /var/tmp/diff_new_pack.HE0cHA/_new 2023-07-07 15:49:04.196821306 +0200 @@ -1,5 +1,5 @@ name: helmify -version: 0.4.4 -mtime: 1687603889 -commit: de2e663fe7146cbb41fb2d80a610805368d5ba00 +version: 0.4.5 +mtime: 1688657444 +commit: e6af99e5738ee4dbe42a4cc4c1b9fcd1d3734a88 ++++++ vendor.tar.gz ++++++ /work/SRC/openSUSE:Factory/helmify/vendor.tar.gz /work/SRC/openSUSE:Factory/.helmify.new.23466/vendor.tar.gz differ: char 5, line 1
