Commit Graph

242 Commits (9da427a5153f6571f4af45b4699d2378f6ccdb49)

Author SHA1 Message Date
Sebastian Karasek c41487598e
Fix create tenant command export
Signed-off-by: Sebastian Karasek <sebastian@karasek.io>
Stefan Prodan e6b84c4cfc
List components images in check cmd
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
Stefan Prodan 9f7835d818
Add target namespace to create ks cmd
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
Sylvain Rabot 78d7dca985
Add a --context option
Signed-off-by: Sylvain Rabot <sylvain@abstraction.fr>
Hidde Beydals 0bf52f4746 Change `fluxcd/toolkit` to `fluxcd/flux2`
Signed-off-by: Hidde Beydals <hello@hidde.co>
Hidde Beydals e2752e4508 Rename `gotk` binary to `flux`
Signed-off-by: Hidde Beydals <hello@hidde.co>
Hidde Beydals 9916a53761 Rename `gotk-system` namespace to `flux-system`
Signed-off-by: Hidde Beydals <hello@hidde.co>
Stefan Prodan 9bc250d027
Refactor manifests generation
- introduce manifestgen pkg, to be consumed by the CLI and Terraform provider
- consolidate defaults in manifestgen/install pkg
- introduce Manifest as the returning type of manifest generation
- add helper function to Manifest for writing multi-doc YAMLs on disk

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
Philip Laine b0d2a38ff6 Refactor manifest generation
Signed-off-by: Philip Laine <philip.laine@xenit.se>
Stefan Prodan 0e67b76b57
Change copyright to Flux authors
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
Stefan Prodan 8dfbc35e60
Ignore missing kinds when uninstalling
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
Ally Parker 2d67ea5f7f Add secret-ref flag to git source
Add secret-ref flag to Helm source

Add secret-ref to bucket source
“Anton b3ef410fb7 Add source bucket provider flag
“Anton 0c55bca218 Add helm chart source flag
“Anton 5fd28439dc Add kustomization source and decryption provider flags
“Anton 058dfdfcd6 Move flags and utils to internal packages
Stefan Prodan b041dbd14f Add GitLab HTTPS auth to bootstrap options
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
Hidde Beydals 19918cd342 Refactor create, reconcile and resume cmds
* Take ObservedGeneration into account in readiness checks where
  applicable
* Reduce amount of code (and duplicate GETs) by working with pointers
  where possible
* Improve logged messages to properly take resource names into account
  and better describe processes
Stefan Prodan 7718c6a2a5
Merge pull request from fluxcd/bootstrap-validate-manifests
Enable client side validation on bootstrap
“Anton 4989826124 Get rid of shell-out and invoke kubetcl directly via exec
Stefan Prodan f23a551ae3
Enable client side validation on bootstrap
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
Stefan Prodan 880ef303e8
Set alert provider secretRef only if specified
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
Stefan Prodan d2d494e079
Uninstall improvements
- ignore not found errors when deleting objects
- remove the CR/CRDs before deleting the cluster role binding
- capture kubectl exist code

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
Philip Laine d32e8c6e98 Remove aliases
Philip Laine 65b8942416 Fix minor issues
Philip Laine 8eac7d6b4d Implement table output
Philip Laine 7ebb34de80 Add receiver command
Philip Laine 6ea84906ac Add alert commands
Philip Laine f7971a871a Add alert provider commands
Stefan Prodan 5672646278
Use install pkg in CLI
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
stefanprodan f613c01803 Update blang/semver to v4
Signed-off-by: stefanprodan <stefan.prodan@gmail.com>
Hidde Beydals f3cab6e177 Display proper revision for sources
Includes a change to an empty revision string if the reconciler has not
produced an artifact yet, as this will otherwise result in a nil
pointer dereference.
Hidde Beydals d41bd6b6b1
Merge pull request from circa10a/main
Switch get commands to use tables for output
circa10a 3619cb8bd1 Switch get commands to use tables for output
Signed-off-by: circa10a <caleblemoine@gmail.com>
Hidde Beydals 8e2316ba62 Support multi-path KUBECONFIG
Ref:
https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#the-kubeconfig-environment-variable
stefanprodan 07677ed4a7 Add option to disable the network policy at install time
Hidde Beydals 7b2227bfac Remove faulty `break` from get commands
stefanprodan 1427b1537e Fix Kusomization depends-on mapping
stefanprodan 29c1cf1237 Retry setting annotation on conflict
stefanprodan 0e52065893 Change the bootstrap default branch to main
Hidde Beydals 1a679ee05d Remove creationTimestamp leading spaces
Hidde Beydals 84e36ed847 Use `LastHandledReconcileAt` in reconcile commands
Hidde Beydals f216273008 Make use of `GetCondition` from `pkg/apis/meta`
Hidde Beydals ff6a1c14be Rename 'gitops-system' namespace to 'gotk-system'
To align with the project name, and the group introduced in .
stefanprodan d902c71a6f Update components to v0.1
Stefan Prodan cf080330ba
Merge pull request from fluxcd/kustomize-bootstrap-dir
Generate a kustomize package for the bootstrap manifests
stefanprodan 2373bacb0c Generate a kustomize package for the bootstrap manifests
stefanprodan 393be92632 Add support for multi-namespace tenant ownership
stefanprodan d11fa476e1 Refactor object kind/name parsing
stefanprodan bd2994f9ab Add support for Bucket sources to Kustomizations/HRs
stefanprodan 34147d7694 Add validation for bucket providers
stefanprodan a02452ccb9 Implement bucket CRUD commands
stefanprodan 1c7994a353 Add support for namespace/name format in depends-on
stefanprodan 7b4e815a8d Always apply sync manifests on bootstrap
Stefan Prodan b0e407bf30
Merge pull request from fluxcd/uninstall-fix
Suspend bootstrap kustomization on uninstall
stefanprodan f93a40a18b Suspend bootstrap kustomization on uninstall
stefanprodan 9b0c44162a Validate bootstrap required components
stefanprodan 101e7bbce0 Add support for ARMv7
stefanprodan fafcf09570 Add -n shorthand for namespace flag
stefanprodan 0b14328024 Use the group version for HR APIVersion
stefanprodan 2096532f5d Add create tenant command
stefanprodan 4136eb1444 Add export resource helper function
Stefan Prodan 67e0acd044
Merge pull request from stealthybox/shell-completions
Support bash, fish, zsh, and powershell shell completions as separate sub-commands
leigh capili cbcdfc5f6c Support bash, fish, zsh, and powershell shell completions as separate sub-commands
stefanprodan c36e02bba9 Update kustomize-controller to v0.0.12
stefanprodan 2bac5aabee Add log level flag
stefanprodan d5e78b9f80 Add watch all namespaces flag
stefanprodan 531c2bcf00 Import fluxcd/pkg/runtime
stefanprodan a7b1b04920 Add bootstrap reinstall e2e test
stefanprodan 1218d6abe8 Add branch flag to bootstrap cmd
stefanprodan afef6960b9 Cleanup GitHub e2e repo
stefanprodan b1e66f81ab Add label validation
stefanprodan 797cd9bea2 Add label arg to create commands
Hidde Beydals f18d1efdcb Refactor HelmRelease chart source kind validation
stefanprodan 8b6995e9ec Add decryption flags to create kustomization cmd
stefanprodan 5c8d00665f Use GitHub Container Registry for AMD64/ARM64 images
Stefan Prodan f4d78cc08e
Merge pull request from fluxcd/arch
Add ARM64 support to install/bootstrap
stefanprodan 3f07bd6471 Add arch flag to install/bootstrap
Hidde Beydals 2f861f19c0 Update `gotk create helmrelease` examples
To better reflect optional fields and highlight specific configuration
options.
Hidde Beydals e53d0dadbf Support GitRepository source in HelmRelease cmds
Hidde Beydals fa56685767 Upgrade Toolkit components and K8S deps
* github.com/fluxcd/helm-controller/api to v0.0.6
* github.com/fluxcd/source-controller/api to v0.0.13

* k8s.io/api to v0.18.8
* k8s.io/apiextensions-apiserver to v0.18.8
* k8s.io/apimachinery to v0.18.8
* k8s.io/client-go to v0.18.8
* sigs.k8s.io/controller-runtime to v0.6.2
Hidde Beydals 22624ae4d5 Rename `tk` binary to `gotk`
To avoid conflicts with the `tk` binary from the Tanka project.
Hidde Beydals e751bdc8a9 Change readiness check for HelmRelease
As the HelmRelease injects its own HelmChart, the first reconciliation
will always trigger a `Ready==False` condition while it waits for the
chart to become ready. Given this, we should only take this condition
into account when the `status.LastAttemptedRevision` has been recorded,
as this marks the fact that the chart is available and an action was
attempted.
Hidde Beydals 2078d048a1 Fix: change v1.JSON for HelmRelease to pointer
stefanprodan b5ed8f0183 Add SSH hostname arg to GitLab bootstrap
stefanprodan 17df7a46e2 Make export work offline
Hidde Beydals 123433c4ea Support providing TLS certs for helm source
Manuel Morejon ffd4784916
Replace tab by space
Manuel Morejon 750830c302
Replace tk sync example by tk reconcile
Manuel Morejon d245ef9b39
Remove tk sync example from help command
Signed-off-by: Manuel Morejon <manuel@mmorejon.io>
stefanprodan c2ff169c08 Add image pull secret arg to install/bootstrap
stefanprodan 57a1dbfc6d Add container registry option to install/bootstrap
Stefan Prodan efb39d6fc6
Merge pull request from fluxcd/node-selector
Add linux/amd64 node selector to controllers
stefanprodan aebad92426 Add linux/amd64 node selector to controllers
Set nodeSelector to linux/amd64 for clusters with mixed nodes (linux, windows, amd64, arm).
stefanprodan 8e67cfd5c9 Delete custom resources during uninstall
Remove Kustomizations, GitRepositories and HelmRepositories before deleting the toolkit controllers and CRDs.
stefanprodan 3620b76139 Make notification component optional
stefanprodan 0b2bc7ab3f Implement get/export HelmRelease for Helm releases
stefanprodan 797aec5528 Add create/delete HelmRelease e2e tests
stefanprodan 5f0b95dc59 Implement create/delete for Helm releases
stefanprodan 8534ccbf37 Implement Helm repository commands