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

[WIP]create deployments commands #455

Merged
merged 78 commits into from
Nov 12, 2023
Merged

[WIP]create deployments commands #455

merged 78 commits into from
Nov 12, 2023

Conversation

zreigz
Copy link
Member

@zreigz zreigz commented Sep 26, 2023

Summary

New CLI commands for CD deployments
Set env variables:
PLURAL_CONSOLE_URL=https://console.cd-demo.onplural.sh
PLURAL_CONSOLE_TOKEN=xxxx

Labels

Test Plan

Checklist

  • If required, I have updated the Plural documentation accordingly.
  • I have added tests to cover my changes.
  • I have added a meaningful title and summary to convey the impact of this PR to a user.
  • I have added relevant labels to this PR to help with categorization for release notes.

@zreigz zreigz changed the title create deployments commands [WIP]create deployments commands Sep 26, 2023
@zreigz zreigz added the enhancement New feature or request label Sep 26, 2023
pkg/console/console.go Outdated Show resolved Hide resolved
pkg/console/models.go Outdated Show resolved Hide resolved
return nil, fmt.Errorf("serviceId, serviceName and clusterName can not be null")
}
if serviceId != nil {
result, err := c.client.UpdateServiceDeployment(c.ctx, *serviceId, attributes)
Copy link
Member

Choose a reason for hiding this comment

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

we should be able to merge these mutations i believe

@michaeljguarino michaeljguarino merged commit ad21ffe into main Nov 12, 2023
7 of 11 checks passed
michaeljguarino added a commit that referenced this pull request Aug 28, 2024
* create deployments commands

* add repositories commands

* update client auth

* add deployments repositories create command

* add deployments repositories list command

* refactor

* bump go client

* fix list deployments

* use go client model

* create and update service deployment

* Small style tweaks and show repository health in `repositories list` (#458)

* Small style tweaks and show repository health in `repositories list`

Pull status is definitely nice to be able to see here.

* show pull errors as well

* describe service

* install agent helm  method

* create agent namespace

* enable CAPI feature flag for e2e

* add services delete command

* Extend clusters list display (#460)

Shows the provider, and shows repo by url instead of id in some places where useful

* describe cluster + code refacor

* add flag validation

* support handle for plural deployments services list/describe

* add required flags

* add handle for create CD service

* add wait flag for agent installation

* update services by handle

* add console client mocks

* improve describe cluster and service

* read kubeconfig from env var if present

* respect KUBECONFIG env var in plural kube client too

* force update helm repos on install to prevent stale chart installations

* use correct release name

* don't swallow helm errors

* extend update cluster for kubeconfig

* add plural cd providers list command

* create/delete provider credentials

* pipeline create command

* fix some repositories commands

* add deployments clusters get-credentials command (#467)

* Add a persistent config file for console logins on cli

* Implement `plural cd clusters delete` (#468)

When the console-client-go pr is merged, we can implement the `--soft` flag too.

* fix pointer bug on config updates

* add create cluster command

* create azure cluster

* fix after schema changes

* bump console client

* bump console client

* update arg name

* refactor cluster commands

* refactor provider command

* remove provider id param

* don't wait in cd install command

* add clusters bootstrap command

* add operator uninstall, cluster tags on bootstrap

* more tweaks to agent installer

* some more agent install tweaks

* update gcp provider

* update provider create

* fix profile list cmd

* filter out existing providers

* remove gcp credenitials b64 encode logic

* BYOK installer for plural console

* wrap up console installer

* fix linter

* refactor cd structure

* fix unit tests

* fix cd install command

* add kustomize support

* init eject command

* fix token name for cd install

* make cd clusters kubeconfig more robust

* add kas_dns to server context

* add eject command and fix gcp capi provider bootstrapping

* modify control plane installer

* add service clone support

---------

Co-authored-by: Marcin Maciaszczyk <[email protected]>
Co-authored-by: michaeljguarino <[email protected]>
Co-authored-by: Sebastian Florek <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants