mirror of
https://github.com/fluxcd/flux2.git
synced 2025-11-03 03:12:00 +08:00
Merge pull request #185 from fluxcd/helmrelease-json-pointer
This commit is contained in:
@ -154,7 +154,7 @@ func createHelmReleaseCmdRun(cmd *cobra.Command, args []string) error {
|
|||||||
return fmt.Errorf("converting values to JSON from %s failed: %w", hrValuesFile, err)
|
return fmt.Errorf("converting values to JSON from %s failed: %w", hrValuesFile, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
helmRelease.Spec.Values = apiextensionsv1.JSON{Raw: json}
|
helmRelease.Spec.Values = &apiextensionsv1.JSON{Raw: json}
|
||||||
}
|
}
|
||||||
|
|
||||||
if export {
|
if export {
|
||||||
|
|||||||
@ -138,7 +138,7 @@ func isHelmReleaseReady(ctx context.Context, kubeClient client.Client, name, nam
|
|||||||
if condition.Type == helmv2.ReadyCondition {
|
if condition.Type == helmv2.ReadyCondition {
|
||||||
if condition.Status == corev1.ConditionTrue {
|
if condition.Status == corev1.ConditionTrue {
|
||||||
return true, nil
|
return true, nil
|
||||||
} else if condition.Status == corev1.ConditionFalse {
|
} else if condition.Status == corev1.ConditionFalse && helmRelease.Status.LastAttemptedRevision != "" {
|
||||||
return false, fmt.Errorf(condition.Message)
|
return false, fmt.Errorf(condition.Message)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user