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

Commit

Permalink
Cherry pick #378 #379 #380 to v1.1-branch (#381)
Browse files Browse the repository at this point in the history
* Adapt to v3 manifest for aws (#378)

* Improve AWS kfctl (#379)

* Use istio-parameter in manifests (#380)
  • Loading branch information
Yao Xiao authored Jul 24, 2020
1 parent 3e61b81 commit 9a3621e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
10 changes: 1 addition & 9 deletions pkg/kfapp/aws/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -450,11 +450,7 @@ func (aws *Aws) Generate(resources kftypes.ResourceEnum) error {
return errors.WithStack(err)
}

if err := aws.kfDef.SetApplicationParameter("aws-alb-ingress-controller", "clusterName", aws.kfDef.Name); err != nil {
return errors.WithStack(err)
}

if err := aws.kfDef.SetApplicationParameter("istio-ingress", "namespace", IstioNamespace); err != nil {
if err := aws.kfDef.SetApplicationParameter("aws-alb-ingress-controller", "cluster-name", aws.kfDef.Name); err != nil {
return errors.WithStack(err)
}

Expand All @@ -471,10 +467,6 @@ func (aws *Aws) Generate(resources kftypes.ResourceEnum) error {
}
} else {
if pluginSpec.Auth.Cognito != nil {
if err := aws.kfDef.SetApplicationParameter("istio", "clusterRbacConfig", "ON"); err != nil {
return errors.WithStack(err)
}

if err := aws.kfDef.SetApplicationParameter("istio-ingress", "CognitoUserPoolArn", pluginSpec.Auth.Cognito.CognitoUserPoolArn); err != nil {
return errors.WithStack(err)
}
Expand Down
6 changes: 5 additions & 1 deletion pkg/kfconfig/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -839,8 +839,12 @@ func (c *KfConfig) SetApplicationParameter(appName string, paramName string, val
"jupyter-web-app": KfAppsStackName,
"metacontroller": "metacontroller",
"profiles": KfAppsStackName,
"dex": "dex",
// Spartakus is its own application because we want kfctl to be able to remove it.
"spartakus": "spartakus",
"spartakus": "spartakus",
// AWS Specific
"aws-alb-ingress-controller": KfAppsStackName,
"istio-ingress": "istio-ingress",
}

appNameDir, ok := appToStack[appName]
Expand Down
1 change: 0 additions & 1 deletion pkg/utils/awsutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ func GetEksctlVersion() (string, error) {
return "", err
}

log.Infof("Output: %s", output)
// [ℹ] version.Info{BuiltAt:"", GitCommit:"", GitTag:"0.1.32"}
r := regexp.MustCompile("[0-9]+.[0-9]+.[0-9]+")
matchGroups := r.FindStringSubmatch(string(output))
Expand Down

0 comments on commit 9a3621e

Please sign in to comment.