Documentation ¶
Index ¶
- Variables
- func FreezeApplication(ctx context.Context, cli client.Client, app *v1beta1.Application, ...) (string, error)
- func RescheduleAppRevAndRT(ctx context.Context, cli client.Client, app *v1beta1.Application, ...) error
- func RollbackApplicationWithRevision(ctx context.Context, cli client.Client, ...) (*v1beta1.ApplicationRevision, *v1beta1.Application, error)
- func UnfreezeApplication(ctx context.Context, cli client.Client, app *v1beta1.Application, ...) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotMatchRevision = errors.Errorf("failed to find revision matching the application")
ErrNotMatchRevision -
View Source
var ErrPublishVersionNotChange = errors.Errorf("the PublishVersion is not changed")
ErrPublishVersionNotChange -
View Source
var ErrRevisionNotChange = errors.Errorf("the revision is not changed")
ErrRevisionNotChange -
View Source
var RevisionContextKey = "revision-context-key"
RevisionContextKey if this key is exit in ctx, we should use it preferentially
Functions ¶
func FreezeApplication ¶ added in v1.9.0
func FreezeApplication(ctx context.Context, cli client.Client, app *v1beta1.Application, mutate func()) (string, error)
FreezeApplication freeze application to disable the reconciling process for it
func RescheduleAppRevAndRT ¶ added in v1.8.0
func RescheduleAppRevAndRT(ctx context.Context, cli client.Client, app *v1beta1.Application, shardID string) error
RescheduleAppRevAndRT reschedule ApplicationRevision and ResourceTracker of app to given shard
func RollbackApplicationWithRevision ¶
func RollbackApplicationWithRevision(ctx context.Context, cli client.Client, appName, appNamespace, revisionName, publishVersion string) (*v1beta1.ApplicationRevision, *v1beta1.Application, error)
RollbackApplicationWithRevision make the exist application rollback to specified revision. revisionCtx the context used to manage the application revision.
func UnfreezeApplication ¶ added in v1.9.0
func UnfreezeApplication(ctx context.Context, cli client.Client, app *v1beta1.Application, mutate func(), originalControllerRequirement string) error
UnfreezeApplication unfreeze application to enable the reconciling process for it
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.