-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
KIM Integration - adjustments to current KIM behavior (#1049)
rebase
- Loading branch information
1 parent
983b4dc
commit f8e1464
Showing
2 changed files
with
11 additions
and
1 deletion.
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
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 |
---|---|---|
|
@@ -42,11 +42,15 @@ const ( | |
) | ||
|
||
var runtimeAdministrators = []string{"[email protected]", "[email protected]"} | ||
|
||
var defaultNetworking = imv1.Networking{ | ||
Nodes: networking.DefaultNodesCIDR, | ||
Pods: networking.DefaultPodsCIDR, | ||
Services: networking.DefaultServicesCIDR, | ||
//TODO: remove after KIM is handling this properly | ||
Type: ptr.String("calico"), | ||
} | ||
|
||
var defaultOIDSConfig = internal.OIDCConfigDTO{ | ||
ClientID: "client-id-default", | ||
GroupsClaim: "gc-default", | ||
|
@@ -414,6 +418,8 @@ func TestCreateRuntimeResourceStep_Defaults_AWS_MultiZoneWithNetworking_ActualCr | |
Nodes: "192.168.48.0/20", | ||
Pods: "10.104.0.0/24", | ||
Services: "10.105.0.0/24", | ||
//TODO remove after KIM is handling this properly | ||
Type: ptr.String("calico"), | ||
}, runtime.Spec.Shoot.Networking) | ||
|
||
_, err = memoryStorage.Instances().GetByID(operation.InstanceID) | ||
|
@@ -728,7 +734,7 @@ func assertLabelsKIMDriven(t *testing.T, preOperation internal.Operation, runtim | |
assertLabels(t, preOperation, runtime) | ||
|
||
provisionerDriven, ok := runtime.Labels["kyma-project.io/controlled-by-provisioner"] | ||
assert.True(t, !ok || provisionerDriven == "false") | ||
assert.True(t, ok && provisionerDriven == "false") | ||
} | ||
|
||
func assertLabelsProvisionerDriven(t *testing.T, preOperation internal.Operation, runtime imv1.Runtime) { | ||
|