Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .werf/defines/packages-clean.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
- apt-get clean
- rm --recursive --force /var/lib/apt/lists/ftp.altlinux.org* /var/cache/apt/*.bin
{{- if $.DistroPackagesProxy }}
- rm --recursive --force /var/lib/apt/lists/{{ $.DistroPackagesProxy }}*
- rm --recursive --force /var/lib/apt/lists/{{ $.DistroPackagesProxy }}*
{{- end }}
{{- end }}

{{- define "debian packages clean" }}
- apt-get clean
- find /var/lib/apt/ /var/cache/apt/ -type f -delete

{{- end }}
43 changes: 43 additions & 0 deletions api/core/v1alpha2/dvcr-deployment-condition/condition.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/*
Copyright 2025 Flant JSC

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

package dvcr_deployment_condition

import appsv1 "k8s.io/api/apps/v1"

const (
// MaintenanceType indicates whether the deployment/dvcr is in maintenance mode.
MaintenanceType appsv1.DeploymentConditionType = "Maintenance"

// LastMaintenanceResultType Type = "LastMaintenanceResult"
)

type (
// MaintenanceReason represents the various reasons for the DVCRMaintenance condition type.
MaintenanceReason string
)

func (s MaintenanceReason) String() string {
return string(s)
}

const (
// InProgress indicates that the maintenance is in progress: wait for provisioners, or deployment is modified to run garbage collection. (status true)
InProgress MaintenanceReason = "GarbageCollectionInProgress"

// LastResult indicates that the maintenance is done and result is in the message. (status false)
LastResult MaintenanceReason = "LastResult"
)
4 changes: 4 additions & 0 deletions api/core/v1alpha2/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ const (
// ReasonDataSourceQuotaExceeded is event reason that DataSource sync is failed because quota exceed.
ReasonDataSourceQuotaExceeded = "DataSourceQuotaExceed"

// ReasonImageOperationPostponedDueToDVCRMaintenance is event reason that operation is postponed until the end of DVCR maintenance mode.
ReasonImageOperationPostponedDueToDVCRMaintenance = "ImageOperationPostponedDueToDVCRMaintenance"
ReasonImageOperationContinueAfterDVCRMaintenance = "ImageOperationContinueAfterDVCRMaintenance"

// ReasonDataSourceDiskProvisioningFailed is event reason that DataSource disk provisioning is failed.
ReasonDataSourceDiskProvisioningFailed = "DataSourceImportDiskProvisioningFailed"

Expand Down
1 change: 1 addition & 0 deletions images/base-alt-p11-binaries/werf.inc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ shell:
install:
{{- include "alt packages proxy" . | nindent 2 }}
- |
echo rebuild me
apt-get install -y \
{{ $builderDependencies.altPackages | join " " }}

Expand Down
Loading
Loading