Skip to content

Commit

Permalink
Merge pull request #270 from akhil-rane/OCPBUGSM-17971
Browse files Browse the repository at this point in the history
Bug 1880785: Fix CredentialsRequest missing description in 'oc explain'
  • Loading branch information
openshift-merge-robot committed Nov 18, 2020
2 parents 850faf1 + f47ab8b commit 2707f92
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -40,7 +40,7 @@ $(eval $(call build-image-internal,$(1),$(2),$(3),$(4)))
endef

# Set crd-schema-gen variables
CONTROLLER_GEN_VERSION := v0.2.1
CONTROLLER_GEN_VERSION := v0.2.5
CRD_APIS :=./pkg/apis/cloudcredential/v1

# Exclude e2e tests from unit testing
Expand Down
Expand Up @@ -42,6 +42,7 @@ spec:
description: ProviderSpec contains the cloud provider specific credentials
specification.
type: object
x-kubernetes-preserve-unknown-fields: true
secretRef:
description: SecretRef points to the secret where the credentials should
be stored once generated.
Expand Down Expand Up @@ -140,6 +141,7 @@ spec:
providerStatus:
description: ProviderStatus contains cloud provider specific status.
type: object
x-kubernetes-preserve-unknown-fields: true
provisioned:
description: Provisioned is true once the credentials have been initially
provisioned.
Expand Down
3 changes: 3 additions & 0 deletions manifests/00-crd.yaml
Expand Up @@ -10,6 +10,7 @@ spec:
plural: credentialsrequests
singular: credentialsrequest
scope: Namespaced
preserveUnknownFields: false
subresources:
status: {}
version: v1
Expand Down Expand Up @@ -42,6 +43,7 @@ spec:
description: ProviderSpec contains the cloud provider specific credentials
specification.
type: object
x-kubernetes-preserve-unknown-fields: true
secretRef:
description: SecretRef points to the secret where the credentials should
be stored once generated.
Expand Down Expand Up @@ -140,6 +142,7 @@ spec:
providerStatus:
description: ProviderStatus contains cloud provider specific status.
type: object
x-kubernetes-preserve-unknown-fields: true
provisioned:
description: Provisioned is true once the credentials have been initially
provisioned.
Expand Down
2 changes: 2 additions & 0 deletions pkg/apis/cloudcredential/v1/types_credentialsrequest.go
Expand Up @@ -51,6 +51,7 @@ type CredentialsRequestSpec struct {
SecretRef corev1.ObjectReference `json:"secretRef"`

// ProviderSpec contains the cloud provider specific credentials specification.
// +kubebuilder:pruning:PreserveUnknownFields
ProviderSpec *runtime.RawExtension `json:"providerSpec,omitempty"`
}

Expand Down Expand Up @@ -79,6 +80,7 @@ type CredentialsRequestStatus struct {
LastSyncCloudCredsSecretResourceVersion string `json:"lastSyncCloudCredsSecretResourceVersion,omitempty"`

// ProviderStatus contains cloud provider specific status.
// +kubebuilder:pruning:PreserveUnknownFields
ProviderStatus *runtime.RawExtension `json:"providerStatus,omitempty"`

// Conditions includes detailed status for the CredentialsRequest
Expand Down
2 changes: 2 additions & 0 deletions pkg/assets/bootstrap/bindata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2707f92

Please sign in to comment.