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

Upgrade pacrd CRDs from v1beta1 to v1 #59

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
RELEASE ?= "" # Must be set at runtime
IMG ?= armory/pacrd:${RELEASE}
# Produce CRDs that work back to Kubernetes 1.11 (no version conversion)
CRD_OPTIONS ?= "crd:trivialVersions=true"
CRD_OPTIONS ?= "crd:crdVersions=v1"
DOCS_PROJECT ?= ~/armory/documentation
OS=$(shell go env GOOS)
ARCH=$(shell go env GOARCH)
Expand Down
241 changes: 120 additions & 121 deletions config/crd/bases/pacrd.armory.spinnaker.io_applications.yaml
Original file line number Diff line number Diff line change
@@ -1,25 +1,13 @@

---
apiVersion: apiextensions.k8s.io/v1beta1
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.2.4
creationTimestamp: null
name: applications.pacrd.armory.spinnaker.io
spec:
additionalPrinterColumns:
- JSONPath: .status.phase
description: Status
name: status
type: string
- JSONPath: .status.lastConfigured
description: Last Configured
name: lastConfigured
type: date
- JSONPath: .status.url
name: URL
type: string
group: pacrd.armory.spinnaker.io
names:
kind: Application
Expand All @@ -29,117 +17,128 @@ spec:
- app
singular: application
scope: Namespaced
subresources:
status: {}
validation:
openAPIV3Schema:
description: Application is the Schema for the applications API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: ApplicationSpec defines the desired state of Application
properties:
dataSources:
description: DataSources optionally enable and disable elements of the
Spinnaker Application UI.
properties:
disabled:
description: Disabled is the list of explicitly disabled UI elements.
items:
description: 'DataSource is a tab in the Spinnaker UI representing
a kind of managed resource. Allowed values include: serverGroups,executions,loadBalancers,securityGroups.'
enum:
- serverGroups
- executions
- loadBalancers
- securityGroups
type: string
type: array
enabled:
description: Enabled is the list of explicitly enabled UI elements.
items:
description: 'DataSource is a tab in the Spinnaker UI representing
a kind of managed resource. Allowed values include: serverGroups,executions,loadBalancers,securityGroups.'
enum:
- serverGroups
- executions
- loadBalancers
- securityGroups
type: string
type: array
type: object
description:
description: Description explains the purpose of this application.
type: string
email:
description: Email points to the e-mail user or list that owns this
application.
type: string
permissions:
description: Permissions maps actions inside Spinnaker to authenticated
roles that can take them.
properties:
EXECUTE:
description: Execute grants the defined roles the ability to execute
an application's pipelines.
items:
type: string
type: array
READ:
description: Read grants the defined roles the ability to read an
application and its pipelines.
items:
type: string
type: array
WRITE:
description: Write grants the defined roles the ability to modify
an application and its pipelines.
items:
type: string
type: array
type: object
type: object
status:
description: ApplicationStatus defines the observed state of Application
properties:
lastConfigured:
description: LastConfigured represents the last time the operator updated
this application in Spinnaker.
format: date-time
type: string
phase:
description: Phase represents the current status of this application.
enum:
- ErrorNotFound
- Creating
- ErrorFailedToCreate
- Created
- Deleting
- ErrorDeletingApplication
- Updated
- ErrorUpdatingApplication
type: string
url:
description: Url represents the URL of the configured Spinnaker cluster.
type: string
type: object
type: object
version: v1alpha1
versions:
- name: v1alpha1
- additionalPrinterColumns:
- description: Status
jsonPath: .status.phase
name: status
type: string
- description: Last Configured
jsonPath: .status.lastConfigured
name: lastConfigured
type: date
- jsonPath: .status.url
name: URL
type: string
name: v1alpha1
schema:
openAPIV3Schema:
description: Application is the Schema for the applications API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: ApplicationSpec defines the desired state of Application
properties:
dataSources:
description: DataSources optionally enable and disable elements of
the Spinnaker Application UI.
properties:
disabled:
description: Disabled is the list of explicitly disabled UI elements.
items:
description: 'DataSource is a tab in the Spinnaker UI representing
a kind of managed resource. Allowed values include: serverGroups,executions,loadBalancers,securityGroups.'
enum:
- serverGroups
- executions
- loadBalancers
- securityGroups
type: string
type: array
enabled:
description: Enabled is the list of explicitly enabled UI elements.
items:
description: 'DataSource is a tab in the Spinnaker UI representing
a kind of managed resource. Allowed values include: serverGroups,executions,loadBalancers,securityGroups.'
enum:
- serverGroups
- executions
- loadBalancers
- securityGroups
type: string
type: array
type: object
description:
description: Description explains the purpose of this application.
type: string
email:
description: Email points to the e-mail user or list that owns this
application.
type: string
permissions:
description: Permissions maps actions inside Spinnaker to authenticated
roles that can take them.
properties:
EXECUTE:
description: Execute grants the defined roles the ability to execute
an application's pipelines.
items:
type: string
type: array
READ:
description: Read grants the defined roles the ability to read
an application and its pipelines.
items:
type: string
type: array
WRITE:
description: Write grants the defined roles the ability to modify
an application and its pipelines.
items:
type: string
type: array
type: object
type: object
status:
description: ApplicationStatus defines the observed state of Application
properties:
lastConfigured:
description: LastConfigured represents the last time the operator
updated this application in Spinnaker.
format: date-time
type: string
phase:
description: Phase represents the current status of this application.
enum:
- ErrorNotFound
- Creating
- ErrorFailedToCreate
- Created
- Deleting
- ErrorDeletingApplication
- Updated
- ErrorUpdatingApplication
type: string
url:
description: Url represents the URL of the configured Spinnaker cluster.
type: string
type: object
type: object
served: true
storage: true
subresources:
status: {}
status:
acceptedNames:
kind: ""
Expand Down
Loading