mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-09-19 20:44:52 -04:00
Only upload kubeadm certs if key is rotated
Co-authored-by: Daniel Weiße <66256922+daniel-weisse@users.noreply.github.com> Co-authored-by: 3u13r <lc@edgeless.systems>
This commit is contained in:
parent
586b65f089
commit
260d2571c1
56 changed files with 527 additions and 326 deletions
|
@ -18,6 +18,8 @@ Wants=network-online.target
|
|||
After=network-online.target
|
||||
[Service]
|
||||
Type=simple
|
||||
RemainAfterExit=yes
|
||||
Restart=on-failure
|
||||
EnvironmentFile=/etc/constellation.env
|
||||
ExecStartPre=-setenforce Permissive
|
||||
ExecStartPre=/usr/bin/mkdir -p /opt/cni/bin/
|
||||
|
|
|
@ -216,27 +216,27 @@ type fakeDbusConn struct {
|
|||
actionErr error
|
||||
}
|
||||
|
||||
func (f *fakeDbusConn) StartUnitContext(ctx context.Context, name string, mode string, ch chan<- string) (int, error) {
|
||||
f.inputs = append(f.inputs, dbusConnActionInput{name: name, mode: mode})
|
||||
ch <- f.result
|
||||
func (c *fakeDbusConn) StartUnitContext(ctx context.Context, name string, mode string, ch chan<- string) (int, error) {
|
||||
c.inputs = append(c.inputs, dbusConnActionInput{name: name, mode: mode})
|
||||
ch <- c.result
|
||||
|
||||
return f.jobID, f.actionErr
|
||||
return c.jobID, c.actionErr
|
||||
}
|
||||
|
||||
func (f *fakeDbusConn) StopUnitContext(ctx context.Context, name string, mode string, ch chan<- string) (int, error) {
|
||||
f.inputs = append(f.inputs, dbusConnActionInput{name: name, mode: mode})
|
||||
ch <- f.result
|
||||
func (c *fakeDbusConn) StopUnitContext(ctx context.Context, name string, mode string, ch chan<- string) (int, error) {
|
||||
c.inputs = append(c.inputs, dbusConnActionInput{name: name, mode: mode})
|
||||
ch <- c.result
|
||||
|
||||
return f.jobID, f.actionErr
|
||||
return c.jobID, c.actionErr
|
||||
}
|
||||
|
||||
func (f *fakeDbusConn) RestartUnitContext(ctx context.Context, name string, mode string, ch chan<- string) (int, error) {
|
||||
f.inputs = append(f.inputs, dbusConnActionInput{name: name, mode: mode})
|
||||
ch <- f.result
|
||||
func (c *fakeDbusConn) RestartUnitContext(ctx context.Context, name string, mode string, ch chan<- string) (int, error) {
|
||||
c.inputs = append(c.inputs, dbusConnActionInput{name: name, mode: mode})
|
||||
ch <- c.result
|
||||
|
||||
return f.jobID, f.actionErr
|
||||
return c.jobID, c.actionErr
|
||||
}
|
||||
|
||||
func (s *fakeDbusConn) ReloadContext(ctx context.Context) error {
|
||||
return s.actionErr
|
||||
func (c *fakeDbusConn) ReloadContext(ctx context.Context) error {
|
||||
return c.actionErr
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue