Skip to content

Create helper function to avoid code duplication for upgrade scenarios #72

@deepakpunia-suse

Description

@deepakpunia-suse

Create helper function to avoid code duplication for upgrade scenarios

	if loggingChart.IsAlreadyInstalled {
			e2e.Logf("Logging chart is already installed in project: %v", exampleAppProjectName)
			e2e.Logf("Retrieved logging chart version")
			LoggingVersionChartList, err := clientWithSession.Catalog.GetListChartVersions(charts.RancherLoggingName, catalog.RancherChartRepo)
			Expect(err).NotTo(HaveOccurred())
			e2e.Logf("Chart List: %v", LoggingVersionChartList)
			if len(LoggingVersionChartList) <= 1 {
				Skip("No newer versions found for the logging chart to perform the upgrade")
			}
			latestLoggingVersion := LoggingVersionChartList[0] 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions