Skip to content

Commit

Permalink
fix missing constants + add license
Browse files Browse the repository at this point in the history
  • Loading branch information
hugoShaka committed Dec 3, 2024
1 parent 75e0168 commit 3542788
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
26 changes: 26 additions & 0 deletions lib/autoupdate/rollout/strategy_haltonerror.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
* Teleport
* Copyright (C) 2024 Gravitational, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

package rollout

import (
Expand All @@ -12,6 +30,14 @@ import (
update "github.com/gravitational/teleport/api/types/autoupdate"
)

const (
updateReasonCanStart = "can_start"
updateReasonCannotStart = "cannot_start"
updateReasonPreviousGroupsNotDone = "previous_groups_not_done"
updateReasonUpdateComplete = "update_complete"
updateReasonUpdateInProgress = "update_in_progress"
)

type haltOnErrorStrategy struct {
log *slog.Logger
clock clockwork.Clock
Expand Down
18 changes: 18 additions & 0 deletions lib/autoupdate/rollout/strategy_haltonerror_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
* Teleport
* Copyright (C) 2024 Gravitational, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

package rollout

import (
Expand Down

0 comments on commit 3542788

Please sign in to comment.