Skip to content

Commit

Permalink
update missing imagestream message to warning
Browse files Browse the repository at this point in the history
  • Loading branch information
bparees committed Dec 14, 2015
1 parent ed29520 commit 10cb7e7
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions pkg/deploy/graph/analysis/dc.go
Expand Up @@ -15,9 +15,9 @@ import (
)

const (
TagNotAvailableWarning = "ImageStreamTagNotAvailable"
MissingImageStreamErr = "MissingImageStream"
MissingImageStreamTagErr = "MissingImageStreamTag"
TagNotAvailableWarning = "ImageStreamTagNotAvailable"
MissingImageStreamWarning = "MissingImageStream"
MissingImageStreamTagWarning = "MissingImageStreamTag"
)

// FindDeploymentConfigTriggerErrors checks for possible failures in deployment config
Expand All @@ -42,9 +42,9 @@ dc:
Node: uncastDcNode,
RelatedNodes: []graph.Node{uncastIstNode, isNode},

Severity: osgraph.ErrorSeverity,
Key: MissingImageStreamErr,
Message: fmt.Sprintf("The image trigger for %s will have no effect because %s does not exist.",
Severity: osgraph.WarningSeverity,
Key: MissingImageStreamWarning,
Message: fmt.Sprintf("The image trigger for %s will have no effect until %s is imported or created.",
dcNode.ResourceString(), isNode.(*imagegraph.ImageStreamNode).ResourceString()),
})
continue dc
Expand All @@ -69,9 +69,9 @@ dc:
Node: uncastDcNode,
RelatedNodes: []graph.Node{uncastIstNode},

Severity: osgraph.ErrorSeverity,
Key: MissingImageStreamTagErr,
Message: fmt.Sprintf("The image trigger for %s will have no effect because %s does not exist.",
Severity: osgraph.WarningSeverity,
Key: MissingImageStreamTagWarning,
Message: fmt.Sprintf("The image trigger for %s will have no effect until %s is imported or created.",
dcNode.ResourceString(), istNode.ResourceString()),
})
continue dc
Expand Down

0 comments on commit 10cb7e7

Please sign in to comment.