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

Drop support for (archived) Compose-on-Kubernetes #3139

Merged
merged 4 commits into from
Feb 24, 2022

Conversation

ndeloof
Copy link
Contributor

@ndeloof ndeloof commented Jun 16, 2021

closes #2967
closes #3389
(https://docker.atlassian.net/browse/IL-257 for internal tracker)

- What I did
Removed support for Kubernetes orchestrator, as required compose-on-kubernetes backend is archived

- How I did it
Code removal

- How to verify it
isn't this what CI is for ? :P

- Description for the changelog
Removed support for deprecated Compose-on-Kubernetes

- A picture of a cute animal (not mandatory but encouraged)
image

@ndeloof ndeloof force-pushed the drop_kubernetes_support branch 5 times, most recently from abb4bd1 to 6077685 Compare June 16, 2021 12:11
@thaJeztah
Copy link
Member

Does this mean we should also remove the "kubernetes endpoint" from docker context ?

@ndeloof
Copy link
Contributor Author

ndeloof commented Jun 21, 2021

@thaJeztah yes indeed

@eclipseo
Copy link

eclipseo commented Aug 3, 2021

There are still instances of compose-on-kubernetes in the source even with this patch:

kubernetes/check.go
4:      apiv1alpha3 "github.com/docker/compose-on-kubernetes/api/compose/v1alpha3"
5:      apiv1beta1 "github.com/docker/compose-on-kubernetes/api/compose/v1beta1"
6:      apiv1beta2 "github.com/docker/compose-on-kubernetes/api/compose/v1beta2"

kubernetes/labels/labels.go
3:import labels "github.com/docker/compose-on-kubernetes/api/labels"
7:      // Deprecated: Use github.com/docker/compose-on-kubernetes/api/labels.ForServiceName instead
10:     // Deprecated: Use github.com/docker/compose-on-kubernetes/api/labels.ForStackName instead
13:     // Deprecated: Use github.com/docker/compose-on-kubernetes/api/labels.ForServiceID instead
18:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/labels.ForService instead
23:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/labels.SelectorForStack instead

kubernetes/compose/impersonation/impersonationconfig.go
3:import api "github.com/docker/compose-on-kubernetes/api/compose/impersonation"
6:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/impersonation.Config instead

kubernetes/compose/v1beta1/owner.go
3:import api "github.com/docker/compose-on-kubernetes/api/compose/v1beta1"
7:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta1.Owner instead

kubernetes/client/listers/compose/v1beta2/stack.go
3:import api "github.com/docker/compose-on-kubernetes/api/client/listers/compose/v1beta2"
6:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/client/listers/compose/v1beta2.StackLister instead
10:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/client/listers/compose/v1beta2.NewStackLister instead
14:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/client/listers/compose/v1beta2.StackNamespaceLister instead

kubernetes/client/informers/internalinterfaces/factory_interfaces.go
3:import api "github.com/docker/compose-on-kubernetes/api/client/informers/internalinterfaces"
6:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/client/informers/internalinterfaces.NewInformerFunc instead
10:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/client/informers/internalinterfaces.SharedInformerFactory instead

kubernetes/client/listers/compose/v1beta2/expansion_generated.go
3:import api "github.com/docker/compose-on-kubernetes/api/client/listers/compose/v1beta2"
7:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/client/listers/compose/v1beta2.StackListerExpansion instead
12:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/client/listers/compose/v1beta2.StackNamespaceListerExpansion instead

kubernetes/compose/v1beta1/register.go
3:import api "github.com/docker/compose-on-kubernetes/api/compose/v1beta1"
6:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta1.GroupName instead
12:     // Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta1.SchemeGroupVersion instead
14:     // Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta1.SchemeBuilder instead
16:     // Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta1.AddToScheme instead
21:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta1.Resource instead

kubernetes/client/clientset/clientset.go
3:import api "github.com/docker/compose-on-kubernetes/api/client/clientset"
6:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/client/clientset.Interface instead
11:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/client/clientset.Clientset instead
15:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/client/clientset.NewForConfig instead
20:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/client/clientset.NewForConfigOrDie instead
24:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/client/clientset.New instead

kubernetes/compose/v1beta1/stack.go
3:import api "github.com/docker/compose-on-kubernetes/api/compose/v1beta1"
6:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta1.StackList instead
10:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta1.Stack instead
14:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta1.StackSpec instead
18:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta1.StackPhase instead
24:     // Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta1.StackAvailable instead
27:     // Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta1.StackProgressing instead
31:     // Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta1.StackFailure instead
36:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta1.StackStatus instead

kubernetes/client/informers/generic.go
3:import api "github.com/docker/compose-on-kubernetes/api/client/informers"
7:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/client/informers.GenericInformer instead

kubernetes/compose/v1beta1/parsing.go
3:import api "github.com/docker/compose-on-kubernetes/api/compose/v1beta1"
6:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta1.MaxComposeVersion instead

kubernetes/compose/v1beta2/scale.go
3:import api "github.com/docker/compose-on-kubernetes/api/compose/v1beta2"
6:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.Scale instead

kubernetes/client/clientset/typed/compose/v1beta1/compose_client.go
3:import api "github.com/docker/compose-on-kubernetes/api/client/clientset/typed/compose/v1beta1"
6:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/client/clientset/typed/compose/v1beta1.ComposeV1beta1Interface instead
10:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/client/clientset/typed/compose/v1beta1.ComposeV1beta1Client instead
14:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/client/clientset/typed/compose/v1beta1.NewForConfig instead
19:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/client/clientset/typed/compose/v1beta1.NewForConfigOrDie instead
23:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/client/clientset/typed/compose/v1beta1.New instead

kubernetes/compose/v1beta2/owner.go
3:import api "github.com/docker/compose-on-kubernetes/api/compose/v1beta2"
6:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.Owner instead

kubernetes/client/informers/compose/interface.go
3:import api "github.com/docker/compose-on-kubernetes/api/client/informers/compose"
6:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/client/informers/compose.Interface instead
10:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/client/informers/compose.New instead

kubernetes/client/clientset/scheme/register.go
3:import api "github.com/docker/compose-on-kubernetes/api/client/clientset/scheme"
7:      // Deprecated: Use github.com/docker/compose-on-kubernetes/api/client/clientset/scheme.Scheme instead
9:      // Deprecated: Use github.com/docker/compose-on-kubernetes/api/client/clientset/scheme.Codecs instead
11:     // Deprecated: Use github.com/docker/compose-on-kubernetes/api/client/clientset/scheme.ParameterCodec instead
29:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/client/clientset/scheme.AddToScheme instead

kubernetes/compose/v1beta2/composefile_stack_types.go
3:import api "github.com/docker/compose-on-kubernetes/api/compose/v1beta2"
6:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.ComposeFile instead

kubernetes/client/informers/compose/v1beta2/stack.go
3:import api "github.com/docker/compose-on-kubernetes/api/client/informers/compose/v1beta2"
7:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/client/informers/compose/v1beta2.StackInformer instead

kubernetes/client/clientset/typed/compose/v1beta1/stack.go
3:import api "github.com/docker/compose-on-kubernetes/api/client/clientset/typed/compose/v1beta1"
7:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/client/clientset/typed/compose/v1beta1.StacksGetter instead
11:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/client/clientset/typed/compose/v1beta1.StackInterface instead

kubernetes/client/clientset/typed/compose/v1beta2/stack.go
3:import api "github.com/docker/compose-on-kubernetes/api/client/clientset/typed/compose/v1beta2"
7:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/client/clientset/typed/compose/v1beta2.StacksGetter instead
11:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/client/clientset/typed/compose/v1beta2.StackInterface instead

kubernetes/client/clientset/typed/compose/v1beta2/compose_client.go
3:import api "github.com/docker/compose-on-kubernetes/api/client/clientset/typed/compose/v1beta2"
6:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/client/clientset/typed/compose/v1beta2.StackInterface instead
10:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/client/clientset/typed/compose/v1beta2.ComposeV1beta2Client instead
14:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/client/clientset/typed/compose/v1beta2.NewForConfig instead
19:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/client/clientset/typed/compose/v1beta2.NewForConfigOrDie instead
23:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/client/clientset/typed/compose/v1beta2.New instead

kubernetes/compose/v1beta2/register.go
3:import api "github.com/docker/compose-on-kubernetes/api/compose/v1beta2"
6:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.Owner instead
11:     // Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.SchemeGroupVersion instead
14:     // Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.SchemeBuilder instead
17:     // Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.AddToScheme instead
22:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.GroupResource instead

kubernetes/compose/v1beta2/stack.go
3:import api "github.com/docker/compose-on-kubernetes/api/compose/v1beta2"
6:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.StackList instead
10:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.Stack instead
14:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.StackSpec instead
18:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.ServiceConfig instead
22:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.ServicePortConfig instead
26:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.FileObjectConfig instead
30:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.SecretConfig instead
34:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.ConfigObjConfig instead
40:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.External instead
44:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.FileReferenceConfig instead
48:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.ServiceConfigObjConfig instead
52:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.ServiceSecretConfig instead
56:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.DeployConfig instead
60:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.UpdateConfig instead
64:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.Resources instead
68:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.Resource instead
72:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.RestartPolicy instead
76:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.Placement instead
80:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.Constraints instead
84:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.Constraint instead
88:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.HealthCheckConfig instead
92:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.ServiceVolumeConfig instead
96:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.StackPhase instead
102:    // Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.StackAvailable instead
105:    // Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.StackProgressing instead
109:    // Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.StackFailure instead
114:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.StackStatus instead

kubernetes/compose/clone/slices.go
3:import api "github.com/docker/compose-on-kubernetes/api/compose/clone"
6:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/clone.SliceOfString instead

kubernetes/compose/clone/maps.go
3:import api "github.com/docker/compose-on-kubernetes/api/compose/clone"
6:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/clone.MapOfStringToSliceOfString instead
10:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/clone.MapOfStringToInt instead

kubernetes/client/informers/factory.go
3:import api "github.com/docker/compose-on-kubernetes/api/client/informers"
6:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/client/informers.NewSharedInformerFactory instead
11:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/client/informers.SharedInformerFactory instead

kubernetes/client/informers/compose/v1beta2/interface.go
3:import api "github.com/docker/compose-on-kubernetes/api/client/informers/compose/v1beta2"
6:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/client/informers/compose/v1beta2.Interface instead
10:// Deprecated: Use github.com/docker/compose-on-kubernetes/api/client/informers/compose/v1beta2.New instead

cli/command/system/version.go
18:     kubeapi "github.com/docker/compose-on-kubernetes/api"

@cpuguy83
Copy link
Collaborator

cpuguy83 commented Aug 3, 2021

image

💯

@codecov-commenter
Copy link

codecov-commenter commented Feb 18, 2022

Codecov Report

Merging #3139 (013a74f) into master (cf8c4ba) will increase coverage by 0.95%.
The diff coverage is 69.23%.

@@            Coverage Diff             @@
##           master    #3139      +/-   ##
==========================================
+ Coverage   57.33%   58.29%   +0.95%     
==========================================
  Files         304      287      -17     
  Lines       26379    24142    -2237     
==========================================
- Hits        15124    14073    -1051     
+ Misses      10329     9210    -1119     
+ Partials      926      859      -67     

Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

Thanks! Left one comment in-line w.r.t. the test, and some comment about (probably ok as follow-up)

Could you;

  • have a quick peek at the test (do we still need that case? if so, should it be in a separate test? or should we remove it?)
  • squash the commits; I think the first commit doesn't build (so would disallow doing a git bisect); it's probably fine to squash all commits to a single one
  • Looks like a linter isn't happy;
cli/command/context/create.go:6: File is not `goimports`-ed (goimports)
    "github.com/sirupsen/logrus"
cli/command/context/update.go:6: File is not `goimports`-ed (goimports)
    "github.com/sirupsen/logrus"

cli/command/context/create_test.go Show resolved Hide resolved
@@ -107,6 +108,9 @@ func createNewContext(o *CreateOptions, stackOrchestrator command.Orchestrator,
if dockerTLS != nil {
contextTLSData.Endpoints[docker.DockerEndpoint] = *dockerTLS
}
if len(o.Kubernetes) != 0 {
logrus.Warn("kubernetes orchestrator is deprecated")
Copy link
Member

Choose a reason for hiding this comment

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

I wanted to suggest to perhaps just use fmt.Printf() here (as logrus formatting is a bit "meh" on the CLI), but I'm ok with doing in a follow-up;

docker context create --docker host=tcp://localhost:2375 --kubernetes host=http://foo:1234 bla
WARN[0000] kubernetes orchestrator is deprecated
bla
Successfully created context "bla"

Perhaps we should generate the warning earlier, or use flags.MarkDeprecated() (which both hides the flag, and prints a deprecation message)

Giving it a quick try what it looks like with flags.MarkDeprecated();

diff --git a/cli/command/context/update.go b/cli/command/context/update.go
index 55f775037..bcf1a6101 100644
--- a/cli/command/context/update.go
+++ b/cli/command/context/update.go
@@ -3,7 +3,6 @@ package context
 import (
        "bytes"
        "fmt"
-       "github.com/sirupsen/logrus"
        "text/tabwriter"

        "github.com/docker/cli/cli"
@@ -60,8 +59,8 @@ func newUpdateCommand(dockerCli command.Cli) *cobra.Command {
        flags.SetAnnotation("default-stack-orchestrator", "deprecated", nil)
        flags.StringToStringVar(&opts.Docker, "docker", nil, "set the docker endpoint")
        flags.StringToStringVar(&opts.Kubernetes, "kubernetes", nil, "set the kubernetes endpoint")
+       flags.MarkDeprecated("kubernetes", "option will be ignored")
        flags.SetAnnotation("kubernetes", "kubernetes", nil)
-       flags.SetAnnotation("kubernetes", "deprecated", nil)
        return cmd
 }

@@ -102,9 +101,6 @@ func RunUpdate(cli command.Cli, o *UpdateOptions) error {
                c.Endpoints[docker.DockerEndpoint] = dockerEP
                tlsDataToReset[docker.DockerEndpoint] = dockerTLS
        }
-       if len(o.Kubernetes) != 0 {
-               logrus.Warn("kubernetes orchestrator is deprecated")
-       }
        if err := validateEndpointsAndOrchestrator(c); err != nil {
                return err
        }
docker context update --kubernetes host=tcp://foo:1234 bla
Flag --kubernetes has been deprecated, option will be ignored
bla
Successfully updated context "bla"

@thaJeztah
Copy link
Member

I also had a quick look at what it looks like on this PR; I think there's some follow-up changes we should make

First of all, wondering if we should consider removing the ORCHESTRATOR column from the default output (although we could probably do this in a follow-up);

docker context ls
NAME        DESCRIPTION                               DOCKER ENDPOINT               ORCHESTRATOR
default *   Current DOCKER_HOST based configuration   unix:///var/run/docker.sock   swarm

Looking at docker context create, there's some bits we should change;

docker context create --help

Usage:  docker context create [OPTIONS] CONTEXT

Create a context

Docker endpoint config:

NAME                DESCRIPTION
from                Copy named context's Docker endpoint configuration
host                Docker endpoint on which to connect
ca                  Trust certs signed only by this CA
cert                Path to TLS certificate file
key                 Path to TLS key file
skip-tls-verify     Skip TLS certificate validation

Example:

$ docker context create my-context --description "some description" --docker "host=tcp://myserver:2376,ca=~/ca-file,cert=~/cert-file,key=~/key-file"

Options:
      --default-stack-orchestrator string   Default orchestrator for stack operations to use with this context (swarm|kubernetes|all)
      --description string                  Description of the context
      --docker stringToString               set the docker endpoint (default [])
      --from string                         create context from a named context
      --kubernetes stringToString           set the kubernetes endpoint (default [])

From the above, I would suggest to:

  • the --default-stack-orchestrator still mentions kubernetes (as well as all);
  • hide the --kubernetes flag; we can keep it as hidden (so that the warning (or error) can be printed)
  • same for --default-stack-orchestrator

It looks like there's logic in various locations to (e.g.) normalize Orchestrator, etc. etc. that we should probably remove. Effectively we'll only have 1 orchestrator now (swarmkit; and only if swarmkit is enabled), so perhaps there's more cruft to remove.

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
…text

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
@ndeloof ndeloof force-pushed the drop_kubernetes_support branch 3 times, most recently from feb7525 to 5e485c1 Compare February 22, 2022 13:05
@ndeloof ndeloof force-pushed the drop_kubernetes_support branch 3 times, most recently from b93e35e to b17830f Compare February 22, 2022 14:05
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
@ndeloof
Copy link
Contributor Author

ndeloof commented Feb 22, 2022

@thaJeztah squashed and removed support for multiple orchestrator in context store / stack commands

Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for updating.

I was going through the code, and noticed there's a bunch of locations still referring to the removed options (docs, completion scripts), but let me open a follow-up PR for those changes (possibly there's more, so let's first remove what we have in this PR).

@thaJeztah thaJeztah added this to the 21.xx milestone Feb 23, 2022
@thaJeztah
Copy link
Member

@silvin-lubecki this one good to go?

Copy link
Contributor

@silvin-lubecki silvin-lubecki left a comment

Choose a reason for hiding this comment

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

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
@thaJeztah
Copy link
Member

should we update https://github.com/docker/cli/blob/master/docs/deprecated.md#kubernetes-stack-and-context-support and marked it as removed ?

Yes! I had some changes already locally as follow-up (didn't want to block the PR 😅), but I see @ndeloof updated it (thanks!); let's merge this when CI completes 👍

@thaJeztah
Copy link
Member

thaJeztah commented Feb 24, 2022

LOL, and of course some failure in CI now (looks like it may be a flaky / race (based on the name of the test);

--- FAIL: TestInitTtySizeErrors (0.13s)
    tty_test.go:29: assertion failed: 
        --- expectedError
        +++ →
        @@ -1,2 +1 @@
        -failed to resize tty, using default size

I'll kick CI again

@thaJeztah
Copy link
Member

It's green! ✅✅ ✅ ✅

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.

Drop Kubernetes support (compose-on-kubernetes is now unmaintained & archived)
6 participants