Skip to content

add control for auto delete unused template#45

Merged
hex108 merged 1 commit into
tkestack:masterfrom
qianjun1993:test
Jul 15, 2020
Merged

add control for auto delete unused template#45
hex108 merged 1 commit into
tkestack:masterfrom
qianjun1993:test

Conversation

@qianjun1993
Copy link
Copy Markdown
Contributor

No description provided.

Comment thread pkg/tapp/controller.go Outdated
}
for template_unused := range templateMap {
delete(tapp.Spec.TemplatePool, template_unused)
if tapp.Spec.AutoDeleteUnusedTemplate {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if tapp.Spec.AutoDeleteUnusedTemplate {
if !tapp.Spec.AutoDeleteUnusedTemplate {
return nil
}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已修改

@hex108
Copy link
Copy Markdown
Contributor

hex108 commented Jul 15, 2020

LGTM. Thanks!

@hex108 hex108 merged commit 15eeaee into tkestack:master Jul 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants