Skip to content

AttachedConnector example uses inconsistent site namespaces #301

Description

@pwright

Description

The attached connector example in the Kubernetes YAML service-exposure documentation uses different namespaces for the site:

  • AttachedConnector.spec.siteNamespace is set to skupper.
  • The associated AttachedConnectorBinding is created in namespace east.

siteNamespace must identify the namespace containing the Skupper site and the associated AttachedConnectorBinding. As written, the two resources do not form a valid pair.

Location

Current example

apiVersion: skupper.io/v2alpha1
kind: AttachedConnector
metadata:
  name: backend
  namespace: attached
spec:
  siteNamespace: skupper
  selector: app=backend
  port: 8080
---
apiVersion: skupper.io/v2alpha1
kind: AttachedConnectorBinding
metadata:
  name: backend
  namespace: east
spec:
  connectorNamespace: attached
  routingKey: backend

Expected example

Assuming that the site is in namespace east, change siteNamespace to east:

apiVersion: skupper.io/v2alpha1
kind: AttachedConnector
metadata:
  name: backend
  namespace: attached
spec:
  siteNamespace: east
  selector: app=backend
  port: 8080
---
apiVersion: skupper.io/v2alpha1
kind: AttachedConnectorBinding
metadata:
  name: backend
  namespace: east
spec:
  connectorNamespace: attached
  routingKey: backend

Additional documentation fixes

  • Replace the link to the Connector resource with links to the AttachedConnector and AttachedConnectorBinding resource references.
  • Create the attached namespace in the procedure, or list it as a prerequisite, before running the deployment command with --namespace attached.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions