mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-10 18:06:55 +00:00
* increase timeout to 30s to match webhook timeout Signed-off-by: Jim Bugwadia <jim@nirmata.com> * initialize Fulcio roots at startup Signed-off-by: Jim Bugwadia <jim@nirmata.com> * make fmt Signed-off-by: Jim Bugwadia <jim@nirmata.com> * add TUF root Signed-off-by: Jim Bugwadia <jim@nirmata.com> * fix chart Signed-off-by: Jim Bugwadia <jim@nirmata.com> * make helm-gen Signed-off-by: Jim Bugwadia <jim@nirmata.com> Co-authored-by: Charles-Edouard Brétéché <charled.breteche@gmail.com>
16 lines
230 B
Go
16 lines
230 B
Go
package cosign
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/sigstore/cosign/cmd/cosign/cli/fulcio"
|
|
)
|
|
|
|
func Init() error {
|
|
certs := fulcio.GetRoots()
|
|
if certs == nil {
|
|
return fmt.Errorf("failed to initialize Fulcio roots")
|
|
}
|
|
|
|
return nil
|
|
}
|