-
Notifications
You must be signed in to change notification settings - Fork 228
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [WIP] Sync GCP fleet memberships into KRM resources Signed-off-by: John Belamaric <[email protected]> * Additional fleet data - Rename `spec` to `data` since this is discovered data, not spec - Add resources for scopes and membership bindings - Add additional fields Signed-off-by: John Belamaric <[email protected]> * Add polling of scopes and bindings; not yet reconciled Signed-off-by: John Belamaric <[email protected]> * Refactor polling Signed-off-by: John Belamaric <[email protected]> * Add reconciliation of scopes and membership bindings Signed-off-by: John Belamaric <[email protected]> * Fix missing printf arg Signed-off-by: John Belamaric <[email protected]> * Add more labels, Scope field Signed-off-by: John Belamaric <[email protected]> --------- Signed-off-by: John Belamaric <[email protected]> Co-authored-by: Morten Torkildsen <[email protected]>
- Loading branch information
1 parent
9f1149a
commit c0f855a
Showing
21 changed files
with
2,494 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
93 changes: 93 additions & 0 deletions
93
porch/controllers/config/crd/bases/config.porch.kpt.dev_fleetmembershipbindings.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
# Copyright 2023 The kpt Authors | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
--- | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
annotations: | ||
controller-gen.kubebuilder.io/version: v0.8.0 | ||
creationTimestamp: null | ||
name: fleetmembershipbindings.config.porch.kpt.dev | ||
spec: | ||
group: config.porch.kpt.dev | ||
names: | ||
kind: FleetMembershipBinding | ||
listKind: FleetMembershipBindingList | ||
plural: fleetmembershipbindings | ||
singular: fleetmembershipbinding | ||
scope: Namespaced | ||
versions: | ||
- name: v1alpha1 | ||
schema: | ||
openAPIV3Schema: | ||
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 | ||
data: | ||
description: Data contains the discovered (synced) information | ||
properties: | ||
binding: | ||
type: string | ||
labels: | ||
additionalProperties: | ||
type: string | ||
type: object | ||
location: | ||
type: string | ||
membership: | ||
type: string | ||
name: | ||
type: string | ||
project: | ||
type: string | ||
scope: | ||
type: string | ||
scopeFullName: | ||
type: string | ||
scopeLocation: | ||
type: string | ||
scopeProject: | ||
type: string | ||
state: | ||
properties: | ||
code: | ||
type: string | ||
type: object | ||
required: | ||
- membership | ||
type: object | ||
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 | ||
status: | ||
type: object | ||
type: object | ||
served: true | ||
storage: true | ||
subresources: | ||
status: {} | ||
status: | ||
acceptedNames: | ||
kind: "" | ||
plural: "" | ||
conditions: [] | ||
storedVersions: [] |
83 changes: 83 additions & 0 deletions
83
porch/controllers/config/crd/bases/config.porch.kpt.dev_fleetmemberships.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
# Copyright 2023 The kpt Authors | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
--- | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
annotations: | ||
controller-gen.kubebuilder.io/version: v0.8.0 | ||
creationTimestamp: null | ||
name: fleetmemberships.config.porch.kpt.dev | ||
spec: | ||
group: config.porch.kpt.dev | ||
names: | ||
kind: FleetMembership | ||
listKind: FleetMembershipList | ||
plural: fleetmemberships | ||
singular: fleetmembership | ||
scope: Namespaced | ||
versions: | ||
- name: v1alpha1 | ||
schema: | ||
openAPIV3Schema: | ||
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 | ||
data: | ||
description: Data contains the discovered (synced) information | ||
properties: | ||
description: | ||
type: string | ||
fullName: | ||
type: string | ||
labels: | ||
additionalProperties: | ||
type: string | ||
type: object | ||
location: | ||
type: string | ||
membership: | ||
type: string | ||
project: | ||
type: string | ||
state: | ||
properties: | ||
code: | ||
type: string | ||
type: object | ||
type: object | ||
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 | ||
status: | ||
type: object | ||
type: object | ||
served: true | ||
storage: true | ||
subresources: | ||
status: {} | ||
status: | ||
acceptedNames: | ||
kind: "" | ||
plural: "" | ||
conditions: [] | ||
storedVersions: [] |
81 changes: 81 additions & 0 deletions
81
porch/controllers/config/crd/bases/config.porch.kpt.dev_fleetscopes.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
# Copyright 2023 The kpt Authors | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
--- | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
annotations: | ||
controller-gen.kubebuilder.io/version: v0.8.0 | ||
creationTimestamp: null | ||
name: fleetscopes.config.porch.kpt.dev | ||
spec: | ||
group: config.porch.kpt.dev | ||
names: | ||
kind: FleetScope | ||
listKind: FleetScopeList | ||
plural: fleetscopes | ||
singular: fleetscope | ||
scope: Namespaced | ||
versions: | ||
- name: v1alpha1 | ||
schema: | ||
openAPIV3Schema: | ||
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 | ||
data: | ||
description: Data contains the discovered (synced) information | ||
properties: | ||
fullName: | ||
type: string | ||
labels: | ||
additionalProperties: | ||
type: string | ||
type: object | ||
location: | ||
type: string | ||
project: | ||
type: string | ||
scope: | ||
type: string | ||
state: | ||
properties: | ||
code: | ||
type: string | ||
type: object | ||
type: object | ||
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 | ||
status: | ||
type: object | ||
type: object | ||
served: true | ||
storage: true | ||
subresources: | ||
status: {} | ||
status: | ||
acceptedNames: | ||
kind: "" | ||
plural: "" | ||
conditions: [] | ||
storedVersions: [] |
Oops, something went wrong.