This PR updates the provider for Crossplane 0.11.1 changes (and the more recent 0.12.0, afaik).
Changes include
a new README.md and more repository metadata addition and updates (makefile, listing, issue guidance)
Device spec has moved to `spec.forProvider
Device status has moved to status.atProvider
Initializers are used to fill in omitted spec.forProvider parameters after creation
Device credentials are created in a secret with ssh user/pass/address information
ProjectID has been moved out of Device and can now be configured in the Provider spec, optionally. ProjectID must be specified in the provider secret if it is omitted in the Provider (permitting blind reuse of CCM and CSI secrets).
Provider secret format has changed from a single string (APIKey) to a json struct including APIKey, ProjectID, and others to be used later
Print columns and categories have been added, enabling kubectl get packet -o wide and adding more details
More fields have been added to forProvider and atProvider Device. (atProvider fields will not mirror forProvider fields unless they can differ - this reduces noise while expressing intent)
forProvider fields that are not Packet API updateable are now marked as immutable (delete the resource and recreate it to change these fields)
Some names and versions must be chosen and configured (and revised in this PR).
[x] Rename this repo to provider-packet (I would prefer crossplane-provider-packet, which would require renames within the code)
[x] Update the API version to v1alpha2
[x] Create a packethost Docker repo for "crossplane-provider-packet"
[x] Decide on Git and Docker tag (v0.0.2?) (Does this conflict with @jasmingacic v0.0.2 and v0.0.3 images?)
After merge:
[ ] Build and publish this image
[ ] publish v0.0.2 (this version) tag and GitHub release (this PR should include all changes in preparation for that tag before merge)
This PR updates the provider for Crossplane 0.11.1 changes (and the more recent 0.12.0, afaik).
Changes include
spec
has moved to `spec.forProviderstatus
has moved tostatus.atProvider
spec.forProvider
parameters after creationProjectID
has been moved out ofDevice
and can now be configured in theProvider
spec, optionally.ProjectID
must be specified in the provider secret if it is omitted in theProvider
(permitting blind reuse of CCM and CSI secrets).kubectl get packet -o wide
and adding more detailsforProvider
andatProvider
Device. (atProvider
fields will not mirrorforProvider
fields unless they can differ - this reduces noise while expressing intent)forProvider
fields that are not Packet API updateable are now marked as immutable (delete the resource and recreate it to change these fields)Some names and versions must be chosen and configured (and revised in this PR).
provider-packet
(I would prefercrossplane-provider-packet
, which would require renames within the code)After merge:
(This PR merges and extends #5 and #10)