Merge pull request #20242 from flouthoc/manifest-retry

test, manifest: test push retry
This commit is contained in:
openshift-ci[bot]
2023-10-03 20:07:35 +00:00
committed by GitHub
7 changed files with 25 additions and 13 deletions

View File

@ -323,7 +323,7 @@ func createEnvCacheMap(env []string) map[string]int {
//
// Deprecated: Replace with:
//
// Use generator.Config = config
// Use generator.Config = config
func (g *Generator) SetSpec(config *rspec.Spec) {
g.Config = config
}

View File

@ -23,8 +23,10 @@ type SyscallOpts struct {
func ParseSyscallFlag(args SyscallOpts, config *rspec.LinuxSeccomp) error {
var arguments []string
if args.Index != "" && args.Value != "" && args.ValueTwo != "" && args.Operator != "" {
arguments = []string{args.Action, args.Syscall, args.Index, args.Value,
args.ValueTwo, args.Operator}
arguments = []string{
args.Action, args.Syscall, args.Index, args.Value,
args.ValueTwo, args.Operator,
}
} else {
arguments = []string{args.Action, args.Syscall}
}

View File

@ -32,7 +32,6 @@ func arches() []rspec.Arch {
// DefaultProfile defines the whitelist for the default seccomp profile.
func DefaultProfile(rs *specs.Spec) *rspec.LinuxSeccomp {
syscalls := []rspec.LinuxSyscall{
{
Names: []string{
@ -535,7 +534,6 @@ func DefaultProfile(rs *specs.Spec) *rspec.LinuxSeccomp {
},
},
}...)
}
arch := runtime.GOARCH