This repository has been archived by the owner on Nov 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1094 from weaveworks/issue/1081-verify-container-…
…changes Verify container changes
- Loading branch information
Showing
9 changed files
with
211 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,23 @@ | ||
package resource | ||
|
||
import ( | ||
"github.com/weaveworks/flux/image" | ||
"github.com/weaveworks/flux/resource" | ||
) | ||
|
||
type DaemonSet struct { | ||
baseObject | ||
Spec DaemonSetSpec | ||
} | ||
|
||
type DaemonSetSpec struct { | ||
Template PodTemplate | ||
Spec struct { | ||
Template PodTemplate | ||
} | ||
} | ||
|
||
func (ds DaemonSet) Containers() []resource.Container { | ||
return ds.Spec.Template.Containers() | ||
} | ||
|
||
func (ds DaemonSet) SetContainerImage(container string, ref image.Ref) error { | ||
return ds.Spec.Template.SetContainerImage(container, ref) | ||
} | ||
|
||
var _ resource.Workload = DaemonSet{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package release | ||
|
||
import ( | ||
fluxerr "github.com/weaveworks/flux/errors" | ||
) | ||
|
||
func MakeReleaseError(err error) *fluxerr.Error { | ||
return &fluxerr.Error{ | ||
Type: fluxerr.User, | ||
Help: `The release process failed, with this message: | ||
` + err.Error() + ` | ||
This may be because of a limitation in the formats of file Flux can | ||
deal with. See | ||
/~https://github.com/weaveworks/flux/blob/master/site/requirements.md | ||
for those limitations. | ||
If your files appear to meet the requirements, it may simply be a bug | ||
in Flux. Please report it at | ||
/~https://github.com/weaveworks/flux/issues | ||
and try to include the problematic manifest, if it can be identified. | ||
`, | ||
Err: err, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters