def install_crd(singular, plural_suffix, kind_suffix, hash_names=False):
    logs.info(
        f'Installing operator crd: {singular}, {plural_suffix}, {kind_suffix}')
    _set_plural_kind_suffix(singular,
                            plural_suffix,
                            kind_suffix,
                            hash_names=hash_names)
    label_prefix = labels_manager.get_label_prefix().replace('-', '')
    kubectl.install_crd(f'{label_prefix}{plural_suffix}',
                        f'{label_prefix}{singular}',
                        get_resource_kind(singular))
Exemple #2
0
def install_crds():
    kubectl.install_crd('ckancloudroutes', 'ckancloudroute', 'CkanCloudRoute')
Exemple #3
0
def install_crds():
    """Ensures installaion of the datapusher custom resource definitions on the cluster"""
    kubectl.install_crd('ckanclouddatapushers', 'ckanclouddatapusher',
                        'CkanCloudDatapusher')
Exemple #4
0
def install_crds():
    """Ensures installaion of the custom resource definitions on the cluster"""
    kubectl.install_crd('ckancloudrouters', 'ckancloudrouter', 'CkanCloudRouter')
    routes_manager.install_crds()