Skip to content

Commit

Permalink
Adds shortname to all the CRDs (#1050)
Browse files Browse the repository at this point in the history
* short names to v1alpha1

* short names to v1alpha1

* short names to v1alpha1

* path fix to the right crds

* shortname to rest of versions

* accidental delete
  • Loading branch information
melonrush13 authored May 15, 2020
1 parent 5db1244 commit d46596d
Show file tree
Hide file tree
Showing 38 changed files with 38 additions and 0 deletions.
1 change: 1 addition & 0 deletions api/v1alpha1/apimgmt_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ type APIMgmtSpec struct {

// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
// +kubebuilder:resource:shortName=apim,path=apimgmt
// +kubebuilder:printcolumn:name="Provisioned",type="string",JSONPath=".status.provisioned"
// +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.message"
type APIMgmtAPI struct {
Expand Down
1 change: 1 addition & 0 deletions api/v1alpha1/apimservice_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ type ApimServiceSpec struct {
// +kubebuilder:subresource:status

// ApimService is the Schema for the apimservices API
// +kubebuilder:resource:shortName=apims,path=apimservice
// +kubebuilder:printcolumn:name="Provisioned",type="string",JSONPath=".status.provisioned"
// +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.message"
type ApimService struct {
Expand Down
1 change: 1 addition & 0 deletions api/v1alpha1/appinsights_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ type AppInsightsSpec struct {
// +kubebuilder:subresource:status

// AppInsights is the Schema for the appinsights API
// +kubebuilder:resource:shortName=ai,path=appinsights
// +kubebuilder:printcolumn:name="Provisioned",type="string",JSONPath=".status.provisioned"
// +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.message"
type AppInsights struct {
Expand Down
1 change: 1 addition & 0 deletions api/v1alpha1/azureloadbalancer_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ type AzureLoadBalancerSpec struct {
// +kubebuilder:subresource:status

// AzureLoadBalancer is the Schema for the azureloadbalancers API
// +kubebuilder:resource:shortName=lb,path=loadbalancer
// +kubebuilder:printcolumn:name="Provisioned",type="string",JSONPath=".status.provisioned"
// +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.message"
type AzureLoadBalancer struct {
Expand Down
1 change: 1 addition & 0 deletions api/v1alpha1/azurenetworkinterface_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ type AzureNetworkInterfaceSpec struct {
// +kubebuilder:subresource:status

// AzureNetworkInterface is the Schema for the azurenetworkinterfaces API
// +kubebuilder:resource:shortName=ni,path=azurenetworkinterfaces
// +kubebuilder:printcolumn:name="Provisioned",type="string",JSONPath=".status.provisioned"
// +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.message"
type AzureNetworkInterface struct {
Expand Down
1 change: 1 addition & 0 deletions api/v1alpha1/azurepublicipaddress_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ type AzurePublicIPAddressSpec struct {
// +kubebuilder:subresource:status

// AzurePublicIPAddress is the Schema for the azurepublicipaddresses API
// +kubebuilder:resource:shortName=pipa,path=azurepublicipaddress
// +kubebuilder:printcolumn:name="Provisioned",type="string",JSONPath=".status.provisioned"
// +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.message"
type AzurePublicIPAddress struct {
Expand Down
1 change: 1 addition & 0 deletions api/v1alpha1/azuresqlaction_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ type AzureSqlActionSpec struct {
// +kubebuilder:subresource:status

// AzureSqlAction is the Schema for the azuresqlactions API
// +kubebuilder:resource:shortName=asqla,path=azuresqlaction
// +kubebuilder:printcolumn:name="Provisioned",type="string",JSONPath=".status.provisioned"
// +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.message"
type AzureSqlAction struct {
Expand Down
1 change: 1 addition & 0 deletions api/v1alpha1/azuresqldatabase_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ type AzureSqlDatabaseSpec struct {
// +kubebuilder:subresource:status

// AzureSqlDatabase is the Schema for the azuresqldatabases API
// +kubebuilder:resource:shortName=asqldb,path=azuresqldatabase
// +kubebuilder:printcolumn:name="Provisioned",type="string",JSONPath=".status.provisioned"
// +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.message"
type AzureSqlDatabase struct {
Expand Down
1 change: 1 addition & 0 deletions api/v1alpha1/azuresqlfailovergroup_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ type AzureSqlFailoverGroupSpec struct {
// +kubebuilder:subresource:status

// AzureSqlFailoverGroup is the Schema for the azuresqlfailovergroups API
// +kubebuilder:resource:shortName=asqlfg,path=azuresqlfailovergroup
// +kubebuilder:printcolumn:name="Provisioned",type="string",JSONPath=".status.provisioned"
// +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.message"
type AzureSqlFailoverGroup struct {
Expand Down
1 change: 1 addition & 0 deletions api/v1alpha1/azuresqlfirewallrule_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ type AzureSqlFirewallRuleSpec struct {
// +kubebuilder:subresource:status

// AzureSqlFirewallRule is the Schema for the azuresqlfirewallrules API
// +kubebuilder:resource:shortName=asqlfwr,path=azuresqlfirewallrule
// +kubebuilder:printcolumn:name="Provisioned",type="string",JSONPath=".status.provisioned"
// +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.message"
type AzureSqlFirewallRule struct {
Expand Down
1 change: 1 addition & 0 deletions api/v1alpha1/azuresqlserver_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ type AzureSqlServerSpec struct {
// +kubebuilder:subresource:status

// AzureSqlServer is the Schema for the azuresqlservers API
// +kubebuilder:resource:shortName=asqls,path=azuresqlserver
// +kubebuilder:printcolumn:name="Provisioned",type="string",JSONPath=".status.provisioned"
// +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.message"
type AzureSqlServer struct {
Expand Down
1 change: 1 addition & 0 deletions api/v1alpha1/azuresqluser_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ type AzureSQLUserSpec struct {
// +kubebuilder:subresource:status

// AzureSQLUser is the Schema for the sqlusers API
// +kubebuilder:resource:shortName=asqlu,path=azuresqluser
// +kubebuilder:printcolumn:name="Provisioned",type="string",JSONPath=".status.provisioned"
// +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.message"
type AzureSQLUser struct {
Expand Down
1 change: 1 addition & 0 deletions api/v1alpha1/azuresqlvnetrule_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ type AzureSQLVNetRuleSpec struct {
// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
// AzureSQLVNetRule is the Schema for the azuresqlvnetrules API
// +kubebuilder:resource:shortName=asqlvn,path=azuresqlvnetrule
// +kubebuilder:printcolumn:name="Provisioned",type="string",JSONPath=".status.provisioned"
// +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.message"
type AzureSQLVNetRule struct {
Expand Down
1 change: 1 addition & 0 deletions api/v1alpha1/azurevirtualmachine_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const (
// +kubebuilder:subresource:status

// AzureVirtualMachine is the Schema for the azurevirtualmachines API
// +kubebuilder:resource:shortName=vm,path=azurevirtualmachine
// +kubebuilder:printcolumn:name="Provisioned",type="string",JSONPath=".status.provisioned"
// +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.message"
type AzureVirtualMachine struct {
Expand Down
1 change: 1 addition & 0 deletions api/v1alpha1/azurevmscaleset_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ type AzureVMScaleSetSpec struct {
// +kubebuilder:subresource:status

// AzureVMScaleSet is the Schema for the azurevmscalesets API
// +kubebuilder:resource:shortName=vmss,path=azurevmscaleset
// +kubebuilder:printcolumn:name="Provisioned",type="string",JSONPath=".status.provisioned"
// +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.message"
type AzureVMScaleSet struct {
Expand Down
1 change: 1 addition & 0 deletions api/v1alpha1/blobcontainer_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ type BlobContainerSpec struct {
// +kubebuilder:subresource:status

// BlobContainer is the Schema for the blobcontainers API
// +kubebuilder:resource:shortName=bc,path=blobcontainer
// +kubebuilder:printcolumn:name="Provisioned",type="string",JSONPath=".status.provisioned"
// +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.message"
type BlobContainer struct {
Expand Down
1 change: 1 addition & 0 deletions api/v1alpha1/consumergroup_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ type ConsumerGroupSpec struct {
// +kubebuilder:subresource:status

// ConsumerGroup is the Schema for the consumergroups API
// +kubebuilder:resource:shortName=cg,path=consumergroup
// +kubebuilder:printcolumn:name="Provisioned",type="string",JSONPath=".status.provisioned"
// +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.message"
type ConsumerGroup struct {
Expand Down
1 change: 1 addition & 0 deletions api/v1alpha1/cosmosdb_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ type CosmosDBLocation struct {
// +kubebuilder:subresource:status

// CosmosDB is the Schema for the cosmosdbs API
// +kubebuilder:resource:shortName=cdb,path=cosmosdb
// +kubebuilder:printcolumn:name="Provisioned",type="string",JSONPath=".status.provisioned"
// +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.message"
type CosmosDB struct {
Expand Down
1 change: 1 addition & 0 deletions api/v1alpha1/eventhub_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ type EventhubProperties struct {
// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
// Eventhub is the Schema for the eventhubs API
// +kubebuilder:resource:shortName=eh,path=eventhub
// +kubebuilder:printcolumn:name="Provisioned",type="string",JSONPath=".status.provisioned"
// +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.message"
type Eventhub struct {
Expand Down
1 change: 1 addition & 0 deletions api/v1alpha1/eventhubnamespace_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ type EventhubNamespaceSpec struct {
// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
// EventhubNamespace is the Schema for the eventhubnamespaces API
// +kubebuilder:resource:shortName=ehns,path=eventhubnamespaces
// +kubebuilder:printcolumn:name="Provisioned",type="string",JSONPath=".status.provisioned"
// +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.message"
type EventhubNamespace struct {
Expand Down
1 change: 1 addition & 0 deletions api/v1alpha1/keyvault_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ type Permissions struct {
// +kubebuilder:subresource:status

// KeyVault is the Schema for the keyvaults API
// +kubebuilder:resource:shortName=kv,path=keyvault
// +kubebuilder:printcolumn:name="Provisioned",type="string",JSONPath=".status.provisioned"
// +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.message"
type KeyVault struct {
Expand Down
1 change: 1 addition & 0 deletions api/v1alpha1/keyvaultkey_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ type KeyVaultKeySpec struct {
// +kubebuilder:subresource:status

// KeyVaultKey is the Schema for the keyvaultkeys API
// +kubebuilder:resource:shortName=kvk,path=keyvaultkey
// +kubebuilder:printcolumn:name="Provisioned",type="string",JSONPath=".status.provisioned"
// +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.message"
type KeyVaultKey struct {
Expand Down
1 change: 1 addition & 0 deletions api/v1alpha1/mysqldatabase_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ type MySQLDatabaseSpec struct {
// +kubebuilder:subresource:status

// MySQLDatabase is the Schema for the mysqldatabases API
// +kubebuilder:resource:shortName=mysqldb,path=mysqldatabase
// +kubebuilder:printcolumn:name="Provisioned",type="string",JSONPath=".status.provisioned"
// +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.message"
type MySQLDatabase struct {
Expand Down
1 change: 1 addition & 0 deletions api/v1alpha1/mysqlfirewallrule_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ type MySQLFirewallRuleSpec struct {
// +kubebuilder:subresource:status

// MySQLFirewallRule is the Schema for the mysqlfirewallrules API
// +kubebuilder:resource:shortName=mysqlfwr,path=mysqlfirewallrule
// +kubebuilder:printcolumn:name="Provisioned",type="string",JSONPath=".status.provisioned"
// +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.message"
type MySQLFirewallRule struct {
Expand Down
1 change: 1 addition & 0 deletions api/v1alpha1/mysqlserver_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ type MySQLServerSpec struct {
// +kubebuilder:subresource:status

// MySQLServer is the Schema for the mysqlservers API
// +kubebuilder:resource:shortName=mysqls,path=mysqlserver
// +kubebuilder:printcolumn:name="Provisioned",type="string",JSONPath=".status.provisioned"
// +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.message"
type MySQLServer struct {
Expand Down
1 change: 1 addition & 0 deletions api/v1alpha1/mysqlvnetrule_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ type MySQLVNetRuleSpec struct {
// +kubebuilder:object:root=true

// MySQLVNetRule is the Schema for the mysqlvnetrules API
// +kubebuilder:resource:shortName=mysqlvn,path=mysqlvnetrule
// +kubebuilder:printcolumn:name="Provisioned",type="string",JSONPath=".status.provisioned"
// +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.message"
type MySQLVNetRule struct {
Expand Down
1 change: 1 addition & 0 deletions api/v1alpha1/postgresqldatabase_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ type PostgreSQLDatabaseSpec struct {
// +kubebuilder:subresource:status

// PostgreSQLDatabase is the Schema for the postgresqldatabases API
// +kubebuilder:resource:shortName=psqldb,path=postgresqldatabase
// +kubebuilder:printcolumn:name="Provisioned",type="string",JSONPath=".status.provisioned"
// +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.message"
type PostgreSQLDatabase struct {
Expand Down
1 change: 1 addition & 0 deletions api/v1alpha1/postgresqlfirewallrule_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ type PostgreSQLFirewallRuleSpec struct {
// +kubebuilder:subresource:status

// PostgreSQLFirewallRule is the Schema for the postgresqlfirewallrules API
// +kubebuilder:resource:shortName=psqlfwr,path=postgresqlfirewallrule
// +kubebuilder:printcolumn:name="Provisioned",type="string",JSONPath=".status.provisioned"
// +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.message"
type PostgreSQLFirewallRule struct {
Expand Down
1 change: 1 addition & 0 deletions api/v1alpha1/postgresqlserver_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ const (
// +kubebuilder:subresource:status

// PostgreSQLServer is the Schema for the postgresqlservers API
// +kubebuilder:resource:shortName=psqls,path=postgresqlserver
// +kubebuilder:printcolumn:name="Provisioned",type="string",JSONPath=".status.provisioned"
// +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.message"
type PostgreSQLServer struct {
Expand Down
1 change: 1 addition & 0 deletions api/v1alpha1/postgresqlvnetrule_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ type PostgreSQLVNetRuleSpec struct {
// +kubebuilder:object:root=true

// PostgreSQLVNetRule is the Schema for the PostgreSQLVNetRules API
// +kubebuilder:resource:shortName=psqlvn,path=postgresqlvnetrule
// +kubebuilder:printcolumn:name="Provisioned",type="string",JSONPath=".status.provisioned"
// +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.message"
type PostgreSQLVNetRule struct {
Expand Down
1 change: 1 addition & 0 deletions api/v1alpha1/rediscache_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ const (
// +kubebuilder:subresource:status

// RedisCache is the Schema for the rediscaches API
// +kubebuilder:resource:shortName=rc,path=rediscache
// +kubebuilder:printcolumn:name="Provisioned",type="string",JSONPath=".status.provisioned"
// +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.message"
type RedisCache struct {
Expand Down
1 change: 1 addition & 0 deletions api/v1alpha1/storageaccount_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ type StorageAccountAccessTier string
// +kubebuilder:subresource:status

// StorageAccount is the Schema for the storages API
// +kubebuilder:resource:shortName=sa,path=storage
// +kubebuilder:printcolumn:name="Provisioned",type="string",JSONPath=".status.provisioned"
// +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.message"
type StorageAccount struct {
Expand Down
1 change: 1 addition & 0 deletions api/v1alpha1/virtualnetwork_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ type VirtualNetworkSpec struct {
// +kubebuilder:subresource:status

// VirtualNetwork is the Schema for the virtualnetworks API
// +kubebuilder:resource:shortName=vn,path=virtualnetworks
// +kubebuilder:printcolumn:name="Provisioned",type="string",JSONPath=".status.provisioned"
// +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.message"
type VirtualNetwork struct {
Expand Down
1 change: 1 addition & 0 deletions api/v1alpha2/blobcontainer_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ type BlobContainerSpec struct {
// +kubebuilder:storageversion

// BlobContainer is the Schema for the blobcontainers API
// +kubebuilder:resource:shortName=bc,path=blobcontainer
// +kubebuilder:printcolumn:name="Provisioned",type="string",JSONPath=".status.provisioned"
// +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.message"
type BlobContainer struct {
Expand Down
1 change: 1 addition & 0 deletions api/v1beta1/azuresqldatabase_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ type AzureSqlDatabaseSpec struct {
// +kubebuilder:storageversion

// AzureSqlDatabase is the Schema for the azuresqldatabases API
// +kubebuilder:resource:shortName=asqldb,path=azuresqldatabase
// +kubebuilder:printcolumn:name="Provisioned",type="string",JSONPath=".status.provisioned"
// +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.message"
type AzureSqlDatabase struct {
Expand Down
1 change: 1 addition & 0 deletions api/v1beta1/azuresqlfailovergroup_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ type AzureSqlFailoverGroupSpec struct {
// +kubebuilder:storageversion

// AzureSqlFailoverGroup is the Schema for the azuresqlfailovergroups API
// +kubebuilder:resource:shortName=asqlfg,path=azuresqlfailovergroup
// +kubebuilder:printcolumn:name="Provisioned",type="string",JSONPath=".status.provisioned"
// +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.message"
type AzureSqlFailoverGroup struct {
Expand Down
1 change: 1 addition & 0 deletions api/v1beta1/azuresqlfirewallrule_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ type AzureSqlFirewallRuleSpec struct {
// +kubebuilder:storageversion

// AzureSqlFirewallRule is the Schema for the azuresqlfirewallrules API
// +kubebuilder:resource:shortName=asqlfwr,path=azuresqlfirewallrule
// +kubebuilder:printcolumn:name="Provisioned",type="string",JSONPath=".status.provisioned"
// +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.message"
type AzureSqlFirewallRule struct {
Expand Down
1 change: 1 addition & 0 deletions api/v1beta1/azuresqlserver_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ type AzureSqlServerSpec struct {
// +kubebuilder:storageversion

// AzureSqlServer is the Schema for the azuresqlservers API
// +kubebuilder:resource:shortName=asqls,path=azuresqlserver
// +kubebuilder:printcolumn:name="Provisioned",type="string",JSONPath=".status.provisioned"
// +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.message"
type AzureSqlServer struct {
Expand Down

0 comments on commit d46596d

Please sign in to comment.