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

Fix Big Bang example to do GitOps correctly #185

Merged
merged 10 commits into from
Dec 7, 2021

Conversation

RothAndrew
Copy link
Contributor

@RothAndrew RothAndrew commented Dec 2, 2021

Fix the Big Bang Core example to do GitOps properly, by applying a GitRepository and Kustomization manifest, rather than applying the output of kustomize build

Because Flux can't pull from private bases without making modifications to the Flux deployment we decided to vendor the base rather than modify the deployment of flux. The package-example-big-bang Make target automatically pulls the base from the upstream Big Bang repo. It has a hard coded tag version right now which we should fix in a future issue. Because of this, reviewers should disregard any files that are in the vendor folder. They need to be included in the repo since the repo is what is pulled into the Zarf package that Flux uses inside the airgap.

@RothAndrew RothAndrew self-assigned this Dec 4, 2021
secretRef:
name: zarf-git-secret
ref:
branch: feature/145-big-bang-core-example-correct-gitops
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This should change to master right before we merge

@RothAndrew
Copy link
Contributor Author

Proof this works:

image

image

@RothAndrew
Copy link
Contributor Author

Needs more documentation to be added before we merge also

@runyontr
Copy link
Contributor

runyontr commented Dec 6, 2021

Is there a reason any of the BB repo need to be private? Since upstream is publicly readable, I would expect no one to have an issue with a publicly readable BB on this repo either.

@RothAndrew
Copy link
Contributor Author

@runyontr Zarf automatically makes all repos that it loads into Gitea private. If you think it would be valuable we can create a feature request to be able to configure whether repos are public or private.

@runyontr
Copy link
Contributor

runyontr commented Dec 6, 2021

There's obviously a tradeoff on complexity between making zarf more complex/flexible (public/private repos) vs making the repos needed to build our packages more complex. Just wondering if there were other considerations on that.

@RothAndrew
Copy link
Contributor Author

I'll write up an issue for the feature request.

@RothAndrew RothAndrew marked this pull request as ready for review December 7, 2021 21:39
@RothAndrew
Copy link
Contributor Author

@YrrepNoj this is ready for review and merge, other than the one thing to change the branch ref back to master right before we merge.

@RothAndrew RothAndrew changed the title WIP Fix Big Bang example to do GitOps correctly Fix Big Bang example to do GitOps correctly Dec 7, 2021
@RothAndrew
Copy link
Contributor Author

/test all

@RothAndrew
Copy link
Contributor Author

/test all

YrrepNoj
YrrepNoj previously approved these changes Dec 7, 2021
Copy link
Contributor

@YrrepNoj YrrepNoj left a comment

Choose a reason for hiding this comment

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

Small nit in the README but looks good overall

@RothAndrew
Copy link
Contributor Author

@YrrepNoj Where's the nit? I don't see a comment from you.

Changing the branch ref and I'll fix your nit, then I'll need one last approve then we can merge

@RothAndrew
Copy link
Contributor Author

/test all

@RothAndrew RothAndrew enabled auto-merge (squash) December 7, 2021 22:39
@RothAndrew RothAndrew merged commit 464e44f into master Dec 7, 2021
@RothAndrew RothAndrew deleted the feature/145-big-bang-core-example-correct-gitops branch December 7, 2021 22:51
jeff-mccoy pushed a commit that referenced this pull request Feb 8, 2022
Signed-off-by: Jeff McCoy <code@jeffm.us>
Noxsios pushed a commit that referenced this pull request Mar 8, 2023
Signed-off-by: Jeff McCoy <code@jeffm.us>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants