openshift / openshift/origin

Posting a V1 `ProjectRequest` drops Labels and Annotations

Open
#3,819 23 comments 3 reactions 1 assignee View on GitHub

@soltysh is already working on this.

Since Sep 6, 2016.

component/restapi lifecycle/frozen priority/P1
Dominant language
Go
Stars
8.7k
Forks
4.8k
Avg merge
4d 10h
Merged PRs (30d)
53

Description

When POSing this (valid JSON, just console.logs like this):

{ kind: 'ProjectRequest',
  apiVersion: 'v1',
  metadata: 
   { name: 'welcomeprojectcloos3y432',
     creationTimestamp: null,
     annotations: { 'rhmap.io/description': '' } },
  labels: 
   { 'rhmap.io/env': 'os3',
     'rhmap.io/guid': 'ujzozs3h5ldwo4orxsaky432',
     'rhmap.io/project': 'ujzozs773araip3o2zi7mwhp',
     'rhmap.io/domain': 'testing' },
  displayName: 'Welcome Project-cloud' }

both the annotations and labels are dropped. Could use projects API, but using project requests API so regular users can do the creation too.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.