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

DOC-11438 Docs for cc/console: Grouping clusters by labels #19484

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

florence-crl
Copy link
Contributor

@florence-crl florence-crl commented Apr 1, 2025

Fixes DOC-11438

Added manage-labels.md include file.
In *cluster-management.md, include manage-labels.md.
In cluster-management.md include file, fixed html_page_filenames list so that filter tabs appear.
Deleted cluster-management-advanced.md.
In redirects.yml, added entry for cluster-management-advanced.md to advanced-cluster-management.
In cluster-overview-page.md, added labels to settings for Standard/Basic and not Advanced.
In authorization.md, in Cluster Operator section added link to Manage Labels.
In billing-management.md, in View Credits balance section added link to Manage Labels.
In releases/cloud.md, added release note for Manage Labels.

Rendered previews

Copy link

github-actions bot commented Apr 1, 2025

Files changed:

Copy link

netlify bot commented Apr 1, 2025

Deploy Preview for cockroachdb-interactivetutorials-docs canceled.

Name Link
🔨 Latest commit 8c0a12f
🔍 Latest deploy log https://app.netlify.com/sites/cockroachdb-interactivetutorials-docs/deploys/67ec3cba1fd764000828094f

Copy link

netlify bot commented Apr 1, 2025

Deploy Preview for cockroachdb-api-docs canceled.

Name Link
🔨 Latest commit 8c0a12f
🔍 Latest deploy log https://app.netlify.com/sites/cockroachdb-api-docs/deploys/67ec3cbab6697200084452a0

Copy link

netlify bot commented Apr 1, 2025

Netlify Preview

Name Link
🔨 Latest commit 8c0a12f
🔍 Latest deploy log https://app.netlify.com/sites/cockroachdb-docs/deploys/67ec3cbaf2cc530008938718
😎 Deploy Preview https://deploy-preview-19484--cockroachdb-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

In redirects.yml, added entry for cluster-management-advanced.md to advanced-cluster-management.
@florence-crl florence-crl changed the title Added manage-labels.md. DOC-11438 Docs for cc/console: Grouping clusters by labels Apr 1, 2025
…sic and not Advanced.

In authorization.md, in Cluster Operator section added link to Manage Labels.

In billing-management.md, in View Credits balance section added link to Manage Labels.

In releases/cloud.md, add release note for Manage Labels.
@florence-crl florence-crl requested review from jaiayu and kteehan April 1, 2025 19:31

1. Navigate to the **Overview** page for the cluster to which you want to add labels.
1. Click the **Actions** button in the top right corner.
1. Select **Manage Labels** to open the **Edit cluster labels** window.
Copy link

Choose a reason for hiding this comment

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

I think the final copy will be Edit cluster labels and Edit folder labels, i'll confirm.

1. Enter a label key and an optional label value.
1. Click **+ Add**. The label appears under **Labels applied**.
1. Repeat steps 4 and 5 to add additional labels.
1. Click **Add/Update Labels** to apply the labels to the cluster.
Copy link

Choose a reason for hiding this comment

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

Do we want anything about seeing the success or failure notifications?

Copy link

Choose a reason for hiding this comment

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

I think we need a section on rules for labels. These are the rules (@linhcrl please confirm):

  • Max labels per cluster/folder are 50
  • Key is unique per resource (if cluster A has a label "environment:production", it cannot also have a label "environment:development")
  • Keys and values are limited to up to 63 characters
  • Keys and values are only allowed to have lowercase letters and numbers

@@ -0,0 +1,26 @@
## Manage labels

You can attach labels to your cluster through the {{ site.data.products.cloud }} Console.
Copy link

@jaiayu jaiayu Apr 8, 2025

Choose a reason for hiding this comment

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

You can also set labels via CC API and Terraform. Might be good to link to any corresponding docs here.

Copy link

@jaiayu jaiayu Apr 8, 2025

Choose a reason for hiding this comment

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

Might be a good idea to mention role requirements here for labels.

  • To add or remove labels on a cluster, you must have one of the following roles on the cluster: cluster admin or cluster operator.
  • To add or remove labels on a cluster, you must have the folder admin role.

@@ -0,0 +1,26 @@
## Manage labels

You can attach labels to your cluster through the {{ site.data.products.cloud }} Console.
Copy link

Choose a reason for hiding this comment

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

you can also label folders

@@ -14,6 +14,10 @@ Get future release notes emailed to you:

{% include marketo.html formId=1083 %}

## April 9, 2025
Copy link

Choose a reason for hiding this comment

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

Release date TBD :)

@@ -0,0 +1,26 @@
## Manage labels
Copy link

@jaiayu jaiayu Apr 9, 2025

Choose a reason for hiding this comment

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

@florence-crl it might be helpful for the user to have get more context on how to use labels. A quick overview at the start of the page could be helpful. WDYT?

This is GCP's page with a quick labels overview: https://cloud.google.com/resource-manager/docs/labels-overview. I particularly like the "What are labels" and "common uses of labels" section.

Copy link

@jaiayu jaiayu left a comment

Choose a reason for hiding this comment

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

Thanks @florence-crl! I left some feedback inline. A couple of things:

  • Could we include a quick overview of the feature with some example uses?
  • Can we include info on roles required to manage labels?
  • You can label both clusters and folders
  • There are rules/requirements for the labels you can use (like character limits, and things like that)

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