Support manual triggering of a repository update. (#6280)
* Support manual triggering of a repository update. * cherry pick add api for workload template (#1982) * cherry pick (add operator application (#1970)) * Modify routing implementation to improve readability * cherry pick from kse dfc40e5adf5aa2e67d1 * Filter by Routing Parameter Namespace (#1990) * add doc for workloadtemplates
This commit is contained in:
@@ -7,6 +7,7 @@ const (
|
||||
AppOriginalNameLabelKey = "application.kubesphere.io/app-originalName"
|
||||
AppVersionIDLabelKey = "application.kubesphere.io/appversion-id"
|
||||
AppTypeLabelKey = "application.kubesphere.io/app-type"
|
||||
HasCrdLabelKey = "application.kubesphere.io/hascrd"
|
||||
AppStoreLabelKey = "application.kubesphere.io/app-store"
|
||||
TimeoutRecheck = "application.kubesphere.io/timeout-recheck"
|
||||
AppCategoryNameKey = "application.kubesphere.io/app-category-name"
|
||||
@@ -18,6 +19,7 @@ const (
|
||||
StatusSuccessful = "successful"
|
||||
StatusCreating = "creating"
|
||||
StatusSyncing = "syncing"
|
||||
StatusManualTrigger = "manualTrigger"
|
||||
StatusDeleting = "deleting"
|
||||
StatusUpgrading = "upgrading"
|
||||
StatusClusterDeleted = "clusterDeleted"
|
||||
|
||||
@@ -26,7 +26,7 @@ type RepoSpec struct {
|
||||
Url string `json:"url"`
|
||||
Credential RepoCredential `json:"credential,omitempty"`
|
||||
Description string `json:"description,omitempty"`
|
||||
SyncPeriod int `json:"syncPeriod,omitempty"`
|
||||
SyncPeriod *int `json:"syncPeriod"`
|
||||
}
|
||||
|
||||
// RepoStatus defines the observed state of Repo
|
||||
|
||||
@@ -542,6 +542,11 @@ func (in *RepoList) DeepCopyObject() runtime.Object {
|
||||
func (in *RepoSpec) DeepCopyInto(out *RepoSpec) {
|
||||
*out = *in
|
||||
in.Credential.DeepCopyInto(&out.Credential)
|
||||
if in.SyncPeriod != nil {
|
||||
in, out := &in.SyncPeriod, &out.SyncPeriod
|
||||
*out = new(int)
|
||||
**out = **in
|
||||
}
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepoSpec.
|
||||
|
||||
Reference in New Issue
Block a user