-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Thomas Schuetz <[email protected]> Signed-off-by: odubajDT <[email protected]> Signed-off-by: RealAnna <[email protected]> Signed-off-by: Florian Bacher <[email protected]> Co-authored-by: Thomas Schuetz <[email protected]> Co-authored-by: RealAnna <[email protected]> Co-authored-by: Florian Bacher <[email protected]>
- Loading branch information
1 parent
d7ba5f3
commit 3644a7d
Showing
37 changed files
with
913 additions
and
44,266 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
37 changes: 37 additions & 0 deletions
37
lfc-scheduler/manifests/install/charts/keptn-scheduler/values.yaml
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,37 @@ | ||
|
||
# Default values for scheduler-plugins-as-a-second-scheduler. | ||
# This is a YAML-formatted file. | ||
# Declare variables to be passed into your templates. | ||
|
||
scheduler: | ||
name: keptn-scheduler | ||
image: docker.io/annadreal/kube-scheduler:202209271664295209-v0.24.3 #we still do not have a register setup, edit the Makefile to point to your own register, run 'make push-release-images' copy the resulting image here | ||
namespace: keptn-lifecycle-controller-system | ||
replicaCount: 1 | ||
leaderElect: false | ||
|
||
#controller: | ||
# name: scheduler-plugins-controller | ||
# image: k8s.gcr.io/scheduler-plugins/controller:v0.23.10 | ||
# namespace: keptn-scheduler | ||
# replicaCount: 1 | ||
|
||
# LoadVariationRiskBalancing and TargetLoadPacking are not enabled by default | ||
# as they need extra RBAC privileges on metrics.k8s.io. | ||
|
||
plugins: | ||
enabled: ["KLCPermit"] | ||
disabled: [] # only in-tree plugins need to be defined here | ||
|
||
# Customize the enabled plugins' config. | ||
# Refer to the "pluginConfig" section of manifests/<plugin>/scheduler-config.yaml. | ||
# For example, for Coscheduling plugin, you want to customize the permit waiting timeout to 10 seconds: | ||
#pluginConfig: | ||
#- name: Coscheduling | ||
# args: | ||
# permitWaitingTimeSeconds: 10 # default is 60 | ||
# Or, customize the other plugins | ||
# - name: NodeResourceTopologyMatch | ||
# args: | ||
# scoringStrategy: | ||
# type: MostAllocated # default is LeastAllocated |
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 |
---|---|---|
@@ -1,6 +1,44 @@ | ||
package common | ||
|
||
import "fmt" | ||
|
||
const WorkloadAnnotation = "keptn.sh/workload" | ||
const VersionAnnotation = "keptn.sh/version" | ||
const AppAnnotation = "keptn.sh/app" | ||
const EventAnnotation = "keptn.sh/event" | ||
const PreDeploymentTaskAnnotation = "keptn.sh/pre-deployment-tasks" | ||
const PostDeploymentTaskAnnotation = "keptn.sh/post-deployment-tasks" | ||
const PreDeploymentAnalysisAnnotation = "keptn.sh/pre-deployment-analysis" | ||
const PostDeploymentAnalysisAnnotation = "keptn.sh/post-deployment-analysis" | ||
|
||
const MaxAppNameLength = 25 | ||
const MaxWorkloadNameLength = 25 | ||
const MaxTaskNameLength = 25 | ||
const MaxVersionLength = 12 | ||
|
||
type KeptnState string | ||
|
||
const ( | ||
StateRunning KeptnState = "Running" | ||
StateSucceeded KeptnState = "Succeeded" | ||
StateFailed KeptnState = "Failed" | ||
StateUnknown KeptnState = "Unknown" | ||
StatePending KeptnState = "Pending" | ||
) | ||
|
||
var ErrTooLongAnnotations = fmt.Errorf("too long annotations, maximum length for app and workload is 25 characters, for version 12 characters") | ||
|
||
func (k KeptnState) IsCompleted() bool { | ||
return k == StateSucceeded || k == StateFailed || k == StateUnknown | ||
} | ||
|
||
func TruncateString(s string, max int) string { | ||
if len(s) > max { | ||
return s[:max] | ||
} | ||
return s | ||
} | ||
|
||
type CheckType string | ||
|
||
const PreDeploymentCheckType CheckType = "pre" | ||
const PostDeploymentCheckType CheckType = "post" |
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
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
Oops, something went wrong.