Skip to content
This repository was archived by the owner on Aug 17, 2023. It is now read-only.

Commit f3edb9b

Browse files
author
Yao Xiao
authored
Create Istio-system namespace before create OIDC secret (#276)
1 parent 95beaee commit f3edb9b

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

pkg/kfapp/aws/aws.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -722,6 +722,13 @@ func (aws *Aws) Apply(resources kftypes.ResourceEnum) error {
722722
}
723723
}
724724

725+
if err := createNamespace(aws.k8sClient, IstioNamespace); err != nil {
726+
return &kfapis.KfError{
727+
Code: int(kfapis.INTERNAL_ERROR),
728+
Message: fmt.Sprintf("Could not create namespace %v", err),
729+
}
730+
}
731+
725732
// Create IAM role binding for k8s service account.
726733
if awsPluginSpec.GetEnablePodIamPolicy() && isEksCluster {
727734
err := aws.setupIamRoleForServiceAccount()

0 commit comments

Comments
 (0)