Bug 2223747 - virtctl create instancetype/preference --namespaced flag render menifest
Summary: virtctl create instancetype/preference --namespaced flag render menifest
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: Infrastructure
Version: 4.14.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: Dominik Holler
QA Contact: Ying Cui
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-18 17:55 UTC by Roni Kishner
Modified: 2023-07-19 08:55 UTC (History)
0 users

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-07-19 08:55:50 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker CNV-31139 0 None None None 2023-07-18 17:56:55 UTC

Description Roni Kishner 2023-07-18 17:55:06 UTC
Description of problem:
When calling on instancetype or preference 'virtctl create <resource> --namespaced test' the resource will be become namespaced (VirtualMachinePreference/VirtualMachineInstancetype), but the namespace wont show in the menifest

Version-Release number of selected component (if applicable):
CNV 4.14

How reproducible:
100%

Steps to Reproduce:
1.virtctl create preference --namespaced roni


Actual results:

apiVersion: instancetype.kubevirt.io/v1beta1
kind: VirtualMachinePreference
metadata:
  creationTimestamp: null
  name: preference-zb4kc
spec: {}


Expected results:

apiVersion: instancetype.kubevirt.io/v1beta1
kind: VirtualMachinePreference
metadata:
  creationTimestamp: null
  name: preference-zb4kc
  namespace: roni
spec: {}

Comment 1 Roni Kishner 2023-07-19 08:55:50 UTC
A namespaced can be chosen using the -n flag -> 'create preference --namespaced | create -n <namespace_name> -f -'


Note You need to log in before you can comment on or make changes to this bug.