Add static storage and listener opts

This commit is contained in:
Darren Shepherd
2019-12-04 11:32:00 -07:00
parent 3c2990b7c5
commit f1484a07b3
5 changed files with 91 additions and 12 deletions

View File

@@ -19,7 +19,7 @@ import (
const (
cnPrefix = "listener.cattle.io/cn-"
static = "listener.cattle.io/static"
Static = "listener.cattle.io/static"
hashKey = "listener.cattle.io/hash"
)
@@ -122,7 +122,7 @@ func populateCN(secret *v1.Secret, cn ...string) *v1.Secret {
}
func NeedsUpdate(secret *v1.Secret, cn ...string) bool {
if secret.Annotations[static] == "true" {
if secret.Annotations[Static] == "true" {
return false
}