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