disabling digest for now
parent
4f97f0e5d7
commit
f013a062cd
|
@ -1,14 +1,12 @@
|
|||
package kubernetes
|
||||
|
||||
import (
|
||||
meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
|
||||
"k8s.io/client-go/pkg/api/v1"
|
||||
"k8s.io/client-go/pkg/apis/extensions/v1beta1"
|
||||
"testing"
|
||||
|
||||
"github.com/rusenask/keel/types"
|
||||
|
||||
"testing"
|
||||
meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
"k8s.io/client-go/pkg/api/v1"
|
||||
"k8s.io/client-go/pkg/apis/extensions/v1beta1"
|
||||
)
|
||||
|
||||
type fakeImplementer struct {
|
||||
|
|
|
@ -74,7 +74,7 @@ func (p *Provider) checkUnversionedDeployment(policy types.PolicyType, repo *typ
|
|||
// updating digest if available
|
||||
if repo.Digest != "" {
|
||||
|
||||
annotations[types.KeelDigestAnnotation+"/"+containerImageRef.Remote()] = repo.Digest
|
||||
// annotations[types.KeelDigestAnnotation+"/"+containerImageRef.Remote()] = repo.Digest
|
||||
}
|
||||
|
||||
// adding image for updates
|
||||
|
|
|
@ -74,7 +74,7 @@ func (p *Provider) checkVersionedDeployment(newVersion *types.Version, policy ty
|
|||
annotations := deployment.GetAnnotations()
|
||||
|
||||
if repo.Digest != "" {
|
||||
annotations[types.KeelDigestAnnotation+"/"+conatinerImageRef.Remote()] = repo.Digest
|
||||
// annotations[types.KeelDigestAnnotation+"/"+conatinerImageRef.Remote()] = repo.Digest
|
||||
}
|
||||
annotations = addImageToPull(annotations, c.Image)
|
||||
|
||||
|
@ -142,7 +142,7 @@ func (p *Provider) checkVersionedDeployment(newVersion *types.Version, policy ty
|
|||
annotations := deployment.GetAnnotations()
|
||||
// updating digest if available
|
||||
if repo.Digest != "" {
|
||||
annotations[types.KeelDigestAnnotation+"/"+conatinerImageRef.Remote()] = repo.Digest
|
||||
// annotations[types.KeelDigestAnnotation+"/"+conatinerImageRef.Remote()] = repo.Digest
|
||||
}
|
||||
deployment.SetAnnotations(annotations)
|
||||
|
||||
|
|
Loading…
Reference in New Issue