Skip to content

Migrate istio and dex to V3#1426

Merged
k8s-ci-robot merged 2 commits into
kubeflow:masterfrom
PatrickXYS:istioDex
Aug 6, 2020
Merged

Migrate istio and dex to V3#1426
k8s-ci-robot merged 2 commits into
kubeflow:masterfrom
PatrickXYS:istioDex

Conversation

@PatrickXYS

Copy link
Copy Markdown
Member

Which issue is resolved by this Pull Request:
Resolves #1424

Description of your changes:

  1. Migrate Istio, Istio-1-3-1, and Dex applications to V3.
  2. Adopt corresponding changes for AWS.

Checklist:

  • Unit tests have been rebuilt:
    1. cd manifests/tests
    2. make generate-changed-only
    3. make test

@google-cla google-cla Bot added the cla: yes label Jul 26, 2020
@kubeflow-bot

Copy link
Copy Markdown
Contributor

This change is Reviewable

@PatrickXYS

Copy link
Copy Markdown
Member Author

/cc @Jeffwan Can you help review AWS changes?
/cc @krishnadurai @yanniszark Can you help review Istio + Dex changes?

Btw, let me know if you think it's necessary to divide Istio+Dex migration and AWS changes into 2 PR.

@Jeffwan

Jeffwan commented Jul 27, 2020

Copy link
Copy Markdown
Member

@PatrickXYS I would suggest to split AWS changes and common changes to separate PR. then it would be easier to track or cherry-pick in the future

@krishnadurai

Copy link
Copy Markdown
Contributor

I agree with @Jeffwan's suggestion of splitting the PR into 2.

@krishnadurai krishnadurai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, otherwise.

@PatrickXYS PatrickXYS force-pushed the istioDex branch 2 times, most recently from 2ec89c3 to 0bfcb94 Compare August 1, 2020 22:03
@PatrickXYS

Copy link
Copy Markdown
Member Author

@krishnadurai I have removed AWS change and will send another PR after this PR merged.

Can you help review the PR?

@PatrickXYS

Copy link
Copy Markdown
Member Author

Just for ping @krishnadurai

I did not change any code related to istio / dex components. Only change made here is removing AWS changes.

Would you minding take another look? And I only created base_v3 folder, this will be no impact on existing components/depencies.

@Jeffwan Jeffwan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think v3 migration is not clear for these kind of manifest. Technically, we can use overlay/application.yaml. The only thing missing is -params need to be migrated to -config. We do have some similar cases not migrated yet but I am not sure if we want to migrate it or not

- ../base/service.yaml
- ../base/statefulset.yaml
- ../base/envoy-filter.yaml
- ../base/pvc.yaml

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably overlay/application.yaml is needed as well. I think besides param -> config, there's no need to migrate to v3 for this one. Can user use overlay/applications.yaml directly?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

param -> config

Yes this is the main reason I want to migrate to V3.

Can user use overlay/applications.yaml directly?

Yes they can.

I'm okay with not migrating these components to V3. I think it might cause some incompatibility issues in the future. Since vendors (AWS/GCP) have moved to V3, and use config as the routine.

For example, https://github.com/kubeflow/manifests/blob/master/stacks/aws/application/istio/kustomization.yaml#L7-L10

if we don't migrate to V3, these configMap will be XX-parameters, what do you think?

- name: istio-parameters
  behavior: merge
  envs:
  - params.env

apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../base/kf-istio-resources.yaml

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is same as istio/istio/base/kustomize?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, they are the same.

@krishnadurai krishnadurai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@PatrickXYS

Copy link
Copy Markdown
Member Author

@terrytangyuan @animeshsingh @Bobgy Can you take a look?

It's now lgtm but need to be approved for shipment.

@terrytangyuan terrytangyuan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve

@k8s-ci-robot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: terrytangyuan

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit ddbbd74 into kubeflow:master Aug 6, 2020
@PatrickXYS PatrickXYS deleted the istioDex branch August 6, 2020 17:28
@karlschriek

Copy link
Copy Markdown
Contributor

@PatrickXYS was there ever a separate PR for the AWS part? I don't see it linked anywhere and as far as I can tell the official aws kfdef still installs 1.1.6.

Looking at the rolled-back changes in this PR, it looks like bumping to 1.3.1 only requires replacing

    - kustomizeConfig:
        repoRef:
          name: manifests
          path: stacks/aws/application/cluster-local-gateway
      name: cluster-local-gateway
    - kustomizeConfig:
        repoRef:
          name: manifests
          path: stacks/aws/application/istio
        name: istio

with

    - kustomizeConfig:
        repoRef:
          name: manifests
          path: istio/cluster-local-gateway/base_v3
      name: cluster-local-gateway
    - kustomizeConfig:
        repoRef:
          name: manifests
          path: stacks/aws/application/cognito-istio
      name: istio

Is that correct?

@karlschriek

karlschriek commented Dec 3, 2020

Copy link
Copy Markdown
Contributor

No, can't be right, not in 1.2.0 at least. stacks/aws/application/cognito-istio etc. don't exist.

As far as I can tell looking at the manifests, the change for 1.2.0 is to replace:

    - kustomizeConfig:
        repoRef:
          name: manifests
          path: stacks/aws/application/istio-stack
      name: istio-stack
    - kustomizeConfig:
        repoRef:
          name: manifests
          path: stacks/aws/application/cluster-local-gateway
      name: cluster-local-gateway

with

    - kustomizeConfig:
        repoRef:
          name: manifests
          path: stacks/aws/application/istio-1-3-1-stack
      name: istio-stack
    - kustomizeConfig:
        repoRef:
          name: manifests
          path: stacks/aws/application/cluster-local-gateway-1-3-1
      name: cluster-local-gateway

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Application v3 manifest - Istio and Dex

7 participants