mirror of
				https://github.com/fluxcd/flux2.git
				synced 2025-10-31 08:17:19 +08:00 
			
		
		
		
	Fix create command always using imageRepositoryType
Signed-off-by: Matheus Pimenta <matheuscscp@gmail.com>
This commit is contained in:
		| @ -125,7 +125,7 @@ func (names apiType) upsertAndWait(object upsertWaitable, mutate func() error) e | |||||||
| 	logger.Generatef("generating %s", names.kind) | 	logger.Generatef("generating %s", names.kind) | ||||||
| 	logger.Actionf("applying %s", names.kind) | 	logger.Actionf("applying %s", names.kind) | ||||||
|  |  | ||||||
| 	namespacedName, err := imageRepositoryType.upsert(ctx, kubeClient, object, mutate) | 	namespacedName, err := names.upsert(ctx, kubeClient, object, mutate) | ||||||
| 	if err != nil { | 	if err != nil { | ||||||
| 		return err | 		return err | ||||||
| 	} | 	} | ||||||
|  | |||||||
| @ -1,5 +1,5 @@ | |||||||
| ✚ generating ImagePolicy | ✚ generating ImagePolicy | ||||||
| ► applying ImagePolicy | ► applying ImagePolicy | ||||||
| ✔ ImageRepository created | ✔ ImagePolicy created | ||||||
| ◎ waiting for ImagePolicy reconciliation | ◎ waiting for ImagePolicy reconciliation | ||||||
| ✔ ImagePolicy reconciliation completed | ✔ ImagePolicy reconciliation completed | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 Matheus Pimenta
					Matheus Pimenta