Skip to content

Commit

Permalink
Merge pull request #12 from tinkerbell/fixes
Browse files Browse the repository at this point in the history
Miscellaneous fixes
  • Loading branch information
detiber authored Dec 14, 2020
2 parents ce0fdeb + fe84ac1 commit e68040e
Show file tree
Hide file tree
Showing 15 changed files with 71 additions and 163 deletions.
7 changes: 7 additions & 0 deletions clusterctl-settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "infrastructure-tinkerbell",
"config": {
"componentsFile": "infrastructure-components.yaml",
"nextVersion": "v0.0.0"
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@

---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.2.9
controller-gen.kubebuilder.io/version: v0.4.1
creationTimestamp: null
name: tinkerbellclusters.infrastructure.cluster.x-k8s.io
spec:
Expand All @@ -17,44 +19,35 @@ spec:
- name: v1alpha3
schema:
openAPIV3Schema:
description: TinkerbellCluster is the Schema for the tinkerbellclusters API
description: TinkerbellCluster is the Schema for the tinkerbellclusters 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'
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'
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: TinkerbellClusterSpec defines the desired state of TinkerbellCluster
description: 'TinkerbellClusterSpec defines the desired state of TinkerbellCluster INSERT ADDITIONAL SPEC FIELDS - desired state of cluster Important: Run "make" to regenerate code after modifying this file.'
properties:
hardwareDiscoveryStrategy:
description: Currently there is only one strategy implemented
and it is the default one. Discovery uses the two list of
hardware IDs specified. Other way will come in the future
like 'all' will get random hardware IDs from all Tinkerbell
type: string
controlPlaneHardwareIDs:
description: A list of hardware ID from tinkerbell that will be
used to deploy Kubernetes control planes to
type: array
description: ControlPlaneHardwareIDs contains a list of hardware IDs used as pool for control plane kubernetes instances.
items:
type: string
machineHardwareIDs:
description: A list of hardware ID from tinkerbell that will be
used to deploy Kubernetes data plane
type: array
hardwareDiscoveryStrategy:
description: HardwareDiscoveryStrategy is a switch we have to implement more advacned discovery strategy. The unique one we have today is the default one obviously and it uses the two lists of hardware IDs specified down here.
type: string
machineHardwareIDs:
description: MachineHardwareIDs contains a list of hardware IDs used as pool for data plane kubernetes instances.
items:
type: string
type: array
type: object
status:
description: TinkerbellClusterStatus defines the observed state of TinkerbellCluster
description: TinkerbellClusterStatus defines the observed state of TinkerbellCluster.
properties:
ready:
description: Ready denotes that the cluster (infrastructure) is ready.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@

---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.2.9
controller-gen.kubebuilder.io/version: v0.4.1
creationTimestamp: null
name: tinkerbellmachines.infrastructure.cluster.x-k8s.io
spec:
Expand Down Expand Up @@ -40,26 +42,24 @@ spec:
name: v1alpha3
schema:
openAPIV3Schema:
description: TinkerbellMachine is the Schema for the tinkerbellmachines API
description: TinkerbellMachine is the Schema for the tinkerbellmachines 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'
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'
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: TinkerbellMachineSpec defines the desired state of TinkerbellMachine
description: TinkerbellMachineSpec defines the desired state of TinkerbellMachine.
properties:
hardwareReservationID:
type: string
type: object
status:
description: TinkerbellMachineStatus defines the observed state of TinkerbellMachine
description: TinkerbellMachineStatus defines the observed state of TinkerbellMachine.
properties:
addresses:
description: Addresses contains the Tinkerbell device associated addresses.
Expand All @@ -70,34 +70,22 @@ spec:
description: The node address.
type: string
type:
description: Node address type, one of Hostname, ExternalIP
or InternalIP.
description: Node address type, one of Hostname, ExternalIP or InternalIP.
type: string
required:
- address
- type
type: object
type: array
errorMessage:
description: "ErrorMessage will be set in the event that there is
a terminal problem reconciling the Machine and will contain a more
verbose string suitable for logging and human consumption. \n This
field should not be set for transitive errors that a controller
faces that are expected to be fixed automatically over time (like
service outages), but instead indicate that something is fundamentally
wrong with the Machine's spec or the configuration of the controller,
and that manual intervention is required. Examples of terminal errors
would be invalid combinations of settings in the spec, values that
are unsupported by the controller, or the responsible controller
itself being critically misconfigured. \n Any transient errors that
occur during the reconciliation of Machines can be added as events
to the Machine object and/or logged in the controller's output."
description: "ErrorMessage will be set in the event that there is a terminal problem reconciling the Machine and will contain a more verbose string suitable for logging and human consumption. \n This field should not be set for transitive errors that a controller faces that are expected to be fixed automatically over time (like service outages), but instead indicate that something is fundamentally wrong with the Machine's spec or the configuration of the controller, and that manual intervention is required. Examples of terminal errors would be invalid combinations of settings in the spec, values that are unsupported by the controller, or the responsible controller itself being critically misconfigured. \n Any transient errors that occur during the reconciliation of Machines can be added as events to the Machine object and/or logged in the controller's output."
type: string
errorReason:
description: Any transient errors that occur during the reconciliation
of Machines can be added as events to the Machine object and/or
logged in the controller's output.
description: Any transient errors that occur during the reconciliation of Machines can be added as events to the Machine object and/or logged in the controller's output.
type: string
instanceStatus:
description: InstanceStatus is the status of the Tinkerbell device instance for this machine.
type: integer
ready:
description: Ready is true when the provider resource is ready.
type: boolean
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@

---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.2.9
controller-gen.kubebuilder.io/version: v0.4.1
creationTimestamp: null
name: tinkerbellmachinetemplates.infrastructure.cluster.x-k8s.io
spec:
Expand All @@ -19,33 +21,27 @@ spec:
- name: v1alpha3
schema:
openAPIV3Schema:
description: TinkerbellMachineTemplate is the Schema for the tinkerbellmachinetemplates
API
description: TinkerbellMachineTemplate is the Schema for the tinkerbellmachinetemplates 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'
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'
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: TinkerbellMachineTemplateSpec defines the desired state of
TinkerbellMachineTemplate
description: TinkerbellMachineTemplateSpec defines the desired state of TinkerbellMachineTemplate.
properties:
template:
description: TinkerbellMachineTemplateResource describes the data
needed to create am TinkerbellMachine from a template
description: TinkerbellMachineTemplateResource describes the data needed to create am TinkerbellMachine from a template.
properties:
spec:
description: Spec is the specification of the desired behavior
of the machine.
description: Spec is the specification of the desired behavior of the machine.
properties:
hardwareReservationID:
type: string
type: object
required:
- spec
Expand Down
2 changes: 1 addition & 1 deletion config/default/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace: cluster-api-provider-tinkerbell-system
namespace: capt-system
resources:
- namespace.yaml
- credentials.yaml
Expand Down
2 changes: 1 addition & 1 deletion config/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# "wordpress" becomes "alices-wordpress".
# Note that it should also match with the prefix (text before '-') of the namespace
# field above.
namePrefix: cluster-api-provider-tinkerbell-
namePrefix: capt-
# Labels to add to all resources and selectors.
commonLabels:
cluster.x-k8s.io/provider: infrastructure-tinkerbell
Expand Down
2 changes: 1 addition & 1 deletion config/manager/manager_image_patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ spec:
spec:
containers:
# Change the value of image field below to your controller image URL
- image: quay.io.io/tinkerbell/cluster-api-provider-tinkerbell:e2e
- image: quay.io/tinkerbell/cluster-api-provider-tinkerbell:e2e
name: manager
4 changes: 2 additions & 2 deletions config/managerless/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Adds namespace to all resources.
namespace: cluster-api-provider-tinkerbell-system
namespace: capt-system
# Value of this field is prepended to the
# names of all resources, e.g. a deployment named
# "wordpress" becomes "alices-wordpress".
# Note that it should also match with the prefix (text before '-') of the namespace
# field above.
namePrefix: cluster-api-provider-tinkerbell-
namePrefix: capt-
# Labels to add to all resources and selectors.
commonLabels:
cluster.x-k8s.io/provider: infrastructure-tinkerbell
Expand Down
24 changes: 0 additions & 24 deletions config/rbac/packetcluster_editor_role.yaml

This file was deleted.

20 changes: 0 additions & 20 deletions config/rbac/packetcluster_viewer_role.yaml

This file was deleted.

24 changes: 0 additions & 24 deletions config/rbac/packetmachine_editor_role.yaml

This file was deleted.

20 changes: 0 additions & 20 deletions config/rbac/packetmachine_viewer_role.yaml

This file was deleted.

10 changes: 6 additions & 4 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@

---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
Expand Down Expand Up @@ -33,7 +35,7 @@ rules:
- apiGroups:
- infrastructure.cluster.x-k8s.io
resources:
- packetclusters
- tinkerbellclusters
verbs:
- create
- delete
Expand All @@ -45,15 +47,15 @@ rules:
- apiGroups:
- infrastructure.cluster.x-k8s.io
resources:
- packetclusters/status
- tinkerbellclusters/status
verbs:
- get
- patch
- update
- apiGroups:
- infrastructure.cluster.x-k8s.io
resources:
- packetmachines
- tinkerbellmachines
verbs:
- create
- delete
Expand All @@ -65,7 +67,7 @@ rules:
- apiGroups:
- infrastructure.cluster.x-k8s.io
resources:
- packetmachines/status
- tinkerbellmachines/status
verbs:
- get
- patch
Expand Down
3 changes: 2 additions & 1 deletion metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
# between patch versions.
#
# update this file only when a new major or minor version is released
apiVersion: clusterctl.cluster.x-k8s.io/v1alpha3
releaseSeries:
- major: 0
minor: 3
minor: 0
contract: v1alpha3
Loading

0 comments on commit e68040e

Please sign in to comment.