Skip to content

Commit

Permalink
Integration test for ManagedResource (gardener#5772)
Browse files Browse the repository at this point in the history
* Integration test for modes and annotations

* condition ResourceApplied is correctly set to Progressing

* Preserve replica and resources

* Test for resource classes

* Reduce timeout of consistently

* Address PR review

* Address PR Review
  • Loading branch information
acumino authored Apr 12, 2022
1 parent f588280 commit 467ac18
Show file tree
Hide file tree
Showing 3 changed files with 605 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/apis/resources/v1alpha1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const (
// mode that should be used to reconcile the resource.
Mode = "resources.gardener.cloud/mode"
// ModeIgnore is a constant for the value of the mode annotation describing an ignore mode.
// Reconciliation in ignore more removes the resource from the ManagedResource status and does not
// Reconciliation in ignore mode removes the resource from the ManagedResource status and does not
// perform any action on the cluster.
ModeIgnore = "Ignore"
// PreserveReplicas is a constant for an annotation on a resource managed by a ManagedResource. If set to
Expand Down
2 changes: 1 addition & 1 deletion pkg/resourcemanager/predicate/class_filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
)

const (
// DefaultClass is used a resource class is no class is specified on the command line
// DefaultClass is used as resource class if no class is specified on the command line
DefaultClass = "resources"

// FinalizerName is the finalizer base name that is injected into ManagedResources.
Expand Down
Loading

0 comments on commit 467ac18

Please sign in to comment.