Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add new go build tag no_openziti to reduce build size #795

Merged
merged 2 commits into from
Nov 19, 2024

Commits on Nov 9, 2024

  1. feat: Add new go build tag no_openziti to reduce build size

    closes edgexfoundry#789
    
    The usage of OpenZiti packages to support zero trust feature significantly increases
    the build size. For example, core-metadata increases from 14MB to 21MB, core-command
    increases from 9.8MB to 17MB, device-virtual increases from 18MB to 31MB, and
    app-service-configurable increases from 22Mb to 34MB. As many edge user scenarios
    require to deploy EdgeX services on resource-constrained devices without security,
    allowing that the services can be built without OpenZiti packages and ZeroTrust
    features can be helpful to user cases which don't need zero trust feature.
    
    This commit refactors the codes importing openziti packages with //go:build !no_openziti
    directive and creates para codes that don't use openziti packages with
    //go:build no_openziti directive, so users can simply build services by specifying
    no_openziti tag.
    
    Also remove vestigal zc variables and ZitiContext struct per discussion
    with https://github.com/dovholuknf in
    edgexfoundry#659 (comment)
    
    Signed-off-by: Jude Hung <jude@iotechsys.com>
    judehung committed Nov 9, 2024
    Configuration menu
    Copy the full SHA
    c362e7c View commit details
    Browse the repository at this point in the history

Commits on Nov 19, 2024

  1. feat: rename the zerotrust_no_ziti.go to no_ziti.go

    Signed-off-by: Jude Hung <jude@iotechsys.com>
    judehung committed Nov 19, 2024
    Configuration menu
    Copy the full SHA
    64b7558 View commit details
    Browse the repository at this point in the history